[PATCH 2/4] wifi: Do passive scanning when PassiveWiFiScan is true

2015-04-24 Thread pasi . sjoholm
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

[PATCH 2/4] wifi: Do passive scanning when PassiveWiFiScan is true

2015-04-24 Thread pasi . sjoholm
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