adv_monitor: Mark the device as lost on device_lost_timeout
authorManish Mandlik <mmandlik@google.com>
Wed, 22 Sep 2021 01:13:23 +0000 (18:13 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commitdbb3fa6f6baba453bb7c0050f6014882eaca879e
tree47458c90d8d54fc62ad26fb4bf8333636ad6114f
parent923e6c1659f58d2094f3d83a420b1793b8650430
adv_monitor: Mark the device as lost on device_lost_timeout

Mark the device as lost on device_lost_timeout so that it can be found
again next time.

Verified this by adding a monitor using bluetoothctl and confirming that
the DeviceLost event is getting triggered when bt peer stops advertising
and DeviceFound event gets triggered again when the bt peer restarts the
advertising.

Reviewed-by: Yun-Hao Chung <howardchung@google.com>
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adv_monitor.c