wifi-scripts: fix vht_oper_centr_freq_seg0_idx_map calculation
authorSean Khan <datapronix@protonmail.com>
Mon, 17 Feb 2025 21:35:32 +0000 (16:35 -0500)
committerJohn Crispin <john@phrozen.org>
Wed, 19 Feb 2025 07:07:20 +0000 (08:07 +0100)
commit7fd9340ec45dfb85c9d1eff5efe33b22af3d4ec7
treefa51ce9d5beebd154c299622741d59fbfcd17e01
parent1152af3490cacbc05df2d862030e00ff2eeb3b36
wifi-scripts: fix vht_oper_centr_freq_seg0_idx_map calculation

When selecting channels above 100 in VHT160+ modes the center
frequency segment was incorrectly set to 50, causing the interface
to not come up.

Change logic to instead check if the channel is within ±28 channels
of the intended center, which matches the actual 160+ MHz channel
width specification for VHT160, HE160, and EHT160.

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/18013
Signed-off-by: John Crispin <john@phrozen.org>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc