summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorChethan T N <chethan.tumkur.narayan@intel.com>2021-07-29 09:43:21 -0700
committerMarcel Holtmann <marcel@holtmann.org>2021-07-29 21:46:24 +0200
commitf283f4765b65fde8a1b9927702b107e9fbd06d6a (patch)
treebb46f81196ea6797de243c721ac5a24c96cf9197 /drivers/bluetooth
parentcbe6a0441315dfc0d6db62da3904d5f6d5747fab (diff)
Bluetooth: btusb: Enable MSFT extension for Intel next generation controllers
The Intel TyphoonPeak, GarfieldPeak Bluetooth controllers support the Microsoft vendor extension and they are using 0xFC1E for VsMsftOpCode. Verified on a GarfieldPeak device through bluetoothctl show Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com> Signed-off-by: Michael Sun <michaelfsun@google.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btusb.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index ab83ecc99920..07cb5d9dc483 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -3028,6 +3028,17 @@ static int btusb_setup_intel_newgen(struct hci_dev *hdev)
btintel_version_info_tlv(hdev, &version);
finish:
+ /* All Intel new genration controllers support the Microsoft vendor
+ * extension are using 0xFC1E for VsMsftOpCode.
+ */
+ switch (INTEL_HW_VARIANT(version.cnvi_bt)) {
+ case 0x17:
+ case 0x18:
+ case 0x19:
+ hci_set_msft_opcode(hdev, 0xFC1E);
+ break;
+ }
+
/* Set the event mask for Intel specific vendor events. This enables
* a few extra events that are useful during general operation. It
* does not enable any debugging related events.