From: Christian Marangi Date: Fri, 23 Dec 2022 18:28:07 +0000 (+0100) Subject: luci-mod-status: handle HE channel width for channel_analysis X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=307e385ba19fff36e335d048c45fc8f667129bd8;p=project%2Fluci.git luci-mod-status: handle HE channel width for channel_analysis Handle HE channel width for channel analysis status page and correctly draw local interface band width. Signed-off-by: Christian Marangi --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js index ae675afa42..692c67e3cd 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js @@ -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) {