OSDN Git Service

Bluetooth: Add hci_copy_identity_address convenience function
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 27 Feb 2014 12:05:41 +0000 (14:05 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Feb 2014 16:50:21 +0000 (08:50 -0800)
commita1f4c3188bb4d51a41d2026ee08a578f56c61e47
tree09ece6c79d3caee868ee9a9ad5df23f2947cf140
parent56ed2cb88c7370d5aa88c92a2a0b1cb92c0979b9
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c