]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix calculation for eht_oper_centr_freq_seg0_idx 18998/head
authorMantas Pucka <mantas@8devices.com>
Mon, 2 Jun 2025 08:14:10 +0000 (11:14 +0300)
committerRobert Marko <robimarko@gmail.com>
Sat, 7 Jun 2025 09:44:45 +0000 (11:44 +0200)
Inverted condition caused wrong value for eht_oper_centr_freq_seg0_idx
get selected in ETH320 mode, causing AP fail to start.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Link: https://github.com/openwrt/openwrt/pull/18998
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc

index 223f84f7d712d3783107dd82c7fafe9b7e752aeb..848f02d323d3356fa58aa781278a236bb5fbd737 100644 (file)
@@ -272,7 +272,7 @@ function device_htmode_append(config) {
                        ];
 
                        for (let k, v in eht_center_seg0_map)
-                               if (v[0] <= config.channel) {
+                               if (config.channel <= v[0]) {
                                        config.eht_oper_centr_freq_seg0_idx = v[1];
                                        break;
                                }