diff options
author | Wojciech Jowsa <wojciech.jowsa@gmail.com> | 2021-05-05 15:28:39 +0200 |
---|---|---|
committer | Wojciech Jowsa <wojciech.jowsa@gmail.com> | 2021-05-05 16:01:01 +0200 |
commit | ead64c0195cd792341a6dddce7ea5e724247c60d (patch) | |
tree | 734cf5af4faa3ad22eedf3aea10b2524ef110ea8 | |
parent | 9184721fab65934fe016c132a8f11a2308742f92 (diff) |
luci-mod-status: check if center_chan1 is defined
Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js | 2 |
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 5f838108ef..4b321a4f33 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 @@ -196,7 +196,7 @@ return view.extend({ scanCache[local_wifi.bssid].data = local_wifi; - if (chan_analysis.offset_tbl[local_wifi.channel] != null) { + 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 = parseInt(chan_width_text)/10; |