diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-02-19 10:05:57 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-21 15:22:44 -0500 |
commit | a5c296832b4fde7d32c01cff9cdd27d9c7c1c4f5 (patch) | |
tree | 895ae41944ca568f6eca3c7c4855211bd7db8540 /include/net/bluetooth/mgmt.h | |
parent | e9a416b5ce0c0f93819f55d34cf6882196e9c3b2 (diff) |
Bluetooth: Add management support for user confirmation request
This patch adds support for the user confirmation (numeric comparison)
Secure Simple Pairing authentication method.
Signed-off-by: Johan Hedberg <johan.hedberg@nokia.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.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 1d25c59be2e3..52376a3295ca 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -172,6 +172,19 @@ struct mgmt_rp_pair_device { | |||
172 | __u8 status; | 172 | __u8 status; |
173 | } __packed; | 173 | } __packed; |
174 | 174 | ||
175 | #define MGMT_OP_USER_CONFIRM_REPLY 0x0015 | ||
176 | struct mgmt_cp_user_confirm_reply { | ||
177 | __le16 index; | ||
178 | bdaddr_t bdaddr; | ||
179 | } __packed; | ||
180 | struct mgmt_rp_user_confirm_reply { | ||
181 | __le16 index; | ||
182 | bdaddr_t bdaddr; | ||
183 | __u8 status; | ||
184 | } __packed; | ||
185 | |||
186 | #define MGMT_OP_USER_CONFIRM_NEG_REPLY 0x0016 | ||
187 | |||
175 | #define MGMT_EV_CMD_COMPLETE 0x0001 | 188 | #define MGMT_EV_CMD_COMPLETE 0x0001 |
176 | struct mgmt_ev_cmd_complete { | 189 | struct mgmt_ev_cmd_complete { |
177 | __le16 opcode; | 190 | __le16 opcode; |
@@ -239,3 +252,10 @@ struct mgmt_ev_pin_code_request { | |||
239 | __le16 index; | 252 | __le16 index; |
240 | bdaddr_t bdaddr; | 253 | bdaddr_t bdaddr; |
241 | } __packed; | 254 | } __packed; |
255 | |||
256 | #define MGMT_EV_USER_CONFIRM_REQUEST 0x000F | ||
257 | struct mgmt_ev_user_confirm_request { | ||
258 | __le16 index; | ||
259 | bdaddr_t bdaddr; | ||
260 | __le32 value; | ||
261 | } __packed; | ||