luci-mod-network: add 11be support - revert hwval null check for 5g/2g mode
authorRudy Andram <rmandrad@gmail.com>
Tue, 29 Oct 2024 05:21:16 +0000 (05:21 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 29 Oct 2024 18:58:05 +0000 (19:58 +0100)
remove misplaced ax/be checks

Signed-off-by: Rudy Andram <rmandrad@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 45790c3cf50581939992fbc9a52cdf56b9ef903f..4b12042b721c1d20bed6d5d0f35667b3fab156dd 100644 (file)
@@ -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';