aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2011-11-07 16:13:38 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-11-08 10:03:25 -0500
commit86742e1eca319069490f6f20c2892baafc2a6922 (patch)
tree4274953eb153f00aaa600d46ca587dc2395a8ff8 /include/net/bluetooth/mgmt.h
parentbd2d1334e1dd64765b29f9e1b592777c410ed121 (diff)
Bluetooth: Update link key mgmt APIs to match latest spec.
BR/EDR link keys have their own commands and events (separate from SMP) and the remove_keys command (previously remove_key) removes keys of any kind for the specified remote address. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index b5320aa9b085..fa33bc6c485f 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -100,22 +100,22 @@ struct mgmt_cp_set_service_cache {
100 __u8 enable; 100 __u8 enable;
101} __packed; 101} __packed;
102 102
103struct mgmt_key_info { 103struct mgmt_link_key_info {
104 bdaddr_t bdaddr; 104 bdaddr_t bdaddr;
105 u8 type; 105 u8 type;
106 u8 val[16]; 106 u8 val[16];
107 u8 pin_len; 107 u8 pin_len;
108} __packed; 108} __packed;
109 109
110#define MGMT_OP_LOAD_KEYS 0x000D 110#define MGMT_OP_LOAD_LINK_KEYS 0x000D
111struct mgmt_cp_load_keys { 111struct mgmt_cp_load_link_keys {
112 __u8 debug_keys; 112 __u8 debug_keys;
113 __le16 key_count; 113 __le16 key_count;
114 struct mgmt_key_info keys[0]; 114 struct mgmt_link_key_info keys[0];
115} __packed; 115} __packed;
116 116
117#define MGMT_OP_REMOVE_KEY 0x000E 117#define MGMT_OP_REMOVE_KEYS 0x000E
118struct mgmt_cp_remove_key { 118struct mgmt_cp_remove_keys {
119 bdaddr_t bdaddr; 119 bdaddr_t bdaddr;
120 __u8 disconnect; 120 __u8 disconnect;
121} __packed; 121} __packed;
@@ -247,10 +247,10 @@ struct mgmt_ev_controller_error {
247 247
248#define MGMT_EV_PAIRABLE 0x0009 248#define MGMT_EV_PAIRABLE 0x0009
249 249
250#define MGMT_EV_NEW_KEY 0x000A 250#define MGMT_EV_NEW_LINK_KEY 0x000A
251struct mgmt_ev_new_key { 251struct mgmt_ev_new_link_key {
252 __u8 store_hint; 252 __u8 store_hint;
253 struct mgmt_key_info key; 253 struct mgmt_link_key_info key;
254} __packed; 254} __packed;
255 255
256#define MGMT_EV_CONNECTED 0x000B 256#define MGMT_EV_CONNECTED 0x000B