projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
914a6ff
)
Bluetooth: Add constants for LTK key types
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 1 Feb 2014 03:02:30 +0000
(19:02 -0800)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:44 +0000
(09:51 +0200)
The LTK key types available right now are unauthenticated and
authenticated ones. Provide two simple constants for it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/bluetooth/hci.h
b/include/net/bluetooth/hci.h
index 232c07804ca83bddb628692311069141a727fc12..352d3d7d06bb54d95bce32871c9ffa30f9bf913b 100644
(file)
--- a/
include/net/bluetooth/hci.h
+++ b/
include/net/bluetooth/hci.h
@@
-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