Bluetooth: Set HCI_QUIRK_STRICT_DUPLICATE_FILTER for BTUSB_ATH3012
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 29 Jan 2015 18:38:34 +0000 (10:38 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 29 Jan 2015 19:11:54 +0000 (20:11 +0100)
The Bluetooth controllers from Atheros use a strict scanning filter
policy that filters based on Bluetooth device addresses and not on
RSSI. So tell the core about this.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c

index d114786490b18d72ae5107f7f6b5a3b678529161..3aa4b3c776b24db3a5e8231bbe361e14b7b2b69c 100644 (file)
@@ -2731,8 +2731,10 @@ static int btusb_probe(struct usb_interface *intf,
        if (id->driver_info & BTUSB_INTEL_BOOT)
                set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);
 
-       if (id->driver_info & BTUSB_ATH3012)
+       if (id->driver_info & BTUSB_ATH3012) {
                hdev->set_bdaddr = btusb_set_bdaddr_ath3012;
+               set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks);
+       }
 
        if (id->driver_info & BTUSB_AMP) {
                /* AMP controllers do not support SCO packets */