check for 3Ghz band channels and report freq instead

This commit is contained in:
Darryl Quinn 2015-08-28 20:09:33 -05:00
parent 14d7163666
commit 0669217984
1 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,12 @@ $info{"ssid"}=$myssid;
# ------- Wifi Channel Number # ------- Wifi Channel Number
$mychan = `uci get wireless.radio0.channel`; $mychan = `uci get wireless.radio0.channel`;
chomp($mychan); 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 # ------- Wifi Bandwidth
$line = `uci get wireless.radio0.chanbw`; $line = `uci get wireless.radio0.chanbw`;