From 6ac2f7d7447ec8697be4de8a825999b3862114b4 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 2 Oct 2008 18:53:08 +0000 Subject: set higher priority (1) for encrypted wpa_supplicant networks (based on an idea from Patrick Sinz) --- lib/network/connection/wireless.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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') { -- cgit v1.2.1