Skip to content

Commit 3be4692

Browse files
Peter Tsaogregkh
authored andcommitted
Bluetooth: btusb: Fix the patch for MT7920 the affected to MT7921
commit 958cd6b upstream. Because both MT7920 and MT7921 use the same chip ID. We use the 8th bit of fw_flavor to distingush MT7920. The original patch made a mistake to check whole fw_flavor, that makes the condition both true (dev_id == 0x7961 && fw_flavor), and makes MT7921 flow wrong. In this patch, we correct the flow to get the 8th bit value for MT7920. And the patch is verified pass with both MT7920 and MT7921. Signed-off-by: Peter Tsao <peter.tsao@mediatek.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b019fcc commit 3be4692

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/bluetooth/btusb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,6 +3118,7 @@ static int btusb_mtk_setup(struct hci_dev *hdev)
31183118
bt_dev_err(hdev, "Failed to get fw flavor (%d)", err);
31193119
return err;
31203120
}
3121+
fw_flavor = (fw_flavor & 0x00000080) >> 7;
31213122
}
31223123

31233124
mediatek = hci_get_priv(hdev);

0 commit comments

Comments
 (0)