summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/wireless.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection/wireless.pm')
-rw-r--r--lib/network/connection/wireless.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index f33e657..cac7bcc 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -865,6 +865,7 @@ sub wpa_supplicant_add_network {
ssid => qq("$essid"),
scan_ssid => to_bool($bssid), #- hidden or non-broadcasted SSIDs
if_($bssid, bssid => $bssid),
+ if_($enc_mode ne 'none', priority => 1),
};
if ($enc_mode eq 'wpa-psk') {