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@8devices.com> Link: https://github.com/openwrt/openwrt/pull/18998 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
15430a1348
commit
bb17f5756a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue