Bluetooth: btusb: Fix detection of some fake CSR controllers with a bcdDevice val...
authorHans de Goede <hdegoede@redhat.com>
Sat, 5 Dec 2020 15:02:00 +0000 (16:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:40 +0000 (11:53 +0100)
commit6af7b5ab2a0346c7404f22dff53ebdf91b8d87f1
tree2f67bceb13e2f212e8ebf07d5016c51f8ea71d57
parentaa4f552aec3d43cc1455490825399d178da0a65f
Bluetooth: btusb: Fix detection of some fake CSR controllers with a bcdDevice val of 0x0134

[ Upstream commit d74e0ae7e03032b47b8631cc1e52a7ae1ce988c0 ]

Commit cde1a8a99287 ("Bluetooth: btusb: Fix and detect most of the
Chinese Bluetooth controllers") made the detection of fake controllers
more generic fixing it for much of the newer fakes / clones.

But this does not work for a fake CSR controller with a bcdDevice
value of 0x0134, which was correctly identified as fake before
this change.

Add an extra check for this special case, checking for a combination
of a bcdDevice value of 0x0134, together with a lmp_subver of 0x0c5c
and a hci_ver of BLUETOOTH_VER_2_0.

The chip inside this fake dongle is marked as with "clockwise cw6629d".

Fixes: cde1a8a99287 ("Bluetooth: btusb: Fix and detect most of the Chinese Bluetooth controllers")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btusb.c