Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp752532ybh; Sun, 12 Jul 2020 23:28:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqGfPTIBbKbr9TYjfxlow6tAedLFzU33kjqAaYfZIgm/NNi9HYr9ZAFkiT15ydkpMYA4xE X-Received: by 2002:aa7:db11:: with SMTP id t17mr86948152eds.365.1594621715929; Sun, 12 Jul 2020 23:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594621715; cv=none; d=google.com; s=arc-20160816; b=c/Bs65j1rWCSt426zqqGdl4T+pZu984f1EnPjkJrXYKX7VaTB5Iw63B68TsKc+W6JS neFXvM7Zi6GSicQekN2Vd5HixNc11wGL8FZU6iIkgqWP7HFpSzAiSUPOYEFtKFsz1wFG S+C/0QBDEwu6W9lVTRo3I9DrabUoTinkLj2JK5ippiDOuHWMD162/I7ygm8KDtbhGdB5 e+BIIwWLUredzjDwc2NNzf9eN5PydHJRrkfQ3ImsgkbIJwsSBvtfw4ND8BF1AIG1kDEA FqKEu7pDmtzyzMlnbLxadZcDcD+F7VJbzJMcRteEyN1nOOBE8MWi+nahu08Zgn8LjLR3 b61Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=/FNIuoFVvdXcGxHP6RYxrz0GltfddxIWy6SOAIiBXWI=; b=jGfdwIYOCaSuCvEmMyiO+FwR5WS/Wm0CjbpHm71Hn4Nv47GZVFEqq3oR2araVBlGLi IXan5UsPMp8zl7sK+Qghmq0ENOumlmgupJ+5x+VLrkSW9j8XsCxnRUicK//o3lyEtQzR gDa08jfq7EDss7YNEtBqLkQ1ox6bZuIaN9nL8AoafJTiReqoUZ8AZdWUueiDNzn8+bWK 6ZBS15+EER3BD+P0dpp4rAiLgb6XvwYHQ1dvOcQ/6bqD7rv8IouV5OQpH++gyKS8jagL +OqnmUg7vndo91O5MPXaLSIheMChGG2jp7YduusKfUgTnzyaBBbqQ8Oh9uByqrPLGHGU fahg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca17si8850636ejb.533.2020.07.12.23.28.10; Sun, 12 Jul 2020 23:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgGMG2G convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Jul 2020 02:28:06 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:38951 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgGMG2F (ORCPT ); Mon, 13 Jul 2020 02:28:05 -0400 Received: from [192.168.1.91] (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id CFBE6CECA3; Mon, 13 Jul 2020 08:38:01 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH 1/3] Bluetooth: Add new quirk for broken local ext features max_page From: Marcel Holtmann In-Reply-To: Date: Mon, 13 Jul 2020 08:27:33 +0200 Cc: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Johan Hedberg , "David S. Miller" , Jakub Kicinski , devicetree , arm-linux , kernel list , linux-bluetooth , "open list:NETWORKING [GENERAL]" , Ondrej Jirman Content-Transfer-Encoding: 8BIT Message-Id: <70578F86-20D3-41C7-A968-83B0605D3526@holtmann.org> References: <20200705195110.405139-1-anarsoul@gmail.com> <20200705195110.405139-2-anarsoul@gmail.com> To: Vasily Khoruzhick X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Vasily, >>> 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 send the btmon for this so I can see what the controller is responding. > > Here is relevant part: > > < HCI Command: Read Local Extend.. (0x04|0x0004) plen 1 #228 [hci0] 6.889869 > Page: 2 >> HCI Event: Command Complete (0x0e) plen 14 #229 [hci0] 6.890487 > Read Local Extended Features (0x04|0x0004) ncmd 2 > Status: Success (0x00) > Page: 2/2 > Features: 0x5f 0x03 0x00 0x00 0x00 0x00 0x00 0x00 > Connectionless Slave Broadcast - Master > Connectionless Slave Broadcast - Slave > Synchronization Train > Synchronization Scan > Inquiry Response Notification Event > Coarse Clock Adjustment > Secure Connections (Controller Support) > Ping > < HCI Command: Delete Stored Lin.. (0x03|0x0012) plen 7 #230 [hci0] 6.890559 > Address: 00:00:00:00:00:00 (OUI 00-00-00) > Delete all: 0x01 >> HCI Event: Command Complete (0x0e) plen 6 #231 [hci0] 6.891170 > Delete Stored Link Key (0x03|0x0012) ncmd 2 > Status: Success (0x00) > Num keys: 0 > < HCI Command: Read Synchronizat.. (0x03|0x0077) plen 0 #232 [hci0] 6.891199 >> HCI Event: Command Complete (0x0e) plen 9 #233 [hci0] 6.891788 > Read Synchronization Train Parameters (0x03|0x0077) ncmd 2 > invalid packet size > 01 ac bd 11 80 80 ...... > = Close Index: 00:E0:4C:23:99:87 [hci0] 6.891832 > > hci0 registration stops here and bluetoothctl doesn't even see the controller. maybe just the read sync train params command is broken? Can you change the init code and not send it and see if the rest of the init phase proceeds. I would rather have the secure connections actually tested before dismissing it altogether. Mind you, there were broken Broadcom implementation of connectionless slave broadcast as well. Maybe this is similar. Regards Marcel