luci-mod-network: wireless.js: recognize HE* htmodes
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Jun 2021 07:05:24 +0000 (09:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Jun 2021 07:06:39 +0000 (09:06 +0200)
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3856#comment9797
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4286c84825c15f4d36f294b2ea28071667a4be7e)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 8f3f7a24ed5cab6a73ac62350048ee6cce8abb23..5115a69eb6ef6e6de27dbca4f192d252f797e9bc 100644 (file)
@@ -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';