]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix opclass during CSA with DFS channels
authormarek@mazekey.pl <marek@mazekey.pl>
Tue, 23 Apr 2024 09:08:08 +0000 (11:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jul 2024 15:09:32 +0000 (18:09 +0300)
commit816e22bba152ba26fdbc13be56ef507340ef3aad
tree3501b6cca285ab05ce33d199b553365db252ade5
parent93a3c59ad9c40d0e1eaeae1c07373680d5baf535
hostapd: Fix opclass during CSA with DFS channels

During CSA with DFS channels, disable, enable interface is a part of the
algorithm. When interface was enabled old operating class before switch
and new channel were used causing mismatch in
configured_fixed_chan_to_freq() function.

Example of log when switch from channel 157 to 108 was triggered:
"Could not convert op_class 124 channel 108 to operating frequency"

Fixes: bb781c763 ("AP: Populate iface->freq before starting AP")
Signed-off-by: Marek Kwaczynski <marek@mazekey.pl>
src/ap/hostapd.c