Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315659
b: refs/heads/master
c: 33cef26
h: refs/heads/master
i:
  315657: 0ce21cd
  315655: 394ddab
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Jun 19, 2012
1 parent 1372a74 commit a33cf30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 3701f94451ea341fb5305cb55f7afc04bf0dc56e
refs/heads/master: 33cef264cd945d64ae8cbbfc5f246661f9655483
6 changes: 2 additions & 4 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 |= MGMT_DEV_FOUND_CONFIRM_NAME;
ev->flags |= cpu_to_le32(MGMT_DEV_FOUND_CONFIRM_NAME);
if (!ssp)
ev->flags |= MGMT_DEV_FOUND_LEGACY_PAIRING;
ev->flags |= cpu_to_le32(MGMT_DEV_FOUND_LEGACY_PAIRING);

if (eir_len > 0)
memcpy(ev->eir, eir, eir_len);
Expand All @@ -3558,8 +3558,6 @@ 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;

return mgmt_event(MGMT_EV_DEVICE_FOUND, hdev, ev, ev_size, NULL);
Expand Down

0 comments on commit a33cf30

Please sign in to comment.