Skip to contentSkip to conversation

Bluetooth: Set HCI_QUIRK_INVALID_BADDR for Intel USB default address

PATCH In review Marcel Holtmann 1 participant 1 message Jul 4, 2014 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 2/4 Bluetooth: Set HCI_QUIRK_INVALID_BADDR for Intel USB default address

When the Intel USB controller has a default address, then set the quirk so the Bluetooth core knows that controller configuration is required.

---
 drivers/bluetooth/btusb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/bluetooth/btusb.c +3 -1
index 3244e311ca29..825f3e16651f 100644
@@ -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);
 
Signature · 1 line
1.9.3