summaryrefslogtreecommitdiff
path: root/src/adv_monitor.h
diff options
context:
space:
mode:
authorManish Mandlik <mmandlik@google.com>2021-09-09 19:05:36 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-09-10 15:19:02 -0700
commitcec1ef63ff3f74d98c9fa6b480c7416726927870 (patch)
treec0ec6078bab0219fb591b01ff1cbfd7691ddc6a4 /src/adv_monitor.h
parent8c0c82c9e966654002350ada8489ca577896566a (diff)
downloadbluez-cec1ef63ff3f74d98c9fa6b480c7416726927870.tar.gz
adv_monitor: Clear any running DeviceLost timers on power down
This patch clears any running Adv Monitor DeviceLost timers on bt power down. It'll also invoke DeviceLost event if the device is already found and is being tracked for the DeviceLost event. Verified this by adding a monitor using bluetoothctl and confirming that the DeviceLost event is getting triggered for already found device in case of bt power down. Reviewed-by: mcchou@google.com
Diffstat (limited to 'src/adv_monitor.h')
-rw-r--r--src/adv_monitor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adv_monitor.h b/src/adv_monitor.h
index 2b4f68abf..d9cb9ccbb 100644
--- a/src/adv_monitor.h
+++ b/src/adv_monitor.h
@@ -38,4 +38,6 @@ void btd_adv_monitor_notify_monitors(struct btd_adv_monitor_manager *manager,
void btd_adv_monitor_device_remove(struct btd_adv_monitor_manager *manager,
struct btd_device *device);
+void btd_adv_monitor_power_down(struct btd_adv_monitor_manager *manager);
+
#endif /* __ADV_MONITOR_H */