From patchwork Wed Mar 30 18:25:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 555323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E6E4C433F5 for ; Wed, 30 Mar 2022 18:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350458AbiC3S3L (ORCPT ); Wed, 30 Mar 2022 14:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351721AbiC3S3F (ORCPT ); Wed, 30 Mar 2022 14:29:05 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE8484CD47 for ; Wed, 30 Mar 2022 11:25:53 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id bx24-20020a17090af49800b001c6872a9e4eso904239pjb.5 for ; Wed, 30 Mar 2022 11:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=QATwaa6LxoPJw3PVOavNtamV3SVuZldI7jwI6FCNxHA=; b=g7a2uHMqQjJSKAEz7Oqk6/hOMd48bScaTejk64Pi5y8oXsrnUkdwC9dSzS1FIJVJLQ TgsraNEpYgJXuTCP8xdY1SihgtW/ZRnAZcmBjJ1UTeAiT5eOOzk2bs9VOyOoCJEspgeg HL6Gmsg5tGq7CyE6fWfyWQjZwGfl09S2S4+3aN8boQwix1BIai/eXL4CYqDw4N9Xx+Ax p111TiY8u0FO7ZLDOcgUVF3YfSa45nYjTX3ZA2OuvtjsGM5zK5jhuYXkALXDOJcpnPRw HEKrGyD6UcLEl6M2/JNMrEKKcqDX+4L1SyXhiXSF+TqRE9mIJan2ERZ+M07POUCqUEUU 4vMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=QATwaa6LxoPJw3PVOavNtamV3SVuZldI7jwI6FCNxHA=; b=D5wCczv0JV/hCENkov8pDvP6hB2CYcFNcZQTbCu2EGAUZE35OOPqWxRbN4li4Nich8 SD4bQLIajQuEF3LEDWFUKU7cGWJljYvn2z1UTgI67E8SxBwbP7skTxkoAHRwwIzW7X6r dSfJKYy3sienQwaZYAeKGsx440yT9tEIPJhMSNnbwZZY1LzhTvkRubqB85EdzhxbYIDV TxJleKV8Lrt4bTEtnb5XKdqP57GRMGwzVsW6FkOcUXVDyd62v364dc56OT6/mwq0AsIL rC61ZifhZLLK41tKLb/gd/1/4S/RDfJWnPpYe+CQdbSM/WVZCAhErn6fPjododFYe0s6 5Eww== X-Gm-Message-State: AOAM531/wa83bvd51udubPKOcuNha54yiifguiyDN/y9kZCT3czWekYw BVYbY3KGd45NrQr+5deMoGDf35qTiqE= X-Google-Smtp-Source: ABdhPJxBLFkeg48UDZLvk/6gRWsDLT72N6KRGSGvYLRlMw0IXzt4SkkMC4HRLOyN9te8vrzKlLLSVg== X-Received: by 2002:a17:90b:3886:b0:1c7:c935:4447 with SMTP id mu6-20020a17090b388600b001c7c9354447mr966427pjb.196.1648664753101; Wed, 30 Mar 2022 11:25:53 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id b2-20020a056a000a8200b004f1111c66afsm26758551pfl.148.2022.03.30.11.25.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 11:25:52 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v3 1/3] Bluetooth: HCI: Add HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN quirk Date: Wed, 30 Mar 2022 11:25:50 -0700 Message-Id: <20220330182552.2613523-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This adds HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN quirk which can be used to mark HCI_Enhanced_Setup_Synchronous_Connection as broken even if its support command bit are set since some controller report it as supported but the command don't work properly with some configurations (e.g. BT_VOICE_TRANSPARENT/mSBC). Signed-off-by: Luiz Augusto von Dentz --- v3: Make HCI_QUIRK_BROKEN macro expand quirk name and address other comments from v2. v2: Change hci_broken/hci_quirk_broken and HCI_BROKEN/HCI_QUIRK_BROKEN and add patch 3/3 setting HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN for QCA controllers. include/net/bluetooth/hci.h | 9 +++++++++ include/net/bluetooth/hci_core.h | 8 ++++++-- net/bluetooth/hci_conn.c | 2 +- net/bluetooth/sco.c | 2 +- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 5cb095b09a94..8bb81ea4d286 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -265,6 +265,15 @@ enum { * runtime suspend, because event filtering takes place there. */ HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, + + /* + * When this quirk is set, disables the use of + * HCI_OP_ENHANCED_SETUP_SYNC_CONN command to setup SCO connections. + * + * This quirk can be set before hci_register_dev is called or + * during the hdev->setup vendor callback. + */ + HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN, }; /* HCI device flags */ diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index d5377740e99c..59815df1272a 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -1492,8 +1492,12 @@ void hci_conn_del_sysfs(struct hci_conn *conn); #define privacy_mode_capable(dev) (use_ll_privacy(dev) && \ (hdev->commands[39] & 0x04)) -/* Use enhanced synchronous connection if command is supported */ -#define enhanced_sco_capable(dev) ((dev)->commands[29] & 0x08) +/* Use enhanced synchronous connection if command is supported and its quirk + * has not been set. + */ +#define enhanced_sync_conn_capable(dev) \ + (((dev)->commands[29] & 0x08) && \ + !test_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN, &(dev)->quirks)) /* Use ext scanning if set ext scan param and ext scan enable is supported */ #define use_ext_scan(dev) (((dev)->commands[37] & 0x20) && \ diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 84312c836549..cd51bf2a709b 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -481,7 +481,7 @@ static bool hci_setup_sync_conn(struct hci_conn *conn, __u16 handle) bool hci_setup_sync(struct hci_conn *conn, __u16 handle) { - if (enhanced_sco_capable(conn->hdev)) + if (enhanced_sync_conn_capable(conn->hdev)) return hci_enhanced_setup_sync_conn(conn, handle); return hci_setup_sync_conn(conn, handle); diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 8eabf41b2993..2a58c7d88433 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -885,7 +885,7 @@ static int sco_sock_setsockopt(struct socket *sock, int level, int optname, err = -EBADFD; break; } - if (enhanced_sco_capable(hdev) && + if (enhanced_sync_conn_capable(hdev) && voice.setting == BT_VOICE_TRANSPARENT) sco_pi(sk)->codec.id = BT_CODEC_TRANSPARENT; hci_dev_put(hdev); From patchwork Wed Mar 30 18:25:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 555322 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06EA8C433EF for ; Wed, 30 Mar 2022 18:27:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234636AbiC3S3T (ORCPT ); Wed, 30 Mar 2022 14:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351728AbiC3S3F (ORCPT ); Wed, 30 Mar 2022 14:29:05 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD9834D9EB for ; Wed, 30 Mar 2022 11:25:54 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id bo5so69895pfb.4 for ; Wed, 30 Mar 2022 11:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=OfwNIGOKqJblu5U4H8BCSE4eIec5ZuLanyU6of7IWus=; b=ORsX9I/P1zUFLnv7BgjZya7YbQ07Qu8KSXsffQkD2mdW6xcsKNHUSGEAkIRBtcRPYV 2U2AMcwiGNcdZgJc9Sun0p/B0gI7qRfe+WedACqD5KlUsMVo0jCLr09HlKVtSjIBxsY1 UFPjkm69BEl8etJtthG0VKg8OSsD6pbUw0itlXNb2EzDQR9zJzSalo2wcMNShj9tURvZ Qr+YIalXu9q5rI1+5SkhpFLI+sqtrjerXqiY4CDMc0M07JrgOYl2fgPJQgYdIHPlusAB rRuuRJOOXaWzUuuGeke9HWa8HJ5s8i5Zjmn3rrx4/h58kXeRvONn21OoqN+Ey2ODEAHS jAgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OfwNIGOKqJblu5U4H8BCSE4eIec5ZuLanyU6of7IWus=; b=wQ9osGCiODyCBPT3R+zx9jiO8VZlhG72pr43PirBkucjzCbpV1gDku9w2eGelCYbGl 43E5MOBjo4tzZJCfJYR4ZnAbRKh5xTG4/W4qKJ29ZjdAvKTKHdzBvFEeAR8xHUAARacX JIu5XzE8JCC/E4LdOs+g+xuvTABS7wzotZJNLobzpo+8k5bXi0mUm7x+XKiGtE9qSiny BdN94HlkxNTCyCO/rnrcgSWaPOojWB8iLKA1ckRLazGzYLMNbh7qcfelXIV4Jl/L6RCO JefP2bw15Zl6gcSxpOLKjBuH2+eQ/p8U87psl30S11hmy5QuUW8V2XNVY7f6ygEQeFfZ Z+lg== X-Gm-Message-State: AOAM531dGPPK8QFKMmpk9rDc5kTTwJ6y9PAWvm3owykNgJ6ZlCOWYQSG gT8clprGD2GstXm/6zWjLiTtfmfraiM= X-Google-Smtp-Source: ABdhPJwYA5rsfQeZOuf4cE/1DnFBP5CH8jP2FwBY0Cfihovvckq9DOW+C18i+8ktc4/WmfwduIoHwg== X-Received: by 2002:a63:b40a:0:b0:35e:d274:5f54 with SMTP id s10-20020a63b40a000000b0035ed2745f54mr3325980pgf.200.1648664753871; Wed, 30 Mar 2022 11:25:53 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id b2-20020a056a000a8200b004f1111c66afsm26758551pfl.148.2022.03.30.11.25.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 11:25:53 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v3 2/3] Bluetooth: Print broken quirks Date: Wed, 30 Mar 2022 11:25:51 -0700 Message-Id: <20220330182552.2613523-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220330182552.2613523-1-luiz.dentz@gmail.com> References: <20220330182552.2613523-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This prints warnings for controllers setting broken quirks to increase their visibility and warn about broken controllers firmware that probably needs updates to behave properly. Signed-off-by: Luiz Augusto von Dentz --- net/bluetooth/hci_sync.c | 53 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index 8f4c5698913d..e97880d7bdb2 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -3825,6 +3825,54 @@ static int hci_init_sync(struct hci_dev *hdev) return 0; } +#define HCI_QUIRK_BROKEN(_quirk, _desc) { HCI_QUIRK_BROKEN_##_quirk, _desc } + +static const struct { + unsigned long quirk; + const char *desc; +} hci_broken_table[] = { + HCI_QUIRK_BROKEN(LOCAL_COMMANDS, + "HCI Read Local Supported Commands not supported"), + HCI_QUIRK_BROKEN(STORED_LINK_KEY, + "HCI Delete Stored Link Key command is advertised, " + "but not supported."), + HCI_QUIRK_BROKEN(ERR_DATA_REPORTING, + "HCI Read Default Erroneous Data Reporting command is " + "advertised, but not supported."), + HCI_QUIRK_BROKEN(READ_TRANSMIT_POWER, + "HCI Read Transmit Power Level command is advertised, " + "but not supported."), + HCI_QUIRK_BROKEN(FILTER_CLEAR_ALL, + "HCI Set Event Filter command not supported."), + HCI_QUIRK_BROKEN(ENHANCED_SETUP_SYNC_CONN, + "HCI Enhanced Setup Synchronous Connection command is " + "advertised, but not supported.") +}; + +static int hci_dev_setup_sync(struct hci_dev *hdev) +{ + size_t i; + + bt_dev_dbg(hdev, ""); + + hci_sock_dev_event(hdev, HCI_DEV_SETUP); + + if (hdev->setup) { + int ret; + + ret = hdev->setup(hdev); + if (ret) + return ret; + } + + for (i = 0; i < ARRAY_SIZE(hci_broken_table); i++) { + if (test_bit(hci_broken_table[i].quirk, &hdev->quirks)) + bt_dev_warn(hdev, "%s", hci_broken_table[i].desc); + } + + return 0; +} + int hci_dev_open_sync(struct hci_dev *hdev) { int ret = 0; @@ -3887,10 +3935,7 @@ int hci_dev_open_sync(struct hci_dev *hdev) test_bit(HCI_QUIRK_NON_PERSISTENT_SETUP, &hdev->quirks)) { bool invalid_bdaddr; - hci_sock_dev_event(hdev, HCI_DEV_SETUP); - - if (hdev->setup) - ret = hdev->setup(hdev); + ret = hci_dev_setup_sync(hdev); /* The transport driver can set the quirk to mark the * BD_ADDR invalid before creating the HCI device or in From patchwork Wed Mar 30 18:25:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 555156 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A127C4332F for ; Wed, 30 Mar 2022 18:27:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345716AbiC3S3L (ORCPT ); Wed, 30 Mar 2022 14:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351726AbiC3S3F (ORCPT ); Wed, 30 Mar 2022 14:29:05 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E8604D9EE for ; Wed, 30 Mar 2022 11:25:55 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id n18so21235369plg.5 for ; Wed, 30 Mar 2022 11:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=XQT701YRSJ402y6Tka71w5G5iKmRXtCUkDwtxSadIvE=; b=P2uGWij1zp3GMbtr1HsvXJ5RHwyuiAJNhx1j7hbkhdQJZfasFIsE8l+bZyoPIcsIU/ jP+hPNbkxgk2cTEwMGODXFqiD4h3yBRtFbSjtvpZ6SzrxZZwe8h/WhOliYMx66khraSr S3lHLN4lQram7C7Z4f8Jkyl9373WB2tuoJNc3s2KF1Cy84sLtkevxMqPBTy6PllpKTqA 8bpdqRxBSIpuyurBdo/fllpORD82hAU4NB7qJrLkH9vwBuy3tDVX6zMlI5TPLK/uKgWM WaW2VXVBiQyYF9b7/+EqkzlJAIIeeLRGdXlPHwjMqAHljfytPOysPdCSeHcaoAZvULyQ kbaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XQT701YRSJ402y6Tka71w5G5iKmRXtCUkDwtxSadIvE=; b=Tbf82Tc2bAFn4T/zflVnjwH96mV9hxIZYjpiU3sRv8hh4M0AEF7Jf4jvi5TmpcHEnG MCrBMpAXnV2DOTj7t499051+gdkXtTLHZyXZ952argZOC5GDbPdfoSmxo7yyI0jvYPCJ +kJsmjfgvplXGFTlWgrt931l+KXeWybN2LH8jIKrgnqWzhVEunY97Ic7g4PKxXOUxS5E pbh8oTSwF3Jcc8pmO+KSMshXH274IcJuSkpA3iGZXF2r8/73tTh23s70aXc1vg/UNMkf dYgH3tvW8j6iYlmBNpROom9cxgkDCfoXrdREun5jAszR9hcTJahVrUdw8mumQkQXPiVq eLkg== X-Gm-Message-State: AOAM532/mY6r4hRrfzfthGpKYGai40t9CHENOiiSdw+7X6hPI+YK8UNw TKkGqym8CI4a98C5GxAQjrI9RAE8SsI= X-Google-Smtp-Source: ABdhPJxeaYVry+aRFY8Z0S6zMlFuqphes/LRF7T3wzOXvUBlsb9muAoS2t8W6S6eit55HlDb6tuqMQ== X-Received: by 2002:a17:90b:3a82:b0:1c7:bc91:a87e with SMTP id om2-20020a17090b3a8200b001c7bc91a87emr852848pjb.7.1648664754643; Wed, 30 Mar 2022 11:25:54 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id b2-20020a056a000a8200b004f1111c66afsm26758551pfl.148.2022.03.30.11.25.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 11:25:54 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v3 3/3] Bluetooth: btusb: Set HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN for QCA Date: Wed, 30 Mar 2022 11:25:52 -0700 Message-Id: <20220330182552.2613523-3-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220330182552.2613523-1-luiz.dentz@gmail.com> References: <20220330182552.2613523-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz This sets HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN for QCA controllers since SCO appear to not work when using HCI_OP_ENHANCED_SETUP_SYNC_CONN. Link: https://bugzilla.kernel.org/show_bug.cgi?id=215576 Signed-off-by: Luiz Augusto von Dentz --- drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 50df417207af..2470c3d4ef0f 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -3335,6 +3335,9 @@ static int btusb_setup_qca(struct hci_dev *hdev) msleep(QCA_BT_RESET_WAIT_MS); } + /* https://bugzilla.kernel.org/show_bug.cgi?id=215576 */ + set_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN, &hdev->quirks); + return 0; }