Issue: Paired devices are not detected during LE scan while
paired device is advertising
This patch fixes this issue.
Change-Id: I1b9f06c3d057204cb01fe88faedaa5ace399c26b
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Signed-off-by: Atul Rai <a.rai@samsung.com>
struct device_addr_type addr;
struct btd_device *device;
GSList *list;
-#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
- bool exact_match = false;
-#endif
if (!adapter)
return NULL;
device_addr_type_strict_cmp);
if (list) {
device = list->data;
- exact_match = true;
+ return device;
}
-#else
+#endif
list = g_slist_find_custom(adapter->devices, &addr,
device_addr_type_cmp);
-#endif
if (!list)
return NULL;
device = list->data;
-#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
- if (exact_match)
- return device;
-#endif
-
/*
* If we're looking up based on public address and the address
* was not previously used over this bearer we may need to