Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1278349ybb; Fri, 10 Apr 2020 22:57:12 -0700 (PDT) X-Google-Smtp-Source: APiQypKOQ3b1wy7WaIFuheZ9P4U4Plvat4U+BiKj0h1c+uCWf52xV9HKSA4xkgSLOh3cgqCXgmT2 X-Received: by 2002:ac8:3808:: with SMTP id q8mr2433754qtb.245.1586584632305; Fri, 10 Apr 2020 22:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586584632; cv=none; d=google.com; s=arc-20160816; b=jNIQriXmSMHSJxext6CC19/36DP05RKeQ16WpDACssO5ekYHIijEiVLBa30BqSS4OK HBPF5MW+bcaC757gOvqWLFNbR+kDqggnVouNfIb7Bqy5rgwyg6FBzyXOJ88w2BJputrC uMwyrycsYpOZdtxOaKX1yhQWkKHs/NJnhr1i0joIE49LKLW0ISSrsgu7/ExNlCJo5GYZ BptnA+hoxwFgdNdmPU/8sCVR/Yh7hIlU90JdlMs5QcQpEFL3reiCaiekwB8uHaUIu747 1X64KI/Qrx0eifbsgyjf7PYeuUDQbzp0srlsPHFJ8kxDDHAQnqTdRndZ8m3cIMQmqc9C t//Q== 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=QAAhRWel24SGwnZf/mcRIeJeQKs8EMALtm7jZp+i/2E=; b=NR9VYRz6ydJZzOHwVDmWdSoN9i4k+NI6G1qMa9psqx6pMxDCrOPrN0c8Tu5ahDENWm Z5MAA51hPhndYd+bw3ZL/QsSK3XBUEm4pZxI56humOvEoCF1W6aPfJ/eh17BZlWPt+eb o6pVInUZPp1KpgZyp3jcttGq5yvCt1/LDunBC84k1eBrcq5VvJMR6q6z0xC9/OZjdr5e XUnv3bI+hUoSpedGvJ3Y8PKYkfzul+pdSelBA5VSe/OywjRwDSVmOLXmpo47YT2imz8m dGEYwlFa0mFxaM+Oep+SZzjg3bBMYJWoxTKloW+MRjZUC17YxGfoT/6KlnlqaPtbx61z 1Yqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si2594083qkl.265.2020.04.10.22.56.40; Fri, 10 Apr 2020 22:57:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725867AbgDKF4j convert rfc822-to-8bit (ORCPT + 99 others); Sat, 11 Apr 2020 01:56:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:34536 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgDKF4j (ORCPT ); Sat, 11 Apr 2020 01:56:39 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 7699ECED16; Sat, 11 Apr 2020 08:06:13 +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 v2 1/1] Bluetooth: btrtl: Add support for RTL8761B From: Marcel Holtmann In-Reply-To: Date: Sat, 11 Apr 2020 07:56:37 +0200 Cc: Johan Hedberg , Bluetooth Kernel Mailing List , LKML , icenowy@aosc.io Content-Transfer-Encoding: 8BIT Message-Id: <3E2F3893-FA3E-4C58-AD0C-879C7A3DD30E@holtmann.org> References: <20200410145420.108868-1-sztsian@gmail.com> <20200410145420.108868-2-sztsian@gmail.com> <5CD9EBAA-44A6-4DFF-870E-4F862FB7A60E@holtmann.org> To: Zamir SUN 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 Zamir, >>> Add new compatible device RTL8761B. >>> >>> Signed-off-by: Ziqian SUN (Zamir) >>> --- >>> drivers/bluetooth/btrtl.c | 10 +++++++++- >>> 1 file changed, 9 insertions(+), 1 deletion(-) >> can you also please include the content of /sys/kernel/debug/usb/devices for this device in the commit message. >> And if you run btmon before plugging it in, I like to see what LE Features of Bluetooth 5.0 this dongle really offers. > > Hi Marcel, > > I think you want this section > > Supported settings: 0x0001bfff > Powered > Connectable > Fast Connectable > Discoverable > Bondable > Link Security > Secure Simple Pairing > BR/EDR > High Speed > Low Energy > Advertising > Secure Connections > Debug Keys > Privacy > Static Address > PHY Configuration > > Full log of btmon is available here, with the mac address masked http://fars.ee/Lu85 > > I'll send a v3 to include the usb info in the commit message shortly. This hardware is funny. Before the firmware patching it says this: < HCI Command: Read Local Version In.. (0x04|0x0001) plen 0 > HCI Event: Command Complete (0x0e) plen 12 Read Local Version Information (0x04|0x0001) ncmd 2 Status: Success (0x00) HCI version: Bluetooth 5.1 (0x0a) - Revision 11 (0x000b) LMP version: Bluetooth 5.1 (0x0a) - Subversion 34657 (0x8761) Manufacturer: Realtek Semiconductor Corporation (93) And after the firmware patching it downgrades to Bluetooth 5.0 standard: < HCI Command: Read Local Version... (0x04|0x0001) plen 0 > HCI Event: Command Complete (0x0e) plen 12 Read Local Version Information (0x04|0x0001) ncmd 2 Status: Success (0x00) HCI version: Bluetooth 5.0 (0x09) - Revision 55448 (0xd898) LMP version: Bluetooth 5.0 (0x09) - Subversion 50044 (0xc37c) Manufacturer: Realtek Semiconductor Corporation (93) Anyway, I was after these LE Features: < HCI Command: LE Read Local Suppo.. (0x08|0x0003) plen 0 > HCI Event: Command Complete (0x0e) plen 12 LE Read Local Supported Features (0x08|0x0003) ncmd 2 Status: Success (0x00) Features: 0xfd 0x5f 0x00 0x00 0x00 0x00 0x00 0x00 LE Encryption Extended Reject Indication Slave-initiated Features Exchange LE Ping LE Data Packet Length Extension LL Privacy Extended Scanner Filter Policies LE 2M PHY Stable Modulation Index - Transmitter Stable Modulation Index - Receiver LE Coded PHY LE Extended Advertising Channel Selection Algorithm #2 This seems to be a genuine USB dongle with Bluetooth 5.0 features. Regards Marcel