2016-07-15 06:35:25

by Prabhu Chawandi

[permalink] [raw]
Subject: [PATCH Bluez] Fix missing on device found event for the known devices on a new le scan session

Hi,

Device found events not sent for the known devices on a new LE scan
session. Below patch is to clear the cached entries when new le scan
session is started.

--- a/android/bluetooth.c 2016-07-15 11:12:53.486029274 +0530
+++ b/android/bluetooth.c 2016-07-15 11:30:42.224366877 +0530
@@ -4029,6 +4029,9 @@
return true;
}

+ g_slist_foreach(bonded_devices, clear_device_found, NULL);
+ g_slist_foreach(cached_devices, clear_device_found, NULL);
+
if (start_discovery(SCAN_TYPE_LE))
return true;

Thanks & Regards,
Prabhu