From: Michal Kazior Date: Thu, 31 Oct 2013 12:49:38 +0000 (+0200) Subject: DFS: Reset cac_started properly X-Git-Tag: hostap_2_1~701 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=954e71d270a2ab81e74bd82e7bc7e8fd342b0970;p=thirdparty%2Fhostap.git DFS: Reset cac_started properly If CAC was stopped but hostapd was not terminated cac_started would remain set to 1. Signed-off-by: Michal Kazior --- diff --git a/src/ap/dfs.c b/src/ap/dfs.c index 736f2344d..40b3de56f 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -516,6 +516,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);