From: Pasi Sjöholm <pasi.sjoh...@jollamobile.com>

Do passive scanning instead of active to avoid revealing
the SSID's of services have been configured.
---
 plugins/wifi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/wifi.c b/plugins/wifi.c
index 42dd407..0fecee7 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -1820,7 +1820,7 @@ static int wifi_scan(enum connman_service_type type,
 
                        return 0;
                }
-       } else if (wifi->connected) {
+       } else if (wifi->connected || 
connman_setting_get_bool("PassiveWiFiScan")) {
                g_supplicant_free_scan_params(scan_params);
                return wifi_scan_simple(device);
        } else {
-- 
2.1.0

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to