commit | b2d5e254ebfe9e4a926265c23bc5943f212fd1ac | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Mon Jul 14 14:34:55 2014 +0300 |
committer | Marcel Holtmann <marcel@holtmann.org> | Mon Jul 14 13:37:10 2014 +0200 |
tree | 86718d8d8e72d9e48042221f4452d604ab78118d | |
parent | eb5a4de80f266d0bb7edd43c61894da74faaa91a [diff] |
Bluetooth: Fix trying LTK re-encryption when we don't have an LTK 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>