]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Allow re-encryption with LTK when STK is in use
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 1 Jul 2014 16:14:13 +0000 (19:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:54 +0000 (17:42 +0200)
commit57807bf155d3a1028b1cc1ae4c26842cb1dec97a
tree5ee86b593782a7f61b2301117569c31fd37a8f88
parenta70563ed501ae0f566879c7a593b392361976c0c
Bluetooth: Allow re-encryption with LTK when STK is in use

If we're encrypted with the STK we should allow re-encryption with an
LTK even though the achieved security level is the same. This patch adds
the necessary logic to the smp_sufficient_security function which is
used to determine whether to proceed with encryption or not.

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