diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-06-04 15:43:41 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-06-04 15:43:41 +0000 |
commit | af610ae6a8d0a138443ca2f67d19516ffee785aa (patch) | |
tree | 1fa7d8830deb81c0e071694ddac20f4866e4f2e7 /lib | |
parent | 7c0cec8ed4ad92fe6e171c527347eac0d8ad9b7b (diff) | |
download | drakx-net-af610ae6a8d0a138443ca2f67d19516ffee785aa.tar drakx-net-af610ae6a8d0a138443ca2f67d19516ffee785aa.tar.gz drakx-net-af610ae6a8d0a138443ca2f67d19516ffee785aa.tar.bz2 drakx-net-af610ae6a8d0a138443ca2f67d19516ffee785aa.tar.xz drakx-net-af610ae6a8d0a138443ca2f67d19516ffee785aa.zip |
fix rescaling signal levels from wpa_supplicant
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/monitor.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm index f6828db..abe5680 100644 --- a/lib/network/monitor.pm +++ b/lib/network/monitor.pm @@ -43,10 +43,11 @@ sub list_wireless { $networks{$ap}{flags} ||= $flags; $networks{$ap}{essid} ||= $essid; } - if (any { $_->{signal_strength} > 100 } %networks) { + if (any { $_->{signal_strength} > 100 } values %networks) { #- signal level is really too high in wpa_supplicant #- this should be standardized at some point - $_->{signal_strength} = int($_->{signal_strength}/3.5); + $_->{signal_strength} = int($_->{signal_strength}/3.5) + foreach values %networks; } #- network id / ssid / bssid / flags |