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>
(cherry picked from commit e5626ece12)
This commit is contained in:
Jo-Philipp Wich 2021-07-09 21:39:45 +02:00
parent 16e807edc9
commit 0ac19f6a85

View file

@ -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,