summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-20 09:58:17 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-20 09:58:17 +0000
commit3e930bd60a65fd75cdcc917751e0c22c2052dc9a (patch)
tree21679570115e916d5b43fe30ea1f377b5ba5d198
parent10f99cd66f7388b9b5e26ff839e56af6c640cd8c (diff)
downloaddrakx-net-3e930bd60a65fd75cdcc917751e0c22c2052dc9a.tar
drakx-net-3e930bd60a65fd75cdcc917751e0c22c2052dc9a.tar.gz
drakx-net-3e930bd60a65fd75cdcc917751e0c22c2052dc9a.tar.bz2
drakx-net-3e930bd60a65fd75cdcc917751e0c22c2052dc9a.tar.xz
drakx-net-3e930bd60a65fd75cdcc917751e0c22c2052dc9a.zip
pre-set Managed mode for access points detected as Master (#30303)
-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]';