Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6609063ioo; Thu, 2 Jun 2022 09:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtgakTbLRpzCyItdmnzFl/tSjbV3Qk/2pqCOb91kDuptT5RS2778oL+shzn9KX4XPzEyVH X-Received: by 2002:a17:902:7c13:b0:156:ca91:877f with SMTP id x19-20020a1709027c1300b00156ca91877fmr5740300pll.15.1654188800609; Thu, 02 Jun 2022 09:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654188800; cv=none; d=google.com; s=arc-20160816; b=ifGJHEj22eiMs9/wMBe/O4RdOPC89TQfccwQP4RhCwu9I+tvnadb7ozMIHURGbcZv8 3Bw28ZB0yd8Jm0dAgtBFIc4UvRZJOxOYMNRAKBzIQb0z9i5HczW0UrpTG/WFVm88X6Dw B5XtDJVylzW/7fJTcsdQPGiRFIJl3HN5LOpQD6dkeyWQu8z8ejkKdyY1iHRga4xprFiF 28Ul3Td6owRzv75xcpXZt4NV6SyzV0AkYQ20AWOq7uVjkVb0kjp4BZ9dP14X1MNUlE5K 05Wl/iqJ7VPRJTcWyGNFmqy5WH8amwh3nqymHiFMLC2kxTWl2Zjxrm4QfjEP6C3j6wKG ecAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=m+e4V1p/SF1WpMd08mmyWwVmk6e1Soqcnjk1zZWY2AU=; b=vgx6VoaXtwMvL5WT4FB7kmG+zYdVKLbw15J60y/GuMhwxCzcbMVU/SzlSnsj17AKwA mZ5SB7aHpxS1veGzJyXaMcRXFywNgOfnjTF4zgCQuaKC4c/BCX9ruXwvGFyx45IcWrr8 jrUTcbixPoRMiTiWpkZWWu7/Kcv7qZVCbp7Mw6nhDlVahnAUDXrU66jUOKooerr/FSJ8 6QB6Aig6qxT+KlrmeVVlnSIP6ARMSNNpP9ReelhpDg7+Ot7hMcTy4zP/YqS2ithP9OPw D5FHxFYhED1GcEA1wrdkp7wjP6YAp/93O1zg7q2hT40k1t1i6vFovKeq6GDsB30n6Mqy OHPw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a056a00151200b00518827f712asi7866853pfu.353.2022.06.02.09.53.07; Thu, 02 Jun 2022 09:53:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236770AbiFBQKx convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Jun 2022 12:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233936AbiFBQKw (ORCPT ); Thu, 2 Jun 2022 12:10:52 -0400 Received: from mail.holtmann.org (coyote.holtmann.net [212.227.132.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2E7D21AC5F; Thu, 2 Jun 2022 09:10:50 -0700 (PDT) Received: from smtpclient.apple (p4ff9fc30.dip0.t-ipconnect.de [79.249.252.48]) by mail.holtmann.org (Postfix) with ESMTPSA id BCA13CED19; Thu, 2 Jun 2022 18:10:49 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: [PATCH v2 1/3] Bluetooth: Add new quirk for broken local ext features max_page From: Marcel Holtmann In-Reply-To: <20220524212155.16944-2-bage@debian.org> Date: Thu, 2 Jun 2022 18:10:49 +0200 Cc: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Johan Hedberg , "David S. Miller" , Jakub Kicinski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, Vasily Khoruzhick Content-Transfer-Encoding: 8BIT Message-Id: <78EC62F6-40D5-4E18-B2FA-DA2EB9D67986@holtmann.org> References: <20220524212155.16944-1-bage@debian.org> <20220524212155.16944-2-bage@debian.org> To: Bastian Germann X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Bastian, > Some adapters (e.g. RTL8723CS) advertise that they have more than > 2 pages for local ext features, but they don't support any features > declared in these pages. RTL8723CS reports max_page = 2 and declares > support for sync train and secure connection, but it responds with > either garbage or with error in status on corresponding commands. please include btmon output for the garbage and/or error. > > Signed-off-by: Vasily Khoruzhick > [rebase on current tree] > Signed-off-by: Bastian Germann > --- > include/net/bluetooth/hci.h | 7 +++++++ > net/bluetooth/hci_event.c | 4 +++- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h > index 69ef31cea582..af26e8051905 100644 > --- a/include/net/bluetooth/hci.h > +++ b/include/net/bluetooth/hci.h > @@ -265,6 +265,13 @@ enum { > * runtime suspend, because event filtering takes place there. > */ > HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, > + > + /* When this quirk is set, max_page for local extended features > + * is set to 1, even if controller reports higher number. Some > + * controllers (e.g. RTL8723CS) report more pages, but they > + * don't actually support features declared there. > + */ > + HCI_QUIRK_BROKEN_LOCAL_EXT_FTR_MAX_PAGE, > }; Can we just call it _BROKEN_LOCAL_EXT_FEATURES_PAGE_2. Now with that said, is Secure Connections really broken? We need that bit to indicate support for this. Regards Marcel