Bluetooth: Set HCI_QUIRK_INVALID_BADDR for BCM20702A0 default address
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 14:54:39 +0000 (16:54 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 15:09:35 +0000 (18:09 +0300)
When the Broadcom USB controller has a default address, then set the quirk
so the Bluetooth core knows that controller configuration is required.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btusb.c

index 825f3e16651f5df871d8a9cbf920290c7a28f594..61d8385666e9919e09bcfed52cc59bd8a363ab9c 100644 (file)
@@ -1624,9 +1624,11 @@ reset_fw:
        /* The address 00:20:70:02:A0:00 indicates a BCM20702A0 controller
         * with no configured address.
         */
-       if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0))
+       if (!bacmp(&bda->bdaddr, BDADDR_BCM20702A0)) {
                BT_INFO("%s: BCM: using default device address (%pMR)",
                        hdev->name, &bda->bdaddr);
+               set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
+       }
 
        kfree_skb(skb);