summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-08-09 19:41:30 +0200
committerJo-Philipp Wich <jo@mein.io>2021-08-09 19:43:56 +0200
commitfd2e755b6f30d80ffdf15536669fdb739212ac96 (patch)
tree46f1eab5acd84b042882d1093f864d618ba2c8ac /modules/luci-mod-network/htdocs
parent1702813cc373015b79e7dce812ca19e28c3c62b0 (diff)
luci-mod-network: fix legacy_rates option dependency
The recently introduced band option support changed the internal frequency selector choice values, breaking the legacy rates option dependency. Fixes: #5234 Fixes: 0829d31290 ("luci-mod-network: support newer wireless.wifi-device.band option") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
index 37d4558edc..ed33867e89 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js
@@ -942,7 +942,7 @@ return view.extend({
if (hwtype == 'mac80211') {
o = ss.taboption('general', form.Flag, 'legacy_rates', _('Allow legacy 802.11b rates'), _('Legacy or badly behaving devices may require legacy 802.11b rates to interoperate. Airtime efficiency may be significantly reduced where these are used. It is recommended to not allow 802.11b rates where possible.'));
- o.depends({'_freq': '11g', '!contains': true});
+ o.depends({'_freq': '2g', '!contains': true});
o = ss.taboption('general', CBIWifiTxPowerValue, 'txpower', _('Maximum transmit power'), _('Specifies the maximum transmit power the wireless radio may use. Depending on regulatory requirements and wireless usage, the actual transmit power may be reduced by the driver.'));
o.wifiNetwork = radioNet;