]> git.baikalelectronics.ru Git - kernel.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)
commit50edb009635d3a0cc803e6e5a78a3c5476fe2418
tree708d42ebd070e008dbb579e8ca8f5194e6ba5006
parent45cc2b25e333b065fe2e540aac7cb8c613198915
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