summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg2014-02-27 13:05:41 +0100
committerMarcel Holtmann2014-02-27 17:50:21 +0100
commita1f4c3188bb4d51a41d2026ee08a578f56c61e47 (patch)
tree09ece6c79d3caee868ee9a9ad5df23f2947cf140 /include/net/bluetooth
parentBluetooth: Add tracking of advertising address type (diff)
downloadkernel-qcow2-linux-a1f4c3188bb4d51a41d2026ee08a578f56c61e47.tar.gz
kernel-qcow2-linux-a1f4c3188bb4d51a41d2026ee08a578f56c61e47.tar.xz
kernel-qcow2-linux-a1f4c3188bb4d51a41d2026ee08a578f56c61e47.zip
Bluetooth: Add hci_copy_identity_address convenience function
The number of places needing the local Identity Address are starting to grow so it's better to have a single place for the logic of determining it. This patch adds a convenience function for getting the Identity Address and updates the two current places needing this to use it. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 853376df4f99..093d05eeb3fa 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1292,6 +1292,8 @@ void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __u8 rand[8],
int hci_update_random_address(struct hci_request *req, bool require_privacy,
u8 *own_addr_type);
+void hci_copy_identity_address(struct hci_dev *hdev, bdaddr_t *bdaddr,
+ u8 *bdaddr_type);
#define SCO_AIRMODE_MASK 0x0003
#define SCO_AIRMODE_CVSD 0x0000