mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
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>
This commit is contained in:
parent
61576a8e78
commit
cf4144ff47
@ -1892,7 +1892,9 @@ static bool handle_device_lost_timeout(gpointer user_data)
|
||||
g_dbus_proxy_method_call(monitor->proxy, "DeviceLost",
|
||||
report_device_state_setup,
|
||||
NULL, dev->device, NULL);
|
||||
|
||||
dev->lost_timer = 0;
|
||||
dev->found = false;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user