summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorManish Mandlik <mmandlik@google.com>2021-11-20 07:29:37 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-22 14:25:04 -0800
commit37caf622b8ad71f9b29a1104504e5fdefdd7934e (patch)
tree16195096428db7c28532f796374b5561a6f1ab42 /lib
parent415ae7733ab317b47b32ffcdeaf00d4d29ec2c0d (diff)
downloadbluez-37caf622b8ad71f9b29a1104504e5fdefdd7934e.tar.gz
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 <mcchou@google.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 400167e9b..9f34b7f28 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -1015,6 +1015,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",
@@ -1153,6 +1169,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[] = {