diff options
author | Frank Löffler <frank.loeffler@uni-jena.de> | 2023-12-07 14:33:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 14:33:28 +0100 |
commit | aa06da6aa64dd94e4cd7b4081e35232f6ce77d94 (patch) | |
tree | 0bafda7deda0977a137718210553a73c5932c09b /modules/luci-mod-status/htdocs | |
parent | 0d0b6e011dd551fb199218f0f3887512c27d8c63 (diff) |
luci-mod-status: channel_analysis: correct VHT 20/40 MHz center channels (#6728)
* luci-mod-status: add missing vht40 channels
As of now, channel_analysis is missing 40 MHz VHT channels.
What it does for those right now is
display them as 20 MHz channels (both in the plot and the table below),
but it uses the center frequency of the 40 MHz channel, which means
their (wrong) 20 MHz band in the plot is offset by 2.
This fixes #6419. Note that this only occurs for **other** stations.
The code for local_wifi is different and already complete.
Signed-off-by: Frank Löffler <frank.loeffler@uni-jena.de>
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js | 5 |
1 files changed, 4 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 2ce22d5838..abd21ea3d9 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 @@ -289,7 +289,10 @@ return view.extend({ } } - if (res.vht_operation != null) { + /* if channel_width <= 40, refer to HT (above) for actual channel width, + * as vht_operation.channel_width == 40 really only means that the used + * bandwidth is <= 40 and could be 20 Mhz as well */ + if (res.vht_operation != null && res.vht_operation.channel_width > 40) { center_channels[0] = res.vht_operation.center_freq_1; if (res.vht_operation.channel_width == 80) { chan_width = 8; |