aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-25 22:42:33 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-26 13:16:13 -0500
commitd57dbe779e0e14a8cdc7327b5cfcd02122728d0f (patch)
tree2afb12d5a971068c3d1cfa4162f456676db4516d /drivers/bluetooth
parent9ef80d40e901feb875660101dabdeddaa27e837c (diff)
Bluetooth: btusb: Set the HCI_QUIRK_BROKEN_LOCAL_COMMANDS quirk
The AVM BlueFritz! 2.0 USB dongles do not support the HCI command for reading the local supported commands. So set this quirk to let the core know about it. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btusb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index c926835aec37..f051a93c6cad 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -49,6 +49,7 @@ static struct usb_driver btusb_driver;
49#define BTUSB_INTEL_BOOT 0x200 49#define BTUSB_INTEL_BOOT 0x200
50#define BTUSB_BCM_PATCHRAM 0x400 50#define BTUSB_BCM_PATCHRAM 0x400
51#define BTUSB_MARVELL 0x800 51#define BTUSB_MARVELL 0x800
52#define BTUSB_AVM 0x1000
52 53
53static const struct usb_device_id btusb_table[] = { 54static const struct usb_device_id btusb_table[] = {
54 /* Generic Bluetooth USB device */ 55 /* Generic Bluetooth USB device */
@@ -85,7 +86,7 @@ static const struct usb_device_id btusb_table[] = {
85 { USB_DEVICE(0x05ac, 0x8281) }, 86 { USB_DEVICE(0x05ac, 0x8281) },
86 87
87 /* AVM BlueFRITZ! USB v2.0 */ 88 /* AVM BlueFRITZ! USB v2.0 */
88 { USB_DEVICE(0x057c, 0x3800) }, 89 { USB_DEVICE(0x057c, 0x3800), .driver_info = BTUSB_AVM },
89 90
90 /* Bluetooth Ultraport Module from IBM */ 91 /* Bluetooth Ultraport Module from IBM */
91 { USB_DEVICE(0x04bf, 0x030a) }, 92 { USB_DEVICE(0x04bf, 0x030a) },
@@ -2080,6 +2081,9 @@ static int btusb_probe(struct usb_interface *intf,
2080 if (id->driver_info & BTUSB_MARVELL) 2081 if (id->driver_info & BTUSB_MARVELL)
2081 hdev->set_bdaddr = btusb_set_bdaddr_marvell; 2082 hdev->set_bdaddr = btusb_set_bdaddr_marvell;
2082 2083
2084 if (id->driver_info & BTUSB_AVM)
2085 set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);
2086
2083 if (id->driver_info & BTUSB_INTEL_BOOT) 2087 if (id->driver_info & BTUSB_INTEL_BOOT)
2084 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks); 2088 set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
2085 2089