OSDN Git Service

Bluetooth: btrtl: Set MSFT opcode for RTL8852
authorArchie Pusaka <apusaka@chromium.org>
Tue, 13 Jul 2021 08:37:03 +0000 (16:37 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Jul 2021 14:20:27 +0000 (16:20 +0200)
RTL8852 support MSFT HCI extension, therefore set the proper MSFT
opcode.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Hilda Wu <hildawu@realtek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btrtl.c

index cce0125..1f8afa0 100644 (file)
@@ -681,11 +681,15 @@ out_free:
                }
        }
 
-       /* RTL8822CE supports the Microsoft vendor extension and uses 0xFCF0
-        * for VsMsftOpCode.
+       /* The following chips supports the Microsoft vendor extension,
+        * therefore set the corresponding VsMsftOpCode.
         */
-       if (lmp_subver == RTL_ROM_LMP_8822B)
+       switch (lmp_subver) {
+       case RTL_ROM_LMP_8822B:
+       case RTL_ROM_LMP_8852A:
                hci_set_msft_opcode(hdev, 0xFCF0);
+               break;
+       }
 
        return btrtl_dev;