diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-04-24 20:02:53 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 00:40:44 -0400 |
commit | 31f7956c6648fbae9c9550e91d1c348d28276309 (patch) | |
tree | 1493deb456bfb82bf9ff3ad2380bdd2dcf60baae /net/bluetooth/mgmt.c | |
parent | 378b5b7e8426f65a0ecb81b83a050c6a0c119e1f (diff) |
Bluetooth: Move bdaddr_to_le to hci_core
This patch moves the helper function bdaddr_to_le to hci_core, so it
can be used in mgmt.c and hci_conn.c.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 605a35b284f..4e26c258581 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -1644,18 +1644,6 @@ static u8 link_to_bdaddr(u8 link_type, u8 addr_type) | |||
1644 | } | 1644 | } |
1645 | } | 1645 | } |
1646 | 1646 | ||
1647 | static u8 bdaddr_to_le(u8 bdaddr_type) | ||
1648 | { | ||
1649 | switch (bdaddr_type) { | ||
1650 | case BDADDR_LE_PUBLIC: | ||
1651 | return ADDR_LE_DEV_PUBLIC; | ||
1652 | |||
1653 | default: | ||
1654 | /* Fallback to LE Random address type */ | ||
1655 | return ADDR_LE_DEV_RANDOM; | ||
1656 | } | ||
1657 | } | ||
1658 | |||
1659 | static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data, | 1647 | static int get_connections(struct sock *sk, struct hci_dev *hdev, void *data, |
1660 | u16 data_len) | 1648 | u16 data_len) |
1661 | { | 1649 | { |