Skip to contentSkip to conversation

Bluetooth: Add constants for LTK key types

PATCH Applied Marcel Holtmann 2 participants 2 messages Feb 1, 2014 – Feb 2, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Add constants for LTK key types

The LTK key types available right now are unauthenticated and authenticated ones. Provide two simple constants for it.

---
 include/net/bluetooth/hci.h | 4 ++++
 1 file changed, 4 insertions(+)
include/net/bluetooth/hci.h +4 -0
index 232c07804ca8..352d3d7d06bb 100644
@@ -346,6 +346,10 @@ enum {
 #define HCI_SMP_LTK			0x82
 #define HCI_SMP_LTK_SLAVE		0x83
 
+/* Long Term Key types */
+#define HCI_LTK_UNAUTH			0x00
+#define HCI_LTK_AUTH			0x01
+
 /* ---- HCI Error Codes ---- */
 #define HCI_ERROR_AUTH_FAILURE		0x05
 #define HCI_ERROR_CONNECTION_TIMEOUT	0x08
Signature · 1 line
1.8.5.3
#1 lore raw

Hi Marcel,

Quoted 7 lines · Marcel Holtmann

The LTK key types available right now are unauthenticated and authenticated ones. Provide two simple constants for it.

---
 include/net/bluetooth/hci.h | 4 ++++
 1 file changed, 4 insertions(+)

Applied to bluetooth-next. Thanks.

Johan