From 0669217984a2af3ec743dc10993335c3a2c85a0d Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Fri, 28 Aug 2015 20:09:33 -0500 Subject: [PATCH] check for 3Ghz band channels and report freq instead --- files/www/cgi-bin/sysinfo.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/www/cgi-bin/sysinfo.json b/files/www/cgi-bin/sysinfo.json index 787d5fc2..8e5441ea 100755 --- a/files/www/cgi-bin/sysinfo.json +++ b/files/www/cgi-bin/sysinfo.json @@ -87,7 +87,12 @@ $info{"ssid"}=$myssid; # ------- Wifi Channel Number $mychan = `uci get wireless.radio0.channel`; chomp($mychan); -$info{"channel"}=$mychan; +# 3GHZ channel -> Freq conversion +if ($mychan >= 76 and $mychan <= 99) { + $info{"channel"}=($mychan * 5) + 3000; +} else { + $info{"channel"}=$mychan; +} # ------- Wifi Bandwidth $line = `uci get wireless.radio0.chanbw`;