diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-07-09 15:33:19 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-07-09 15:33:19 +0000 |
commit | 6ab24bd829be8aba65446b93caa0198e18830b98 (patch) | |
tree | 40515fb1efae5b665c5a10353a455b581190c5d0 /lib | |
parent | b2b8be0c74c67e7e28e3ff1398877d790d3a686a (diff) | |
download | drakx-net-6ab24bd829be8aba65446b93caa0198e18830b98.tar drakx-net-6ab24bd829be8aba65446b93caa0198e18830b98.tar.gz drakx-net-6ab24bd829be8aba65446b93caa0198e18830b98.tar.bz2 drakx-net-6ab24bd829be8aba65446b93caa0198e18830b98.tar.xz drakx-net-6ab24bd829be8aba65446b93caa0198e18830b98.zip |
Using correct check for Ad-Hoc network mode when saving wpa_supplicant
configuration.
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 0e43a80..80f98b9 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -909,7 +909,7 @@ sub wpa_supplicant_add_network { $network->{psk} = convert_psk_key_for_wpa_supplicant($key); } else { $network->{key_mgmt} = 'NONE'; - $network->{mode} = to_bool($mode eq 'Ad-Hoc'); + $network->{mode} = to_bool($mode eq 'Ad-hoc'); if (member($enc_mode, qw(open restricted))) { put_in_hash($network, { wep_key0 => convert_wep_key_for_wpa_supplicant($key, $force_ascii), @@ -1105,7 +1105,7 @@ sub wpa_supplicant_add_eap_network { #- handle extra variables as final overides handle_extra_params($network, $ui_input->{extra}); - $network->{mode} = to_bool($ui_input->{mode} eq 'Ad-Hoc'); + $network->{mode} = to_bool($ui_input->{mode} eq 'Ad-hoc'); @$conf = difference2($conf, [ wpa_supplicant_find_similar($conf, $network) ]); push @$conf, $network; |