summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-20 09:57:45 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-20 09:57:45 +0000
commit43e530a976d90cc0503b413afc907fa6fb0cb9ac (patch)
tree9f62b467cee65e2743a033539460fbe9dd13f1ef /lib
parent76276d7a660e7f3c36086ca2c859088828414b72 (diff)
downloaddrakx-net-43e530a976d90cc0503b413afc907fa6fb0cb9ac.tar
drakx-net-43e530a976d90cc0503b413afc907fa6fb0cb9ac.tar.gz
drakx-net-43e530a976d90cc0503b413afc907fa6fb0cb9ac.tar.bz2
drakx-net-43e530a976d90cc0503b413afc907fa6fb0cb9ac.tar.xz
drakx-net-43e530a976d90cc0503b413afc907fa6fb0cb9ac.zip
pre-set Managed mode for access points detected as Master (#30303)
Diffstat (limited to 'lib')
-rw-r--r--lib/network/monitor.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index 7cd1277..a1db598 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -75,6 +75,7 @@ sub list_wireless {
/Address: (.*)/ and $net->{ap} = lc($1);
/ESSID:"(.*?)"/ and $net->{essid} = $1;
/Mode:(\S*)/ and $net->{mode} = $1;
+ $net->{mode} = 'Managed' if $net->{mode} eq 'Master';
$_ =~ $quality_match and $net->{signal_strength} = $eval_quality->($1);
m|Signal level:([0-9]+/[0-9]+)| && !$net->{signal_strength} and $net->{signal_strength} = eval($1)*100;
/Extra:wpa_ie=|IE:.*WPA/ and $net->{flags} = '[WPA]';