aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 02b89e299ff8..1da458d9b5ca 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -488,6 +488,19 @@ static void create_eir(struct hci_dev *hdev, u8 *data)
488 ptr += 3; 488 ptr += 3;
489 } 489 }
490 490
491 if (hdev->devid_source > 0) {
492 ptr[0] = 9;
493 ptr[1] = EIR_DEVICE_ID;
494
495 put_unaligned_le16(hdev->devid_source, ptr + 2);
496 put_unaligned_le16(hdev->devid_vendor, ptr + 4);
497 put_unaligned_le16(hdev->devid_product, ptr + 6);
498 put_unaligned_le16(hdev->devid_version, ptr + 8);
499
500 eir_len += 10;
501 ptr += 10;
502 }
503
491 memset(uuid16_list, 0, sizeof(uuid16_list)); 504 memset(uuid16_list, 0, sizeof(uuid16_list));
492 505
493 /* Group all UUID16 types */ 506 /* Group all UUID16 types */