]> git.ipfire.org Git - people/ms/network.git/commitdiff
wireless networks: Actively scan for hidden networks
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 12:27:40 +0000 (12:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 12:27:40 +0000 (12:27 +0000)
Fixes #11476

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.wireless-networks

index d717665ac7cecdd93b9754ab8ef3f2070501dace..c1cf06a88a3c5eb7c8f02cc8a1385517735e2704 100644 (file)
@@ -24,8 +24,8 @@ WIRELESS_NETWORK_SUPPORTED_PSK_MODES="WPA2-PSK-SHA256 WPA2-PSK WPA-PSK-SHA256 WP
 WIRELESS_NETWORK_SUPPORTED_MODES="${WIRELESS_NETWORK_SUPPORTED_PSK_MODES} \
        802.1X WPA-EAP NONE"
 
-WIRELESS_NETWORK_CONFIG_SETTINGS="ANONYMOUS_IDENTITY EAP_MODES IDENTITY \
-       MODES PASSWORD PRIORITY PSK SSID"
+WIRELESS_NETWORK_CONFIG_SETTINGS="ANONYMOUS_IDENTITY EAP_MODES HIDDEN \
+       IDENTITY MODES PASSWORD PRIORITY PSK SSID"
 
 cli_wireless_network() {
        case "${1}" in
@@ -440,6 +440,11 @@ wireless_network_to_wpa_supplicant() {
        print_indent 0 "network={"
        print_indent 1 "ssid=\"${SSID}\""
 
+       # Actively scan for hidden networks
+       if enabled HIDDEN; then
+               print_indent 1 "scan_ssid=1"
+       fi
+
        # Priority
        if isinteger PRIORITY; then
                print_indent 1 "priority=${PRIORITY}"