MGMT_OP_SET_MESH - Puts the controller into Mesh mode so that it will always be passively scanning, without filtering duplicates, for ADV packets that include a list of AD types. MGMT_OP_MESH_SEND - Requests the transmission (Advertisement) of a single PDU. MGMT_EV_MESH_DEVICE_FOUND - MGMT Event indicating an incoming ADV packet has been received, which includes at least one of the AD Types requested by MGMT_OP_SET_MESH. Signed-off-by: Brian Gix <brian.gix@xxxxxxxxx> --- include/net/bluetooth/mgmt.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 107b25deae68..ac813767dcf4 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h @@ -837,6 +837,22 @@ struct mgmt_cp_add_adv_patterns_monitor_rssi { struct mgmt_adv_pattern patterns[]; } __packed; #define MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE 8 +#define MGMT_OP_SET_MESH 0x0057 +struct mgmt_cp_set_mesh { + __u8 enable; + __u8 active; + __u8 ad_types[]; +} __packed; +#define MGMT_SET_MESH_SIZE 2 + +#define MGMT_OP_MESH_SEND 0x0058 +struct mgmt_cp_mesh_send { + __u32 instant; + __u16 delay; + __u8 cnt; + __u8 data[]; +} __packed; +#define MGMT_MESH_SEND_SIZE 7 #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { @@ -1104,3 +1120,13 @@ struct mgmt_ev_controller_resume { #define MGMT_WAKE_REASON_NON_BT_WAKE 0x0 #define MGMT_WAKE_REASON_UNEXPECTED 0x1 #define MGMT_WAKE_REASON_REMOTE_WAKE 0x2 + +#define MGMT_EV_MESH_DEVICE_FOUND 0x002f +struct mgmt_ev_mesh_device_found { + struct mgmt_addr_info addr; + __s8 rssi; + __le32 instant; + __le32 flags; + __le16 eir_len; + __u8 eir[]; +} __packed; -- 2.31.1