aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-10-18 16:48:28 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-10-20 18:49:23 -0400
commit34cea41e84d5e87a0bd4d5388adab58d0cbc9532 (patch)
treeb5a91c69269c6a5bc8b8521166aa85374ad6e76e /drivers/bluetooth
parent8045ce2197bf61b5b82bbe38fcc5feeaf7348ad1 (diff)
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. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btbcm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 40ad0e1ccf75..0b697946e9bc 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -527,6 +527,15 @@ int btbcm_setup_apple(struct hci_dev *hdev)
527 kfree_skb(skb); 527 kfree_skb(skb);
528 } 528 }
529 529
530 /* Read USB Product Info */
531 skb = btbcm_read_usb_product(hdev);
532 if (!IS_ERR(skb)) {
533 BT_INFO("%s: BCM: product %4.4x:%4.4x", hdev->name,
534 get_unaligned_le16(skb->data + 1),
535 get_unaligned_le16(skb->data + 3));
536 kfree_skb(skb);
537 }
538
530 /* Read Local Name */ 539 /* Read Local Name */
531 skb = btbcm_read_local_name(hdev); 540 skb = btbcm_read_local_name(hdev);
532 if (!IS_ERR(skb)) { 541 if (!IS_ERR(skb)) {