summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-29 01:46:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-29 01:46:34 +0000
commitff7359131f3c1408993e1d907b4d2ce476425ebd (patch)
tree4fdc4afa49e528931eae5d51a01246d0b857fb89 /lib
parent4cf1532fbf6f931525d38a633813ec1d15673bfa (diff)
downloaddrakx-net-ff7359131f3c1408993e1d907b4d2ce476425ebd.tar
drakx-net-ff7359131f3c1408993e1d907b4d2ce476425ebd.tar.gz
drakx-net-ff7359131f3c1408993e1d907b4d2ce476425ebd.tar.bz2
drakx-net-ff7359131f3c1408993e1d907b4d2ce476425ebd.tar.xz
drakx-net-ff7359131f3c1408993e1d907b4d2ce476425ebd.zip
simplify
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/wireless.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 26b9622..eec89ea 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -931,11 +931,7 @@ sub wpa_supplicant_add_eap_network {
#- set the values
foreach my $eap_var (keys %eap_vars) {
my $key = join('_', "eap", $eap_var);
- if (!defined $ui_input->{$key}) {
- #- only if it is defined and not empty
- $network->{$eap_var} = $default_eap_cfg->{$eap_var} if $default_eap_cfg->{$eap_var};
- } elsif ($ui_input->{$key} =~ /auto detect/i) {
- #- only if it is defined and not empty
+ if (!defined $ui_input->{$key} || $ui_input->{$key} =~ /auto detect/i) {
$network->{$eap_var} = $default_eap_cfg->{$eap_var} if $default_eap_cfg->{$eap_var};
} else {
#- do not define if blank, the save routine will delete entry from file