diff options
author | Manish Mandlik <mmandlik@google.com> | 2021-09-09 19:05:36 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-09-10 15:19:02 -0700 |
commit | cec1ef63ff3f74d98c9fa6b480c7416726927870 (patch) | |
tree | c0ec6078bab0219fb591b01ff1cbfd7691ddc6a4 /src/adv_monitor.h | |
parent | 8c0c82c9e966654002350ada8489ca577896566a (diff) | |
download | bluez-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.h | 2 |
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 */ |