diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-07-14 01:38:45 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-07-14 01:38:45 +0000 |
commit | f2e112363628176859cdc393af218a105b5d9072 (patch) | |
tree | 6e57bc15ff2c9b9cf6bd6e9cfb9435c9d4aac5d0 /lib/network | |
parent | c8d0921f76fa206104029d85ea6b1234e83231ea (diff) | |
download | drakx-net-f2e112363628176859cdc393af218a105b5d9072.tar drakx-net-f2e112363628176859cdc393af218a105b5d9072.tar.gz drakx-net-f2e112363628176859cdc393af218a105b5d9072.tar.bz2 drakx-net-f2e112363628176859cdc393af218a105b5d9072.tar.xz drakx-net-f2e112363628176859cdc393af218a105b5d9072.zip |
Encryption key is always ASCII when not using WEP (#52128)
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection/wireless.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 80f98b9..dce0c64 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -656,6 +656,10 @@ sub install_packages { sub build_ifcfg_settings { my ($self) = @_; + + # if we are not using WEP, the key is always ASCII (#52128) + $self->{access}{network}{force_ascii_key} = 1 unless member($self->{access}{network}{encryption}, qw(open restricted)); + my $settings = { WIRELESS_MODE => $self->{access}{network}{mode}, if_($self->need_wpa_supplicant, |