summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg2014-05-23 12:15:37 +0200
committerMarcel Holtmann2014-12-03 16:51:15 +0100
commit23fb8de376181a30c35195351ec6230167098b48 (patch)
tree92f5a31cecef6f9a22c8e58efd0e95979a0865d0 /include/net
parentBluetooth: Update SMP security level to/from auth_req for SC (diff)
downloadkernel-qcow2-linux-23fb8de376181a30c35195351ec6230167098b48.tar.gz
kernel-qcow2-linux-23fb8de376181a30c35195351ec6230167098b48.tar.xz
kernel-qcow2-linux-23fb8de376181a30c35195351ec6230167098b48.zip
Bluetooth: Add mgmt support for LE Secure Connections LTK types
We need a dedicated LTK type for LTK resulting from a Secure Connections based SMP pairing. This patch adds a new define for it and ensures that both the New LTK event as well as the Load LTKs command supports it. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/mgmt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index b391fd663468..9b382ea34fd9 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -184,6 +184,9 @@ struct mgmt_cp_load_link_keys {
#define MGMT_LTK_UNAUTHENTICATED 0x00
#define MGMT_LTK_AUTHENTICATED 0x01
+#define MGMT_LTK_P256_UNAUTH 0x02
+#define MGMT_LTK_P256_AUTH 0x03
+#define MGMT_LTK_P256_DEBUG 0x04
struct mgmt_ltk_info {
struct mgmt_addr_info addr;