summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2022-12-23 19:28:07 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2022-12-23 19:28:07 +0100
commit307e385ba19fff36e335d048c45fc8f667129bd8 (patch)
tree6d2ff9fc8dee8bdbbe0873f8e7409c9c80e879c2 /modules/luci-mod-status/htdocs/luci-static
parent54f5b171bc957de1b379a2b697df87a5cb7c4042 (diff)
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 <ansuelsmth@gmail.com>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js2
1 files changed, 1 insertions, 1 deletions
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) {