summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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>';
}