From ec49f3b546c905a4b358d54c8d2d70e86ce023a0 Mon Sep 17 00:00:00 2001 From: Nick Lowe Date: Fri, 4 Dec 2020 18:26:28 +0000 Subject: [PATCH] luci-mod-network: wireless.js Disable 802.11b by default The time has long come where 802.11b DSSS/CCK data rates should be disabled By default in OpenWRT. Users in need of 802.11b client support can reasonably enable these where they are needed. The balance of equities has significantly, and for a long time, tipped such that dropping backwards compatibility by default with 802.11b devices is appropriate, proportionate and justified. By doing so, management and control traffic is moved by default to a 20 MHz wide 6 Mb/s OFDM data rate instead of a 22 MHz wide 1 Mb/s DSSS data rate. This is significantly more airtime efficient. For discoverability: 1) Move the option from the Advanced Settings to the General Setup tab. 2) Add a description explaining potential compatibility implications. Signed-off-by: Nick Lowe --- .../htdocs/luci-static/resources/view/network/wireless.js | 5 ++--- 1 file changed, 2 insertions(+), 3 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 c03b559cb3..14647f8342 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 @@ -883,6 +883,8 @@ return view.extend({ o.ucisection = s.section; 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 = 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; @@ -895,9 +897,6 @@ return view.extend({ o.value('2', _('High')); o.value('3', _('Very High')); - o = ss.taboption('advanced', form.Flag, 'legacy_rates', _('Allow legacy 802.11b rates')); - o.default = o.enabled; - o = ss.taboption('advanced', form.Value, 'distance', _('Distance Optimization'), _('Distance to farthest network member in meters.')); o.datatype = 'or(range(0,114750),"auto")'; o.placeholder = 'auto'; -- 2.30.2