Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 1442414576426b81d31be9fa37fb1f0da634ca6b Mon Sep 17 00:00:00 2001
- From: Szymon Janc <szymon.janc@codecoup.pl>
- Date: Sun, 5 Nov 2017 20:20:57 +0100
- Subject: [PATCH] Bluetooth: btusb: Mark F8T013 devices to have broken link key
- commands
- Belkin F8T013 seems to have a problem with the stored link key
- commands so just mark it as broken.
- < HCI Command: Read Local Suppor.. (0x04|0x0003) plen 0 #3 [hci0] 264.545788
- > HCI Event: Command Complete (0x0e) plen 12 #4 [hci0] 264.547252
- Read Local Supported Features (0x04|0x0003) ncmd 1
- Status: Success (0x00)
- Features: 0xff 0xfb 0x8d 0xfe 0x9f 0xf9 0x00 0x80
- < HCI Command: Read Local Versio.. (0x04|0x0001) plen 0 #5 [hci0] 264.547270
- > HCI Event: Command Complete (0x0e) plen 12 #6 [hci0] 264.548251
- Read Local Version Information (0x04|0x0001) ncmd 1
- Status: Success (0x00)
- HCI version: Bluetooth 2.0 (0x03) - Revision 8307 (0x2073)
- LMP version: Bluetooth 2.0 (0x03) - Subversion 16654 (0x410e)
- Manufacturer: Broadcom Corporation (15)
- Firmware: 002.001.014 (BCM20702B0)
- Build: 0115
- ....
- < HCI Command: Read Local Suppo.. (0x04|0x0002) plen 0 #25 [hci0] 264.574258
- > HCI Event: Command Complete (0x0e) plen 68 #26 [hci0] 264.580248
- Read Local Supported Commands (0x04|0x0002) ncmd 1
- Status: Success (0x00)
- Commands: 105 entries
- ....
- Write Stored Link Key (Octet 6 - Bit 6)
- Delete Stored Link Key (Octet 6 - Bit 7)
- ....
- ....
- < HCI Command: Delete Stored Li.. (0x03|0x0012) plen 7 #37 [hci0] 264.585265
- Address: 00:00:00:00:00:00 (OUI 00-00-00)
- Delete all: 0x01
- > HCI Event: Command Complete (0x0e) plen 4 #38 [hci0] 264.586249
- Delete Stored Link Key (0x03|0x0012) ncmd 1
- Status: Unsupported Feature or Parameter Value (0x11)
- = Close Index: 00:0A:3A:66:3D:B9 [hci0] 264.586262
- Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
- ---
- drivers/bluetooth/btusb.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
- index f7120c9eb9bd..32a10d7be0c3 100644
- --- a/drivers/bluetooth/btusb.c
- +++ b/drivers/bluetooth/btusb.c
- @@ -66,6 +66,7 @@ static struct usb_driver btusb_driver;
- #define BTUSB_BCM2045 0x40000
- #define BTUSB_IFNUM_2 0x80000
- #define BTUSB_CW6622 0x100000
- +#define BTUSB_F8T013 0x200000
- static const struct usb_device_id btusb_table[] = {
- /* Generic Bluetooth USB device */
- @@ -297,7 +298,8 @@ static const struct usb_device_id blacklist_table[] = {
- /* Belkin F8T012 and F8T013 devices */
- { USB_DEVICE(0x050d, 0x0012), .driver_info = BTUSB_WRONG_SCO_MTU },
- - { USB_DEVICE(0x050d, 0x0013), .driver_info = BTUSB_WRONG_SCO_MTU },
- + { USB_DEVICE(0x050d, 0x0013),
- + .driver_info = BTUSB_WRONG_SCO_MTU | BTUSB_F8T013},
- /* Asus WL-BTD202 device */
- { USB_DEVICE(0x0b05, 0x1715), .driver_info = BTUSB_WRONG_SCO_MTU },
- @@ -3043,6 +3045,9 @@ static int btusb_probe(struct usb_interface *intf,
- goto out_free_dev;
- }
- #endif
- + if (id->driver_info & BTUSB_F8T013)
- + set_bit(HCI_QUIRK_BROKEN_STORED_LINK_KEY, &hdev->quirks);
- +
- if (id->driver_info & BTUSB_CW6622)
- set_bit(HCI_QUIRK_BROKEN_STORED_LINK_KEY, &hdev->quirks);
- --
- 2.14.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement