Skip to contentSkip to conversation

Bluetooth: Set HCI_QUIRK_INVALID_BADDR for BCM20702A0 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 3/4 Bluetooth: Set HCI_QUIRK_INVALID_BADDR for BCM20702A0 default address

When the Broadcom 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 825f3e16651f..61d8385666e9 100644
@@ -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);
 
Signature · 1 line
1.9.3