diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2021-05-06 13:38:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 13:38:15 +0300 |
commit | b1a59c50ad50124a7dd779ea76d6f28a5171f75c (patch) | |
tree | 18016ac07fdb4bdd2772d33689a2204df1399a98 /modules | |
parent | 7a2512f8b0eae053a1d6e456c22d05c7132cf457 (diff) | |
parent | ead64c0195cd792341a6dddce7ea5e724247c60d (diff) |
Merge pull request #5035 from wjowsa/channel-analysis-fix-undefined
luci-mod-status: check if center_chan1 is defined
Diffstat (limited to 'modules')
-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; |