]> git.openfabrics.org - ~emulex/infiniband.git/commit
Bluetooth: Make LTK and CSRK only persisent when bonding
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Mar 2014 06:38:42 +0000 (23:38 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 10 Mar 2014 12:57:33 +0000 (14:57 +0200)
commit53ac6ab612456a13bf0f6bad89c1503616e4de3b
tree708d42ebd070e008dbb579e8ca8f5194e6ba5006
parent7ee4ea3692f20b87b0e0d3884d5b2d22ec1a2df0
Bluetooth: Make LTK and CSRK only persisent when bonding

In case the pairable option has been disabled, the pairing procedure
does not create keys for bonding. This means that these generated keys
should not be stored persistently.

For LTK and CSRK this is important to tell userspace to not store these
new keys. They will be available for the lifetime of the device, but
after the next power cycle they should not be used anymore.

Inform userspace to actually store the keys persistently only if both
sides request bonding.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/mgmt.c
net/bluetooth/smp.c