From 2becdcc2f587316ea8cb8b8448eabf96f681f8ca Mon Sep 17 00:00:00 2001 From: Rudy Andram Date: Tue, 29 Oct 2024 05:21:16 +0000 Subject: [PATCH] luci-mod-network: add 11be support - revert hwval null check for 5g/2g mode remove misplaced ax/be checks Signed-off-by: Rudy Andram --- .../htdocs/luci-static/resources/view/network/wireless.js | 4 +--- 1 file changed, 1 insertion(+), 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 45790c3cf505..4b12042b721c 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';