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 45790c3cf50..4b12042b721 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';