Diff between c64b4d9e8dc3e36672061f39a9dba19ad0fb1ef1 and 4caa505cb6e46d6b518d11be69b2559d1095e8b7

Changed Files

File Additions Deletions Status
src/adapter.c +4 -3 modified

Full Patch

diff --git a/src/adapter.c b/src/adapter.c
index d951307..3dac7d6 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -5631,10 +5631,11 @@ static void update_found_devices(struct btd_adapter *adapter,
 		device_store_cached_name(dev, eir_data.name);
 
 	/*
-	 * If no client has requested discovery, then only update
-	 * already paired devices (skip temporary ones).
+	 * Only skip devices that are not connected, are temporary and there
+	 * is no active discovery session ongoing.
 	 */
-	if (device_is_temporary(dev) && !adapter->discovery_list) {
+	if (!btd_device_is_connected(dev) && (device_is_temporary(dev) &&
+						 !adapter->discovery_list)) {
 		eir_data_free(&eir_data);
 		return;
 	}