From: Jo-Philipp Wich Date: Mon, 14 Jun 2021 07:05:24 +0000 (+0200) Subject: luci-mod-network: wireless.js: recognize HE* htmodes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4286c84825c15f4d36f294b2ea28071667a4be7e;p=openwrt-luci.git luci-mod-network: wireless.js: recognize HE* htmodes Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3856#comment9797 Signed-off-by: Jo-Philipp Wich --- 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 8f3f7a24ed..5115a69eb6 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 @@ -451,7 +451,9 @@ var CBIWifiFrequencyValue = form.Value.extend({ this.setValues(mode, this.modes); - if (/VHT20|VHT40|VHT80|VHT160/.test(htval)) + if (/HE20|HE40|HE80|HE160/.test(htval)) + mode.value = 'ax'; + else if (/VHT20|VHT40|VHT80|VHT160/.test(htval)) mode.value = 'ac'; else if (/HT20|HT40/.test(htval)) mode.value = 'n';