summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 16:55:56 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 16:55:56 +0000
commitc63c946d6f4162306f302b413e8173779e1bff4e (patch)
treee68b1ea6e3a1d65384eb1ad0155d2f9fa859e054
parent23b3a0851049b73b1d2b909f9b3b56094da86d18 (diff)
downloaddrakx-net-c63c946d6f4162306f302b413e8173779e1bff4e.tar
drakx-net-c63c946d6f4162306f302b413e8173779e1bff4e.tar.gz
drakx-net-c63c946d6f4162306f302b413e8173779e1bff4e.tar.bz2
drakx-net-c63c946d6f4162306f302b413e8173779e1bff4e.tar.xz
drakx-net-c63c946d6f4162306f302b413e8173779e1bff4e.zip
update comments
-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 ccb4592..27fde27 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -667,6 +667,7 @@ sub need_rt2x00_iwpriv {
sub get_hex_key {
my ($key) = @_;
+ #- odd number or non-hexa characters, consider the key as ASCII and prepend "s:"
if ($key =~ /^([[:xdigit:]]{4}[\:-]?)+[[:xdigit:]]{2,}$/) {
$key =~ s/[\:-]//g;
return lc($key);
@@ -674,9 +675,6 @@ sub get_hex_key {
}
sub convert_wep_key_for_iwconfig {
- #- 5 or 13 characters, consider the key as ASCII and prepend "s:"
- #- else consider the key as hexadecimal, do not strip dashes
- #- always quote the key as string
my ($real_key, $restricted) = @_;
my $key = get_hex_key($real_key) || "s:$real_key";
$restricted ? "restricted $key" : "open $key";
@@ -688,8 +686,6 @@ sub convert_wep_key_for_wpa_supplicant {
}
sub get_wep_key_from_iwconfig {
- #- strip "s:" if the key is 5 or 13 characters (ASCII)
- #- else the key as hexadecimal, do not modify
my ($key) = @_;
my ($mode, $real_key) = $key =~ /^(?:(open|restricted)\s+)?(.*)$/;
$real_key =~ s/^s://;