Merge pull request #6170 from Ansuel/fix-chan-analysis

luci-mod-status: minor fix to channel_analysis
This commit is contained in:
Christian Marangi 2022-12-24 11:51:48 +01:00 committed by GitHub
commit c9221abec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;