diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-04-03 11:50:36 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-04-03 13:32:22 -0700 |
commit | 7aee0b67ba9fadb0713a14a3f4121cdeffa75f6c (patch) | |
tree | f8d1c61ad06aa4deeaf9c9355724186bf4ef5257 /src | |
parent | cffd5832a52cab71679e0bc6ee02a8f7816f1950 (diff) | |
download | bluez-7aee0b67ba9fadb0713a14a3f4121cdeffa75f6c.tar.gz |
set: Fix not attempt to connect devices with RSI
If a device advertising with RSI is only found later after the set was
already create we shall still attempt to connect to it.
Diffstat (limited to 'src')
-rw-r--r-- | src/set.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -317,7 +317,8 @@ struct btd_device_set *btd_set_add_device(struct btd_device *device, 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); @@ -329,6 +330,7 @@ struct btd_device_set *btd_set_add_device(struct btd_device *device, 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); |