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 <ansuelsmth@gmail.com>
This commit is contained in:
parent
5d7af48672
commit
6d722ccdae
1 changed files with 7 additions and 1 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue