summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-15 09:36:05 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-15 09:36:05 +0000
commit3c06463fedc109f1919ea106cf736f5f2551df29 (patch)
tree50b3e8a3eb5d1b5c109724a3a6c0598083f0fc90 /perl-install/network
parent1485cb9b3361589df2ddc3ad16e5092fcf21efa7 (diff)
downloaddrakx-3c06463fedc109f1919ea106cf736f5f2551df29.tar
drakx-3c06463fedc109f1919ea106cf736f5f2551df29.tar.gz
drakx-3c06463fedc109f1919ea106cf736f5f2551df29.tar.bz2
drakx-3c06463fedc109f1919ea106cf736f5f2551df29.tar.xz
drakx-3c06463fedc109f1919ea106cf736f5f2551df29.zip
lower signal level given by wpa_supplicant
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/monitor.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/network/monitor.pm b/perl-install/network/monitor.pm
index 96e3a225e..6376b3d92 100644
--- a/perl-install/network/monitor.pm
+++ b/perl-install/network/monitor.pm
@@ -31,9 +31,11 @@ sub list_wireless {
if (defined $results && defined $list) {
#- bssid / frequency / signal level / flags / ssid
while ($results =~ /^((?:[0-9a-f]{2}:){5}[0-9a-f]{2})\t(\d+)\t(\d+)\t(.*?)\t(.*)$/mg) {
- # wpa_supplicant may list the network two times, use ||=
+ #- wpa_supplicant may list the network two times, use ||=
$networks{$1}{frequency} ||= $2;
- $networks{$1}{signal_level} ||= $3;
+ #- signal level is really too high in wpa_supplicant
+ #- this should be standardized at some point
+ $networks{$1}{signal_level} ||= int($3/3.5);
$networks{$1}{flags} ||= $4;
$networks{$1}{essid} ||= $5 if $5 ne '<hidden>';
}