aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-18 08:07:59 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-19 07:04:41 -0500
commitaee9b218036476b8b659de5bbfada3a4633f635b (patch)
tree580600bc5bbbbbf2bea806705ad9355ad624c1e3 /include
parent3c6b764020d19b0993fe67f938b4b08f25c9bdd9 (diff)
Bluetooth: mgmt: Move status parameters into the cmd_complete header
Instead of having status paramters part of each individual command response it's simpler to just have the status as part of the command complete header. This patch updates the code to follow this convention and thereby also ensures compliance with the latest mgmt API specification. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/mgmt.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 36e68b4551af..7e3d38bfaec3 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -184,7 +184,6 @@ struct mgmt_cp_disconnect {
184} __packed; 184} __packed;
185struct mgmt_rp_disconnect { 185struct mgmt_rp_disconnect {
186 struct mgmt_addr_info addr; 186 struct mgmt_addr_info addr;
187 __u8 status;
188} __packed; 187} __packed;
189 188
190#define MGMT_OP_GET_CONNECTIONS 0x0015 189#define MGMT_OP_GET_CONNECTIONS 0x0015
@@ -201,7 +200,6 @@ struct mgmt_cp_pin_code_reply {
201} __packed; 200} __packed;
202struct mgmt_rp_pin_code_reply { 201struct mgmt_rp_pin_code_reply {
203 struct mgmt_addr_info addr; 202 struct mgmt_addr_info addr;
204 uint8_t status;
205} __packed; 203} __packed;
206 204
207#define MGMT_OP_PIN_CODE_NEG_REPLY 0x0017 205#define MGMT_OP_PIN_CODE_NEG_REPLY 0x0017
@@ -221,7 +219,6 @@ struct mgmt_cp_pair_device {
221} __packed; 219} __packed;
222struct mgmt_rp_pair_device { 220struct mgmt_rp_pair_device {
223 struct mgmt_addr_info addr; 221 struct mgmt_addr_info addr;
224 __u8 status;
225} __packed; 222} __packed;
226 223
227#define MGMT_OP_CANCEL_PAIR_DEVICE 0x001A 224#define MGMT_OP_CANCEL_PAIR_DEVICE 0x001A
@@ -233,7 +230,6 @@ struct mgmt_cp_unpair_device {
233} __packed; 230} __packed;
234struct mgmt_rp_unpair_device { 231struct mgmt_rp_unpair_device {
235 struct mgmt_addr_info addr; 232 struct mgmt_addr_info addr;
236 __u8 status;
237}; 233};
238 234
239#define MGMT_OP_USER_CONFIRM_REPLY 0x001C 235#define MGMT_OP_USER_CONFIRM_REPLY 0x001C
@@ -242,7 +238,6 @@ struct mgmt_cp_user_confirm_reply {
242} __packed; 238} __packed;
243struct mgmt_rp_user_confirm_reply { 239struct mgmt_rp_user_confirm_reply {
244 struct mgmt_addr_info addr; 240 struct mgmt_addr_info addr;
245 __u8 status;
246} __packed; 241} __packed;
247 242
248#define MGMT_OP_USER_CONFIRM_NEG_REPLY 0x001D 243#define MGMT_OP_USER_CONFIRM_NEG_REPLY 0x001D
@@ -257,7 +252,6 @@ struct mgmt_cp_user_passkey_reply {
257} __packed; 252} __packed;
258struct mgmt_rp_user_passkey_reply { 253struct mgmt_rp_user_passkey_reply {
259 struct mgmt_addr_info addr; 254 struct mgmt_addr_info addr;
260 __u8 status;
261} __packed; 255} __packed;
262 256
263#define MGMT_OP_USER_PASSKEY_NEG_REPLY 0x001F 257#define MGMT_OP_USER_PASSKEY_NEG_REPLY 0x001F
@@ -297,7 +291,6 @@ struct mgmt_cp_confirm_name {
297} __packed; 291} __packed;
298struct mgmt_rp_confirm_name { 292struct mgmt_rp_confirm_name {
299 struct mgmt_addr_info addr; 293 struct mgmt_addr_info addr;
300 __u8 status;
301} __packed; 294} __packed;
302 295
303#define MGMT_OP_BLOCK_DEVICE 0x0026 296#define MGMT_OP_BLOCK_DEVICE 0x0026
@@ -313,6 +306,7 @@ struct mgmt_cp_unblock_device {
313#define MGMT_EV_CMD_COMPLETE 0x0001 306#define MGMT_EV_CMD_COMPLETE 0x0001
314struct mgmt_ev_cmd_complete { 307struct mgmt_ev_cmd_complete {
315 __le16 opcode; 308 __le16 opcode;
309 __u8 status;
316 __u8 data[0]; 310 __u8 data[0];
317} __packed; 311} __packed;
318 312