]> git.openfabrics.org - ~emulex/infiniband.git/commit
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)
commitcb1d68f7a337142e283ef7fc78793a57ffb4cdc3
treea49539f51e83e6e75742b4250f7a3daf065953ac
parentb46e00308929cc0317a021a7ac050790f023b1ca
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