]> git.ipfire.org Git - thirdparty/hostap.git/commit
Skip CAC if the driver switches channel to non-DFS
authorQiwei Cai <quic_qcai@quicinc.com>
Wed, 9 Nov 2022 11:46:04 +0000 (19:46 +0800)
committerJouni Malinen <j@w1.fi>
Wed, 23 Nov 2022 16:32:46 +0000 (18:32 +0200)
commitb6c38cee93e312635576d47fea87b86c78e553b8
tree24cea5d2764ef1d9d6e2e93e58011e5fea8bcd94
parent080afc03d5c8389a15aeb3ae91c8f97f655abf50
Skip CAC if the driver switches channel to non-DFS

If an AP is started on a DFS channel (or any channels within its
bandwidth require DFS) and DFS is offloaded to the driver, hostapd needs
to wait for CAC to complete. But the driver may not do CAC and just
switches to a non-DFS channel instead. This would result in a failure to
start the AP because hostapd fails to receive a CAC complete event and
cannot finish interface setup.

Skip CAC and complete AP setup in the channel switch event handler for
this case.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/drv_callbacks.c