From: Miao-chen Chou Date: Thu, 17 Dec 2020 22:53:21 +0000 (-0800) Subject: Bluetooth: btrtl: Enable MSFT extension for RTL8822CE controller X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=673fae14f24052ead45e0446d1c3c829bd2f2e64;p=linux.git Bluetooth: btrtl: Enable MSFT extension for RTL8822CE controller 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 Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Archie Pusaka Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index a4f7cace66b06..94df4e94999d5 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -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: