From: Rudy Andram Date: Tue, 29 Oct 2024 05:21:16 +0000 (+0000) Subject: luci-mod-network: add 11be support - revert hwval null check for 5g/2g mode X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=2becdcc2f587316ea8cb8b8448eabf96f681f8ca;p=openwrt-luci.git luci-mod-network: add 11be support - revert hwval null check for 5g/2g mode remove misplaced ax/be checks Signed-off-by: Rudy Andram --- 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 45790c3cf5..4b12042b72 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 @@ -521,9 +521,7 @@ var CBIWifiFrequencyValue = form.Value.extend({ if (hwval != null) { this.useBandOption = false; - if (/be/.test(mode.value)) - band.value = '6g'; - else if (/ax/.test(mode.value)) + if (/a/.test(hwval)) band.value = '5g'; else band.value = '2g';