Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291047
b: refs/heads/master
c: 9a395a8
h: refs/heads/master
i:
  291045: 928d060
  291043: 6a577b9
  291039: 07968f4
v: v3
  • Loading branch information
Johan Hedberg committed Feb 23, 2012
1 parent 63b5f1a commit 97b563e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 86a8cfc6d0428f32d702ec59c1b3ef38541a6821
refs/heads/master: 9a395a80dc6a2004787539dcc0c7d167ba87e89a
5 changes: 4 additions & 1 deletion trunk/include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,14 @@ struct mgmt_ev_auth_failed {
__u8 status;
} __packed;

#define MGMT_DEV_FOUND_CONFIRM_NAME 0x01
#define MGMT_DEV_FOUND_LEGACY_PAIRING 0x02

#define MGMT_EV_DEVICE_FOUND 0x0012
struct mgmt_ev_device_found {
struct mgmt_addr_info addr;
__s8 rssi;
__u8 confirm_name;
__u8 flags[4];
__le16 eir_len;
__u8 eir[0];
} __packed;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3745,7 +3745,8 @@ int mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
bacpy(&ev->addr.bdaddr, bdaddr);
ev->addr.type = link_to_mgmt(link_type, addr_type);
ev->rssi = rssi;
ev->confirm_name = cfm_name;
if (cfm_name)
ev->flags[0] |= MGMT_DEV_FOUND_CONFIRM_NAME;

if (eir_len > 0)
memcpy(ev->eir, eir, eir_len);
Expand Down

0 comments on commit 97b563e

Please sign in to comment.