From 2c4310c9af4913d1c5cc1770ac21fc27aa295cd8 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Mon, 23 Sep 2024 01:17:04 +0800 Subject: [PATCH] luci-app-mtwifi-cfg: fix noscan option depends --- .../usr/share/luci-app-mtwifi-cfg/wireless-mtk.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js b/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js index 55bc25a2bc..104117247d 100644 --- a/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js +++ b/package/mtk/applications/luci-app-mtwifi-cfg/root/usr/share/luci-app-mtwifi-cfg/wireless-mtk.js @@ -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);