[OEM-5.14] [PATCH 1/1] Bluetooth: btusb: Enable MSFT extension for Mediatek Chip (MT7921)

Kai-Heng Feng kai.heng.feng at canonical.com
Fri Mar 25 15:53:47 UTC 2022

From: "mark-yw.chen" <mark-yw.chen at mediatek.com>

BugLink: https://bugs.launchpad.net/bugs/1966497

The Mdiatek MT7921(7961) support MSFT HCI extensions, we are using
0xFD30 for VsMsftOpCode.

Signed-off-by: mark-yw.chen <mark-yw.chen at mediatek.com>
Signed-off-by: Marcel Holtmann <marcel at holtmann.org>
(cherry picked from commit 654e6f7700c46017af309aab594f0afdebc30740)
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
 drivers/bluetooth/btusb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index fb6c2fd9ab085..42d675bef24aa 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -3858,6 +3858,8 @@ static int btusb_mtk_setup(struct hci_dev *hdev)
 			bt_dev_err(hdev, "Failed to send wmt func ctrl (%d)", err);
 			return err;
+		hci_set_msft_opcode(hdev, 0xFD30);
 		goto done;
 		bt_dev_err(hdev, "Unsupported hardware variant (%08x)",

More information about the kernel-team mailing list