]> git.ipfire.org Git - thirdparty/openwrt.git/commit
hostapd: ucode: fix CSA bandwidth for 320 MHz and 80+80 channels
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 10:23:19 +0000 (12:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:21 +0000 (11:50 +0200)
commitb92df1e8da528eda036c15237ac1ce047d4bbcea
treef6e214e5699788b6ed0f0dc357971e86b37ea88b
parent5625dadb4b3c7549104ae859503ba1d184883772
hostapd: ucode: fix CSA bandwidth for 320 MHz and 80+80 channels

switch_channel computed the CSA bandwidth as 40 << oper_chwidth, which
mismaps oper_chwidth 3 (80+80, must be 80 MHz plus center_freq2) to 320
and 9 (320 MHz) to 20480. Map the operating channel width to the actual
MHz bandwidth explicitly.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/src/src/ap/ucode.c