Merge pull request #6170 from Ansuel/fix-chan-analysis
luci-mod-status: minor fix to channel_analysis
This commit is contained in:
commit
c9221abec7
1 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ return view.extend({
|
|||
|
||||
if (chan_analysis.offset_tbl[local_wifi.channel] != null && local_wifi.center_chan1) {
|
||||
var center_channels = [local_wifi.center_chan1],
|
||||
chan_width_text = local_wifi.htmode.replace(/(V)*HT/,''),
|
||||
chan_width_text = local_wifi.htmode.replace(/(V)*H[TE]/,''), /* Handle HT VHT HE */
|
||||
chan_width = parseInt(chan_width_text)/10;
|
||||
|
||||
if (local_wifi.center_chan2) {
|
||||
|
@ -231,7 +231,7 @@ return view.extend({
|
|||
|
||||
results.sort(function(a, b) {
|
||||
if (a.channel - b.channel)
|
||||
return diff;
|
||||
return 1;
|
||||
|
||||
if (a.ssid < b.ssid)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue