core/adapter: Fix not updating names of connected devices
Luiz Augusto von Dentz
maintainerPATCH 1/1 core/adapter: Fix not updating names of connected devices
From: Luiz Augusto von Dentz <[email protected]>
If there is a device found event for a connected device let it update the name as the device may still be temporary but it might be useful to display a proper name while profile connections or paring are pending.
--- src/adapter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
src/adapter.c +4 -3
@@ -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 ; }
Signature · 1 line
2.9.3