Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp875286iog; Mon, 13 Jun 2022 15:05:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4qTzkZ0rpIscnerPCZ+kW9WqxJZBUxFT5gwlVmdhBgwwBzDcCgNEMEipZOkwM6A5plab8 X-Received: by 2002:a17:902:820d:b0:168:d5e9:c4fb with SMTP id x13-20020a170902820d00b00168d5e9c4fbmr1038835pln.128.1655157929126; Mon, 13 Jun 2022 15:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655157929; cv=none; d=google.com; s=arc-20160816; b=sTIy9JEJllALPBK0tQiPAAi0g33C6x5n+Mb/4RArGxw2zweiSIcmP6VyjvIgKQg45C 0tudqW0YUVcUxIxlBioNPpWPFkU4lS8OZ3/MawH+ejo6syxkZYeXJNyL2xyYq0IdilIC DTNP5ZJL8IirC0XqFeaP16I/diTD9JLJgEKJTNUImYsvA71VsypUMjizpiNDyjgGJ7vo oi/AsB6D+G0J3cETc3ys/r3HL6rKks3OGWPr+rQ7KxVq27TsAREqYNK+cN733/lhW3aY 3y8OjZ9TuroeIVwzO2+AuFLl+0e+2XK74lnThbQzZLfO/E7gYl9f5Z0CyQ9bzaHOML6f kxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=vmzHykT1FNWhO0Ib3GdbcUs/KwCiIqtGw9dvw/rhNFOFEz+3RI60a04z9huC31UUwy 6exmhvOwSajYUw4FpcJYY76bxjZVdR4hQkwWviC8Ld1DzlqjJ04iaGU+LMdaklmxfupr DxfP2lONEn7XB7En4A3G6PI6HRbxIAc1Pc47QfukOtuy8ZyOQe6gcDi9stP+2vXaz9UK Lk+kiTTATMUoTRybPaRVb30ZbHNX51r2LrnL19T6r8MAB49b/KN6/zQufvAyqB1xu+Mq kHiqRD2bQylMq+meimXEhfdWTDq889L7p4rFojuoh0Y9XkA7I9NMQV8MkijLC+s+kFvo s3eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NnxOPuFp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a631a59000000b003fd8db87697si10181919pgm.441.2022.06.13.15.04.55; Mon, 13 Jun 2022 15:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NnxOPuFp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232149AbiFMVnn (ORCPT + 99 others); Mon, 13 Jun 2022 17:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352283AbiFMVnf (ORCPT ); Mon, 13 Jun 2022 17:43:35 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFC766398 for ; Mon, 13 Jun 2022 14:43:32 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id n6-20020a654886000000b003fda8768883so3939335pgs.14 for ; Mon, 13 Jun 2022 14:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=NnxOPuFpNs5MnMcovgUqGxaZmAXo2RDglY8A41g2hQyQzsPDlOWea/WR9ctTMqtneP RmEPy8aIlzarloEypEpgbhWmddMCO4MzzX2IbOfqv2K2klXDV5lc42DWISlmencWQltz LqhhEOJ9bfVLARa37Ov3eGxijku/MwfleKPMwRSHyjTPAI89Uvt3/S9VJ/hvxi62H6Qx 1KiIKvr31LPhV0XEpYIg6yxRHDBoLfDivJyPtt/YEv3vR6WBXMOE3StYmHwOauMLwGW6 HEMqf4EAvlGqqaB6y52VA8KaE+a4L4igEBKwo//t5WFd6FT75eyDyTk1hK/XX1BC6L30 m65w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=M9u2uZrITY2ZmiHjCgQwdtv5Ky15VkyjtQ04bHL3Xio=; b=hOXVUFJZT1m6MBk87S4tgqP9LWVwmI7Smt0/+EP3eRR/oqSWZRkmCqjtJ/e5w5hDhn ani9U2h2dWkatn7YtXEmAgO7RjYCrOFTdYdPoX3w4+zcT6w/M4GvkQEhjiF6hwfP6HUb 60J/UvK5sTkQ+XRgubkykXTfx2v+2bg6x3+7Vwd53iUin9db3jiu6w5svN/lBh7kPN/A ZxnEz+cSCOJmbvj2LvGU/GS/z5+c17/DaoY25AqEmgfdV5K4bIoXnk7xOdY239yxmE7L jV0fqxBE2Il1PsLx9cn5xxfYbPyFn2c+jPtJ4wHH//hj/xTyDOk4gbydJiAJshtqc3YI ZVvQ== X-Gm-Message-State: AJIora/NT8X5Oja7CZWVZs2i/lvBM9KJDFc+EBzSOR1/l/JC3lMpTLnC nsoy5dxHpBJ8SaVoH1y90ktyKuVjXLKIvT2gylcVUlieo/Po6Qr3YN8QN7icTLjr8EFs8WJnGLt jjG0HXIdD+9vY4tyrnvuebxkRVOZiJ4I2zyrY9U3i0AzmLGg+0CmzFAP1pJcsoZBpjuhnd6NXxD Km X-Received: from jiangzp-glinux-dev.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4c52]) (user=jiangzp job=sendgmr) by 2002:a17:90a:178f:b0:1e3:3ba:c185 with SMTP id q15-20020a17090a178f00b001e303bac185mr47670pja.1.1655156611283; Mon, 13 Jun 2022 14:43:31 -0700 (PDT) Date: Mon, 13 Jun 2022 14:43:26 -0700 Message-Id: <20220613214327.15866-1-jiangzp@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [kernel PATCH v1 0/1] Fix refresh cached connection info From: Zhengping Jiang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Zhengping Jiang , Brian Gix , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Get connection info will return error when using synchronous hci_sync call to refresh the cached information when the data times out. This is because the cmd->user_data was not set before the call, so it will fail checking connection is still connected. Changes in v1: - Set connection data before calling hci_cmd_sync_queue Zhengping Jiang (1): Bluetooth: mgmt: Fix refresh cached connection info net/bluetooth/mgmt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.36.1.476.g0c4daa206d-goog