]> git.ipfire.org Git - thirdparty/hostap.git/commit
Update hw_mode when CSA finishes
authorNijun Gong <quic_ngong@quicinc.com>
Mon, 10 Jul 2023 13:19:29 +0000 (21:19 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 30 Aug 2023 13:37:37 +0000 (16:37 +0300)
commit123d16d860fae8b36f50d4dc13bd0cc24ed83fe0
tree63ff1f1c10319bff3f0291f85026f7ee25748b45
parent32dcec9529ec25bc80188b05abf806450d0fde10
Update hw_mode when CSA finishes

The driver might decide to change the operating band on its own, e.g.,
when trying to use a single channel in AP + AP case. A CSA event will be
notified to hostapd to update the channel/frequency, but hw_mode did not
get updated accordingly.

This may cause hostapd interface restarting to fail, e.g., with control
interface DISABLE / ENABLE commands at configured_fixed_chan_to_freq(),
because of the mismatch between conf->channel and conf->hw_mode.

Update hw_mode right after channel change to fix this.

Signed-off-by: ngong <quic_ngong@quicinc.com>
src/ap/drv_callbacks.c
src/ap/hw_features.c
src/ap/hw_features.h