Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306835
b: refs/heads/master
c: 2b9be13
h: refs/heads/master
i:
  306833: ba34a10
  306831: 8e18ccb
v: v3
  • Loading branch information
Marcel Holtmann authored and Gustavo Padovan committed May 9, 2012
1 parent 7a0f54c commit b939ae2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91c4e9b1ac595f83681c9a9de691e0f30eeafb44
refs/heads/master: 2b9be137b70bef9ec7835d83e225d8b35ba9c7ae
4 changes: 4 additions & 0 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ struct hci_dev {
__u16 voice_setting;
__u8 io_capability;
__s8 inq_tx_power;
__u16 devid_source;
__u16 devid_vendor;
__u16 devid_product;
__u16 devid_version;

__u16 pkt_type;
__u16 esco_type;
Expand Down
13 changes: 13 additions & 0 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,19 @@ static void create_eir(struct hci_dev *hdev, u8 *data)
ptr += 3;
}

if (hdev->devid_source > 0) {
ptr[0] = 9;
ptr[1] = EIR_DEVICE_ID;

put_unaligned_le16(hdev->devid_source, ptr + 2);
put_unaligned_le16(hdev->devid_vendor, ptr + 4);
put_unaligned_le16(hdev->devid_product, ptr + 6);
put_unaligned_le16(hdev->devid_version, ptr + 8);

eir_len += 10;
ptr += 10;
}

memset(uuid16_list, 0, sizeof(uuid16_list));

/* Group all UUID16 types */
Expand Down

0 comments on commit b939ae2

Please sign in to comment.