]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Handle running out of DFS channels
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Mon, 7 Mar 2016 11:47:01 +0000 (12:47 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 8 Mar 2016 10:16:37 +0000 (12:16 +0200)
commit3bd58861ae120689652f6221e555e7a4d08a2b1c
treee41fcb26b2e6c41d299fe64e521ef1f4fe814ca1
parentcc1af6faed963a33809c6bcd4b590c44a64b0d96
hostapd: Handle running out of DFS channels

In scenarios where only DFS channels are available (e.g., outdoor,
special country codes), hostapd must be able to handle situations
where all are unavailable.

The two possibilities to get there are
1) while operating on the last available DFS channel a radar is
   detected
2) hostapd is started while all channels are unavailable

In both cases, hostapd instead of terminating should better
wait for the NOPs to pass and re-try operation after the CAC.

This patch provides that feature by using the condition
(iface->state == HAPD_IFACE_DFS && !iface->cac_started)
as NOP mode signature to retry operation from within
hostapd_dfs_nop_finished().

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
src/ap/dfs.c