luci-app-mtwifi-cfg: fix noscan option depends

This commit is contained in:
hanwckf 2024-09-23 01:17:04 +08:00
parent 5612056806
commit 2c4310c9af

View File

@ -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);