Bluetooth: Fix mgmt_(block,unblock)_device opcodes
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 19 Dec 2011 12:29:07 +0000 (14:29 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 19 Dec 2011 13:25:01 +0000 (11:25 -0200)
This patch fixes the opcodes of the Block/Unblock device commands to
match with what user-space expects and to confirm with the latest mgmt
specification. The reason the values were wrong was a missing Confirm
Name command definition (which will be added by a subsequent patch).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/mgmt.h

index 9f7a956..f4786a8 100644 (file)
@@ -268,12 +268,12 @@ struct mgmt_cp_start_discovery {
 
 #define MGMT_OP_STOP_DISCOVERY         0x0022
 
-#define MGMT_OP_BLOCK_DEVICE           0x0023
+#define MGMT_OP_BLOCK_DEVICE           0x0024
 struct mgmt_cp_block_device {
        bdaddr_t bdaddr;
 } __packed;
 
-#define MGMT_OP_UNBLOCK_DEVICE         0x0024
+#define MGMT_OP_UNBLOCK_DEVICE         0x0025
 struct mgmt_cp_unblock_device {
        bdaddr_t bdaddr;
 } __packed;