From: Manish Mandlik Date: Sat, 20 Nov 2021 15:29:37 +0000 (-0800) Subject: lib: Add definitions of the Adv Monitor Device Found/Lost events X-Git-Tag: submit/tizen/20220313.220938~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a25cf80a74faea7cdbd25116740090a4b0b98be;p=platform%2Fupstream%2Fbluez.git lib: Add definitions of the Adv Monitor Device Found/Lost events This patch adds definitions of the new Advertisement Monitor Device Found and Device Lost events to indicate that the controller has started/stopped tracking a particular device. Reviewed-by: Miao-chen Chou Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/lib/mgmt.h b/lib/mgmt.h index 75de1861..e3660a45 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -1025,6 +1025,22 @@ struct mgmt_ev_controller_resume { uint8_t wake_reason; } __packed; +#define MGMT_EV_ADV_MONITOR_DEVICE_FOUND 0x002f +struct mgmt_ev_adv_monitor_device_found { + uint16_t monitor_handle; + struct mgmt_addr_info addr; + int8_t rssi; + uint32_t flags; + uint16_t ad_data_len; + uint8_t ad_data[0]; +} __packed; + +#define MGMT_EV_ADV_MONITOR_DEVICE_LOST 0x0030 +struct mgmt_ev_adv_monitor_device_lost { + uint16_t monitor_handle; + struct mgmt_addr_info addr; +} __packed; + static const char *mgmt_op[] = { "<0x0000>", "Read Version", @@ -1163,6 +1179,8 @@ static const char *mgmt_ev[] = { "Advertisement Monitor Removed", "Controller Suspend", "Controller Resume", + "Advertisement Monitor Device Found", /* 0x002f */ + "Advertisement Monitor Device Lost", }; static const char *mgmt_status[] = {