]> git.baikalelectronics.ru Git - kernel.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)
commit3a5f4b98b2e156a787ae09076e88f96d029f6b48
treea49539f51e83e6e75742b4250f7a3daf065953ac
parenta8cce780d13c5ed796bfa4f3cc3798704d3396ba
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