From: Jason Abele <[email protected]>

If the wifi interface is connected and a scan is requested via dbus,
only the channels from connectable services will be scanned.  This
leaves few options to fill out a UI with a fresh list of available
services when already connected.

Fix this by performing a wifi_scan_simple() when connected.
---
 plugins/wifi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 187233b..9357b92 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1842,6 +1842,9 @@ static int wifi_scan(enum connman_service_type type,
 
                        return 0;
                }
+       } else if (wifi->connected) {
+               g_supplicant_free_scan_params(scan_params);
+               return wifi_scan_simple(device);
        } else {
                ret = get_latest_connections(driver_max_ssids, scan_params);
                if (ret <= 0) {
-- 
1.9.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to