mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-05 00:53:32 +08:00
luci-app-mtwifi-cfg: fix noscan option depends
This commit is contained in:
parent
5612056806
commit
2c4310c9af
@ -1024,13 +1024,10 @@ return view.extend({
|
||||
o.wifiNetwork = radioNet;
|
||||
|
||||
if (!isDisabled) {
|
||||
if (band == '2g') {
|
||||
o = ss.taboption('advanced', form.Flag, 'noscan', _('Force 40MHz mode'), _('Always use 40MHz channels even if the secondary channel overlaps. Using this option does not comply with IEEE 802.11n-2009!'));
|
||||
o.depends({'_freq': 'HE40', '!contains': true});
|
||||
o.depends({'_freq': 'HT40', '!contains': true});
|
||||
o.default = o.disabled;
|
||||
o.rmempty = false;
|
||||
}
|
||||
o = ss.taboption('advanced', form.Flag, 'noscan', _('Force 40MHz mode'), _('Always use 40MHz channels even if the secondary channel overlaps. Using this option does not comply with IEEE 802.11n-2009!'));
|
||||
o.depends({'_freq': '2g', '!contains': true});
|
||||
o.default = o.disabled;
|
||||
o.rmempty = false;
|
||||
|
||||
o = ss.taboption('advanced', form.Flag, 'mu_beamformer', _('MU-MIMO'));
|
||||
add_dep_he_feature(o);
|
||||
|
Loading…
x
Reference in New Issue
Block a user