bugfix: snrlog fix for out-of-range noise floor values returned by iw

This commit is contained in:
AE6XE 2016-01-16 17:21:55 -08:00
parent 265d2eb196
commit f02d4abd33
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ if ( -e $lastdat )
$nf = `iw wlan0 survey dump | grep -A 1 'in use' | tail -1`;
$nf =~ s/^[^-\d]*([-\d]+).*$/$1/;
chomp $nf;
if ($nf < -95 or $nf > -50 ) { $nf = "-95"; }
if (! -e $tmpdir ) { system("mkdir $tmpdir > /dev/null"); }