Bluetooth: Track LE initiator and responder address information
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 28 Feb 2014 10:54:16 +0000 (12:54 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Feb 2014 15:53:07 +0000 (07:53 -0800)
commit00f27b593bb4e4d7fe5f72f79b165fa29435fff6
treea49539f51e83e6e75742b4250f7a3daf065953ac
parent38167914f25db10159c5523b437a235fd007b282
Bluetooth: Track LE initiator and responder address information

For SMP we need the local and remote addresses (and their types) that
were used to establish the connection. These may be different from the
Identity Addresses or even the current RPA. To guarantee that we have
this information available and it is correct track these values
separately from the very beginning of the connection.

For outgoing connections we set the values as soon as we get a
successful command status for HCI_LE_Create_Connection (for which the
patch adds a command status handler function) and for incoming
connections as soon as we get a LE Connection Complete HCI event.

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_event.c