Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306907
b: refs/heads/master
c: 31f7956
h: refs/heads/master
i:
  306905: 0cf33c5
  306903: c52bad7
v: v3
  • Loading branch information
Andre Guedes authored and Gustavo Padovan committed May 9, 2012
1 parent a2858d2 commit 25afb14
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 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: 378b5b7e8426f65a0ecb81b83a050c6a0c119e1f
refs/heads/master: 31f7956c6648fbae9c9550e91d1c348d28276309
2 changes: 2 additions & 0 deletions trunk/include/net/bluetooth/hci_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1073,4 +1073,6 @@ int hci_le_scan(struct hci_dev *hdev, u8 type, u16 interval, u16 window,
int timeout);
int hci_cancel_le_scan(struct hci_dev *hdev);

u8 bdaddr_to_le(u8 bdaddr_type);

#endif /* __HCI_CORE_H */
12 changes: 12 additions & 0 deletions trunk/net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2946,3 +2946,15 @@ int hci_cancel_inquiry(struct hci_dev *hdev)

return hci_send_cmd(hdev, HCI_OP_INQUIRY_CANCEL, 0, NULL);
}

u8 bdaddr_to_le(u8 bdaddr_type)
{
switch (bdaddr_type) {
case BDADDR_LE_PUBLIC:
return ADDR_LE_DEV_PUBLIC;

default:
/* Fallback to LE Random address type */
return ADDR_LE_DEV_RANDOM;
}
}
12 changes: 0 additions & 12 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1644,18 +1644,6 @@ static u8 link_to_bdaddr(u8 link_type, u8 addr_type)
}
}

static u8 bdaddr_to_le(u8 bdaddr_type)
{
switch (bdaddr_type) {
case BDADDR_LE_PUBLIC:
return ADDR_LE_DEV_PUBLIC;

default:
/* Fallback to LE Random address type */
return ADDR_LE_DEV_RANDOM;
}
}

static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data,
u16 data_len)
{
Expand Down

0 comments on commit 25afb14

Please sign in to comment.