diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-07-09 21:39:45 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-07-09 21:39:45 +0200 |
commit | e5626ece12236f6be9dbb6da6eb90fcbb469a1f0 (patch) | |
tree | 63bbbd4f25db047e281e7c468395faa87a89e0c4 /modules | |
parent | f57d20bffffda026ab203d328a859a3f38c0c8d0 (diff) |
luci-mod-network: fix 60GHz radio frequency configuration
Fix incorrect minimum 60GHz frequency value and ensure that a 60GHz band
choice option is available once corresponding channels are found on the
system.
Ref: http://lists.openwrt.org/pipermail/openwrt-devel/2021-July/035810.html
Suggested-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index 5115a69eb6..37d4558edc 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -327,7 +327,7 @@ var CBIWifiFrequencyValue = form.Value.extend({ band = '5g'; else if (data[1][i].mhz >= 5925 && data[1][i].mhz <= 7125) band = '6g'; - else if (data[1][i].mhz >= 58329 && data[1][i].mhz <= 69120) + else if (data[1][i].mhz >= 58320 && data[1][i].mhz <= 69120) band = '60g'; else continue; @@ -375,7 +375,8 @@ var CBIWifiFrequencyValue = form.Value.extend({ this.bands = { '': [ '2g', '2.4 GHz', this.channels['2g'].length > 3, - '5g', '5 GHz', this.channels['5g'].length > 3 + '5g', '5 GHz', this.channels['5g'].length > 3, + '60g', '60 GHz', this.channels['60g'].length > 0 ], 'n': [ '2g', '2.4 GHz', this.channels['2g'].length > 3, |