summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-31 09:15:33 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-31 09:15:33 +0000
commitd5b8af9b3318a727196d53e3b59b2dd98fe1b456 (patch)
treeb4f9d7996d24aba10aa452ed3d7eb374846972b4
parentbc0db5ee60b98577b39228f0e0b471aea8df4f86 (diff)
downloaddrakx-net-d5b8af9b3318a727196d53e3b59b2dd98fe1b456.tar
drakx-net-d5b8af9b3318a727196d53e3b59b2dd98fe1b456.tar.gz
drakx-net-d5b8af9b3318a727196d53e3b59b2dd98fe1b456.tar.bz2
drakx-net-d5b8af9b3318a727196d53e3b59b2dd98fe1b456.tar.xz
drakx-net-d5b8af9b3318a727196d53e3b59b2dd98fe1b456.zip
rename as convert_psk_key_for_wpa_supplicant
-rw-r--r--lib/network/connection/wireless.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 29ef2cf..4dd80a3 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -692,7 +692,7 @@ sub get_wep_key_from_iwconfig {
($real_key, $mode eq 'restricted');
}
-sub convert_key_for_wpa_supplicant {
+sub convert_psk_key_for_wpa_supplicant {
my ($key) = @_;
length($key) == 64 && get_hex_key($key) || qq("$key");
}
@@ -762,7 +762,7 @@ sub wpa_supplicant_add_network {
};
if ($enc_mode eq 'wpa-psk') {
- $network->{psk} = convert_key_for_wpa_supplicant($key);
+ $network->{psk} = convert_psk_key_for_wpa_supplicant($key);
} else {
$network->{key_mgmt} = 'NONE';
$network->{mode} = to_bool($mode eq 'Ad-Hoc');