From afe30ffc6e5755ee776c71c7d006d430d6565c5e Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 25 Jun 2022 18:45:28 -0700 Subject: [PATCH] Graph in SNR + fixes (#412) Feedback from Joe and others to adjust the noise floor (which is lower for subchannels). Label with SNR because that's easier to compare to the SNR values people are already familiar with. --- files/www/cgi-bin/scan | 60 ++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/files/www/cgi-bin/scan b/files/www/cgi-bin/scan index 21ce1d0c..9657a55f 100755 --- a/files/www/cgi-bin/scan +++ b/files/www/cgi-bin/scan @@ -47,6 +47,7 @@ end local wifiiface = aredn.hardware.get_iface_name("wifi") local phy = iwinfo.nl80211.phyname(wifiiface) local rfband = aredn.hardware.get_rfband() +local nf = iwinfo.nl80211.noise(wifiiface) or -95 if not nixio.fs.stat("/tmp/web") then nixio.fs.mkdir("/tmp/web") @@ -189,7 +190,7 @@ html.print("