mirror of
https://github.com/openwrt/luci.git
synced 2026-07-15 06:12:12 +04:00
luci-mod-network: fix available wifi channels
rpcd iwinfo freqlist does not set a `no_ir` field. It is instead a flag so check in the flags list instead. Signed-off-by: Samuele Yang <samuele.yang@morsemicro.com>
This commit is contained in:
committed by
Paul Donald
parent
0085789eac
commit
f7e5991230
@@ -349,7 +349,7 @@ var CBIWifiFrequencyValue = form.Value.extend({
|
||||
return;
|
||||
|
||||
const band = '%dg'.format(freq.band);
|
||||
const available = (freq.restricted && freq.no_ir) ? false: true;
|
||||
const available = !(freq.restricted && freq.flags.includes("no_ir"));
|
||||
|
||||
this.channels[band].push(
|
||||
freq.channel,
|
||||
|
||||
Reference in New Issue
Block a user