[openwrt/openwrt] wifi-scripts: fix calculation for eht_oper_centr_freq_seg0_idx
LEDE Commits
lede-commits at lists.infradead.org
Sat Jun 7 02:44:49 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bb17f5756abd3ab5cdccac857bc602297bc61000
commit bb17f5756abd3ab5cdccac857bc602297bc61000
Author: Mantas Pucka <mantas at 8devices.com>
AuthorDate: Mon Jun 2 11:14:10 2025 +0300
wifi-scripts: fix calculation for eht_oper_centr_freq_seg0_idx
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 at 8devices.com>
Link: https://github.com/openwrt/openwrt/pull/18998
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc
index 223f84f7d7..848f02d323 100644
--- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc
+++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc
@@ -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;
}
More information about the lede-commits
mailing list