Bluetooth: Set HCI_QUIRK_INVALID_BADDR for Intel USB default address
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 14:54:38 +0000 (16:54 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 15:09:34 +0000 (18:09 +0300)
When the Intel 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 3244e31..825f3e1 100644 (file)
@@ -1216,9 +1216,11 @@ static int btusb_check_bdaddr_intel(struct hci_dev *hdev)
         * fully operational, but have the danger of duplicate addresses
         * and that in turn can cause problems with Bluetooth operation.
         */
-       if (!bacmp(&rp->bdaddr, BDADDR_INTEL))
+       if (!bacmp(&rp->bdaddr, BDADDR_INTEL)) {
                BT_ERR("%s found Intel default device address (%pMR)",
                       hdev->name, &rp->bdaddr);
+               set_bit(HCI_QUIRK_INVALID_BDADDR, &hdev->quirks);
+       }
 
        kfree_skb(skb);