Skip to content

Commit

Permalink
Bluetooth: Fix mgmt_(block,unblock)_device opcodes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg authored and Gustavo F. Padovan committed Dec 19, 2011
1 parent d85bb26 commit 1f8cd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f8cd0d

Please sign in to comment.