Bluetooth: Fix trying LTK re-encryption when we don't have an LTK
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Jul 2014 11:34:55 +0000 (14:34 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Jul 2014 11:37:10 +0000 (13:37 +0200)
In the case that the key distribution bits cause us not to generate a
local LTK we should not try to re-encrypt if we're currently encrypted
with an STK. This patch fixes the check for this in the
smp_sufficient_security function.

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

Simple merge