Skip to content

Commit 7e90de4

Browse files
Alain Michaudholtmann
authored andcommitted
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: Alain Michaud <alainm@chromium.org> Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org> Reviewed-by: Yu Liu <yudiliu@google.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 201a112 commit 7e90de4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎include/net/bluetooth/mgmt.h‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ struct mgmt_hdr {
5252
__le16 len;
5353
} __packed;
5454

55+
struct mgmt_tlv {
56+
__le16 type;
57+
__u8 length;
58+
__u8 value[];
59+
} __packed;
60+
5561
struct mgmt_addr_info {
5662
bdaddr_t bdaddr;
5763
__u8 type;
@@ -702,6 +708,18 @@ struct mgmt_rp_set_exp_feature {
702708
__le32 flags;
703709
} __packed;
704710

711+
#define MGMT_OP_READ_DEF_SYSTEM_CONFIG 0x004b
712+
#define MGMT_READ_DEF_SYSTEM_CONFIG_SIZE 0
713+
714+
#define MGMT_OP_SET_DEF_SYSTEM_CONFIG 0x004c
715+
#define MGMT_SET_DEF_SYSTEM_CONFIG_SIZE 0
716+
717+
#define MGMT_OP_READ_DEF_RUNTIME_CONFIG 0x004d
718+
#define MGMT_READ_DEF_RUNTIME_CONFIG_SIZE 0
719+
720+
#define MGMT_OP_SET_DEF_RUNTIME_CONFIG 0x004e
721+
#define MGMT_SET_DEF_RUNTIME_CONFIG_SIZE 0
722+
705723
#define MGMT_EV_CMD_COMPLETE 0x0001
706724
struct mgmt_ev_cmd_complete {
707725
__le16 opcode;

0 commit comments

Comments
 (0)