Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315657
b: refs/heads/master
c: af7985b
h: refs/heads/master
i:
  315655: 394ddab
v: v3
  • Loading branch information
Jefferson Delfes authored and Gustavo Padovan committed Jun 13, 2012
1 parent b84c758 commit 0ce21cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11778716ededa873f24eebaae011e52f3d27dfca
refs/heads/master: af7985bf85840e3dc90ba108a679db044f91f00e
2 changes: 1 addition & 1 deletion trunk/include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ struct mgmt_ev_auth_failed {
struct mgmt_ev_device_found {
struct mgmt_addr_info addr;
__s8 rssi;
__u8 flags[4];
__le32 flags;
__le16 eir_len;
__u8 eir[0];
} __packed;
Expand Down
5 changes: 3 additions & 2 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3546,9 +3546,9 @@ int mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
ev->addr.type = link_to_bdaddr(link_type, addr_type);
ev->rssi = rssi;
if (cfm_name)
ev->flags[0] |= MGMT_DEV_FOUND_CONFIRM_NAME;
ev->flags |= MGMT_DEV_FOUND_CONFIRM_NAME;
if (!ssp)
ev->flags[0] |= MGMT_DEV_FOUND_LEGACY_PAIRING;
ev->flags |= MGMT_DEV_FOUND_LEGACY_PAIRING;

if (eir_len > 0)
memcpy(ev->eir, eir, eir_len);
Expand All @@ -3558,6 +3558,7 @@ int mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
dev_class, 3);

ev->eir_len = cpu_to_le16(eir_len);
ev->flags = cpu_to_le32(ev->flags);

ev_size = sizeof(*ev) + eir_len;

Expand Down

0 comments on commit 0ce21cd

Please sign in to comment.