From acc62b9cfa0ea1852e745163d27b16aa6f94d7b9 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sun, 30 Jul 2023 22:58:57 +0200 Subject: [PATCH] luci-mod-status: fix wrong position of channel for 5GHz radio Channel tag for 5GHz radios is wrong and is confusing for any user that wants to better identify the used channel from the graph. Add some additional logic to better position the channel tag. Fixes: #6419 Signed-off-by: Christian Marangi (cherry picked from commit 6d722ccdaeede14b9f42643176522bbb4f75e89c) --- .../luci-static/resources/view/status/channel_analysis.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 d7d1de1b4c..94b9eaa68d 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 @@ -132,7 +132,13 @@ return view.extend({ chan_analysis.offset_tbl[channel] = curr_offset+step; createGraphHLine(G,curr_offset+step); - createGraphText(G,curr_offset+step, channel); + if (is5GHz) + if (channel < 100) + createGraphText(G,curr_offset-(step/2), channel); + else + createGraphText(G,curr_offset-step, channel); + else + createGraphText(G,curr_offset+step, channel); curr_offset += step; if (is5GHz && freq_tbl[i+1]) { -- 2.30.2