[PATCH 3/4] hostapd: DFS: reset cac_started properly

Michal Kazior michal.kazior at tieto.com
Tue Oct 29 10:00:33 EDT 2013


If CAC was stopped but hostapd was not terminated
cac_started would remain set to 1.

Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
---
 src/ap/dfs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ap/dfs.c b/src/ap/dfs.c
index 650aa98..5d34422 100644
--- a/src/ap/dfs.c
+++ b/src/ap/dfs.c
@@ -515,6 +515,8 @@ int hostapd_handle_dfs(struct hostapd_data *hapd)
 	struct hostapd_channel_data *channel;
 	int res, n_chans, start_chan_idx;
 
+	hapd->cac_started = 0;
+
 	do {
 		/* Get start (first) channel for current configuration */
 		start_chan_idx = dfs_get_start_chan_idx(hapd);
-- 
1.8.4.rc3



More information about the HostAP mailing list