Commit 7e90de4a authored by Alain Michaud's avatar Alain Michaud Committed by Marcel Holtmann

Bluetooth: mgmt: read/set system parameter definitions

This patch submits the corresponding kernel definitions to mgmt.h.
This is submitted before the implementation to avoid any conflicts in
values allocations.
Signed-off-by: default avatarAlain Michaud <alainm@chromium.org>
Reviewed-by: default avatarAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: default avatarYu Liu <yudiliu@google.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 201a1124
...@@ -52,6 +52,12 @@ struct mgmt_hdr { ...@@ -52,6 +52,12 @@ struct mgmt_hdr {
__le16 len; __le16 len;
} __packed; } __packed;
struct mgmt_tlv {
__le16 type;
__u8 length;
__u8 value[];
} __packed;
struct mgmt_addr_info { struct mgmt_addr_info {
bdaddr_t bdaddr; bdaddr_t bdaddr;
__u8 type; __u8 type;
...@@ -702,6 +708,18 @@ struct mgmt_rp_set_exp_feature { ...@@ -702,6 +708,18 @@ struct mgmt_rp_set_exp_feature {
__le32 flags; __le32 flags;
} __packed; } __packed;
#define MGMT_OP_READ_DEF_SYSTEM_CONFIG 0x004b
#define MGMT_READ_DEF_SYSTEM_CONFIG_SIZE 0
#define MGMT_OP_SET_DEF_SYSTEM_CONFIG 0x004c
#define MGMT_SET_DEF_SYSTEM_CONFIG_SIZE 0
#define MGMT_OP_READ_DEF_RUNTIME_CONFIG 0x004d
#define MGMT_READ_DEF_RUNTIME_CONFIG_SIZE 0
#define MGMT_OP_SET_DEF_RUNTIME_CONFIG 0x004e
#define MGMT_SET_DEF_RUNTIME_CONFIG_SIZE 0
#define MGMT_EV_CMD_COMPLETE 0x0001 #define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete { struct mgmt_ev_cmd_complete {
__le16 opcode; __le16 opcode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment