Skip to contentSkip to conversation

Bluetooth: btbcm: Read USB product information for Apple devices

PATCH Applied Marcel Holtmann 2 participants 2 messages Oct 18, 2015 – Oct 19, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: btbcm: Read USB product information for Apple devices

For the Apple Bluetooth devices, read the USB product information and print them. This allows for easy mapping of chip and USB details.

---
 drivers/bluetooth/btbcm.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/bluetooth/btbcm.c +9 -0
index 40ad0e1ccf75..0b697946e9bc 100644
@@ -527,6 +527,15 @@ int btbcm_setup_apple(struct hci_dev *hdev)
 		kfree_skb(skb);
 	}
 
+	/* Read USB Product Info */
+	skb = btbcm_read_usb_product(hdev);
+	if (!IS_ERR(skb)) {
+		BT_INFO("%s: BCM: product %4.4x:%4.4x", hdev->name,
+			get_unaligned_le16(skb->data + 1),
+			get_unaligned_le16(skb->data + 3));
+		kfree_skb(skb);
+	}
+
 	/* Read Local Name */
 	skb = btbcm_read_local_name(hdev);
 	if (!IS_ERR(skb)) {
Signature · 1 line
2.4.3
#1 lore raw

Hi Marcel,

Quoted 7 lines · Marcel Holtmann

For the Apple Bluetooth devices, read the USB product information and print them. This allows for easy mapping of chip and USB details.

---
 drivers/bluetooth/btbcm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Applied to bluetooth-next. Thanks.

Johan