luci-mod-status: handle HE channel width for channel_analysis
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 23 Dec 2022 18:28:07 +0000 (19:28 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 7 Jun 2023 21:53:36 +0000 (23:53 +0200)
Handle HE channel width for channel analysis status page and correctly
draw local interface band width.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 307e385ba19fff36e335d048c45fc8f667129bd8)

modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js

index 0c8cff8c0e0c3d5401d548e20b1838fd68dcea79..17b8866ae75e27406c5407022f90929ed2bba0a4 100644 (file)
@@ -198,7 +198,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) {