]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DFS: Reset cac_started properly
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 31 Oct 2013 12:49:38 +0000 (14:49 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 31 Oct 2013 12:49:38 +0000 (14:49 +0200)
If CAC was stopped but hostapd was not terminated cac_started would
remain set to 1.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
src/ap/dfs.c

index 736f2344d26b555b717ded11c5735315f220942c..40b3de56f3175648911c3e207b9d3ece7fcd9a36 100644 (file)
@@ -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);