luci-mod-status: handle HE channel width for channel_analysis 6170/head
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 23 Dec 2022 18:28:07 +0000 (19:28 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 23 Dec 2022 18:28:07 +0000 (19:28 +0100)
Handle HE channel width for channel analysis status page and correctly
draw local interface band width.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js

index ae675afa42da003818af7e8e13c60ba807bbab9f..692c67e3cd3a43e10547064e09c3f14c0f24c11a 100644 (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) {