Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp720786ybh; Sun, 12 Jul 2020 22:09:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze1fcMMMvZnUyNcib7XszZBEPPxE/XbCYS6GurtlRg6jS5emujzErLi9U8XYF3CWw0hOGe X-Received: by 2002:a50:9f6a:: with SMTP id b97mr87172446edf.322.1594616992144; Sun, 12 Jul 2020 22:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594616992; cv=none; d=google.com; s=arc-20160816; b=mv5WnYvuGUkZTVofeUeSyQJprUI+k7xE581uERUW542D0UqOX0NkgbIMa6J6D6BUo3 xba3smVGM0Ktp3nne4/+lWtrwGps6M2xTo66TqM9WkIuD9SxAZKokIpabxOpxx6QTjXM QCmV5T2Vr5FpekaQny0zdBbIGJkorZ1pW+93dCaY3gzyYU63mhekrEfstHSZs1EPLPFS aZFP/3+YqIjJCdiOT9zP/kti5GJN9YmeTLCa4X2gkTU7R37qHJbdGxB6KKPQEQVL0Szw aSSvyD7bPnLpi0zJu4cHGS2ANGDoB3utLfoogfNAlGLxbqs8/Vxt3+03xd96cee/gthT FooQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Mgj/wvd79X6Tg0otEw1MjyAhvhEJqLE80+gVPS33EpM=; b=L42H4/tfzo7BigcJlvdk/CNhtI7Judzd411zoiQsDaoDPezS+lD4JpSd82P94GvjUg WGi7JzH9OdDJwWTduP7JlimMGZ6kmuf39NykFSXyAlh/iYhhl7CXlufXEOblOg0EYlP5 m0BoFamd0a8/E9xyn4Fs+SfSG0n1yUfWVTXU99AzsS2Cw1QUdSalXiFu28lLGWydz9ml NJSAVCtr2z/leiqK/B335DbbnGLPiUoZlHsDFXb50od47G4TayjrjCnL0LpajUBkuJD1 fIAbFMo/kiW78M1J+W3chXo05O7bAQozmXGNhg5Y3u2QVI3IqHfnnQvWLGduZq3xGJP7 aL1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Agzoe9FS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si10818371edx.162.2020.07.12.22.09.28; Sun, 12 Jul 2020 22:09:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Agzoe9FS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725938AbgGMFJY (ORCPT + 99 others); Mon, 13 Jul 2020 01:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgGMFJY (ORCPT ); Mon, 13 Jul 2020 01:09:24 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F28FC061794; Sun, 12 Jul 2020 22:09:24 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id o38so9085956qtf.6; Sun, 12 Jul 2020 22:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mgj/wvd79X6Tg0otEw1MjyAhvhEJqLE80+gVPS33EpM=; b=Agzoe9FSrpGTKPO+ZjPAOqoT76Xl/XX1v0yMlXP5nbGof6W1/JAmCMjBdIopUjwhw3 FvslyZbteEaNueMND2tqEw7qxjofYqRQ0e0+kgBwpWN656vEtasQf665kounoqet6iGw ui3e9LtGa0wCYk3zVc/2Px7MKpzWlbQjfkvxkO8o2oTDSLoFLW8f0I3N20xDX1llYivr s42qm/WZB7hP0OqjAt+u6tVOn3fb1wBcM9/8EWCrd/c1Mdx2YlLiFkKKeQzpvslWBzLr PXMcAi8wg6/jmwSp+psa2Yw1mLGSyn4DaoJ8J+2FIeX+vyj9SbFURP3TQ6g09gh0/ylh /WPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mgj/wvd79X6Tg0otEw1MjyAhvhEJqLE80+gVPS33EpM=; b=eYmt97XTYeYGEx/CL1x137GLCcTW2aVrUWhbDWuhrJSHfn5lTz45ZeQJVu971YjoqT fvIP60DVbPWJAD/43IJyx+9TycIOV6L4loRX95wE+10WbcGEdPVPNWEV8UTVCi2EI8ur QUf+JluhuT+0Pk4IAsTh2XJILh3BArQYZaXQoH4pGa3kV38yZYZ1d3vdHP2RR7tbX1Kg vwa7wIXysyvvojI7FgLF+TfmlFybqLvmBYRSnEZS567RzxaMRDdNSfQtDXXuaxtxB5tb PgE72RMtNgSyRz5F5/j4Fn+0VX4xv1gmEUu9BgRfS3mAxSAJLC4EMVNSHJtTu/E42WWy V8qw== X-Gm-Message-State: AOAM530msnpKJdt00qb4IXvw/L0X77yPSR+4nvzo5xe5iNlIMppayjTL RH37e/gVl5J3B/SHepdnw8Mv5CbGYaFnwbY3iNUXhTUR X-Received: by 2002:ac8:40cd:: with SMTP id f13mr79930028qtm.373.1594616963390; Sun, 12 Jul 2020 22:09:23 -0700 (PDT) MIME-Version: 1.0 References: <20200705195110.405139-1-anarsoul@gmail.com> <20200705195110.405139-2-anarsoul@gmail.com> In-Reply-To: From: Vasily Khoruzhick Date: Sun, 12 Jul 2020 22:08:57 -0700 Message-ID: Subject: Re: [PATCH 1/3] Bluetooth: Add new quirk for broken local ext features max_page To: Marcel Holtmann 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-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Tue, Jul 7, 2020 at 9:03 AM Marcel Holtmann wrote: > > 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. > Regards > > Marcel >