Bluetooth: Add flag to track STK encryption
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 1 Jul 2014 16:14:12 +0000 (19:14 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:54 +0000 (17:42 +0200)
commitfe59a05f941dbeb14316449be42d059761bed62c
treea89a79a5c2e2fe8ef0f2aad0cb84d38baa0b9c87
parent854f47278fb36f4904649b994acf559e13920232
Bluetooth: Add flag to track STK encryption

There are certain subtle differences in behavior when we're encrypted
with the STK, such as allowing re-encryption even though the security
level stays the same. Because of this, add a flag to track whether we're
encrypted with an STK or not.

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