提交 1f8cd0d9 编写于 作者: J Johan Hedberg 提交者: Gustavo F. Padovan

Bluetooth: Fix mgmt_(block,unblock)_device opcodes

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: NJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 d85bb264
...@@ -268,12 +268,12 @@ struct mgmt_cp_start_discovery { ...@@ -268,12 +268,12 @@ struct mgmt_cp_start_discovery {
#define MGMT_OP_STOP_DISCOVERY 0x0022 #define MGMT_OP_STOP_DISCOVERY 0x0022
#define MGMT_OP_BLOCK_DEVICE 0x0023 #define MGMT_OP_BLOCK_DEVICE 0x0024
struct mgmt_cp_block_device { struct mgmt_cp_block_device {
bdaddr_t bdaddr; bdaddr_t bdaddr;
} __packed; } __packed;
#define MGMT_OP_UNBLOCK_DEVICE 0x0024 #define MGMT_OP_UNBLOCK_DEVICE 0x0025
struct mgmt_cp_unblock_device { struct mgmt_cp_unblock_device {
bdaddr_t bdaddr; bdaddr_t bdaddr;
} __packed; } __packed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册