If a device advertising with RSI is only found later after the set was
already create we shall still attempt to connect to it.
set = set_find(device, sirk);
if (set) {
set_add(set, device);
- return set;
+ /* Check if there are new devices with RSI found */
+ goto done;
}
set = set_new(device, sirk, size);
queue_push_tail(set_list, set);
+done:
/* Attempt to add devices which have matching RSI */
btd_adapter_for_each_device(device_get_adapter(device), foreach_device,
set);