diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-29 01:13:13 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-29 01:13:13 +0000 |
commit | 43e0b62b0c1d31d306125483c335a99e617a394f (patch) | |
tree | 4fd7c68e106aa11725f288649cbba54b88e108be /lib | |
parent | ebce59622698bc8f482da3d80853a04ac30000d5 (diff) | |
download | drakx-net-43e0b62b0c1d31d306125483c335a99e617a394f.tar drakx-net-43e0b62b0c1d31d306125483c335a99e617a394f.tar.gz drakx-net-43e0b62b0c1d31d306125483c335a99e617a394f.tar.bz2 drakx-net-43e0b62b0c1d31d306125483c335a99e617a394f.tar.xz drakx-net-43e0b62b0c1d31d306125483c335a99e617a394f.zip |
use eq
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/wireless.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 1111cf6..7106c41 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -901,8 +901,8 @@ sub wpa_supplicant_load_eap_settings { #Remove quotes on selected variables $network->{$ui_var} = $1 if $myeap_vars->{$myone} == 2 && $network->{$ui_var} =~ /^"(.*)"$/; if ($myone eq "proto") { - $network->{forceeap} = 'WPA2' if $old_net->{$myone} =~ /^RSN$/; - $network->{forceeap} = 'WPA' if $old_net->{$myone} =~ /^WPA$/; + $network->{forceeap} = 'WPA2' if $old_net->{$myone} eq "RSN"; + $network->{forceeap} = 'WPA' if $old_net->{$myone} eq "WPA"; } } } |