OSDN Git Service

Bluetooth: btrtl: Enable MSFT extension for RTL8822CE controller
authorMiao-chen Chou <mcchou@chromium.org>
Thu, 17 Dec 2020 22:53:21 +0000 (14:53 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Dec 2020 21:33:39 +0000 (22:33 +0100)
The Realtek RTL8822CE Bluetooth controller support Microsoft vendor
extension and it uses 0xFCF0 for VsMsftOpCode.

The following test step was performed.
- Boot the test device with RTL8822CE and verify the INFO print in
dmesg.

Signed-off-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrtl.c

index a4f7cac..94df4e9 100644 (file)
@@ -658,6 +658,12 @@ out_free:
                }
        }
 
+       /* RTL8822CE supports the Microsoft vendor extension and uses 0xFCF0
+        * for VsMsftOpCode.
+        */
+       if (lmp_subver == RTL_ROM_LMP_8822B)
+               hci_set_msft_opcode(hdev, 0xFCF0);
+
        return btrtl_dev;
 
 err_free: