From 954e71d270a2ab81e74bd82e7bc7e8fd342b0970 Mon Sep 17 00:00:00 2001 From: Michal Kazior Date: Thu, 31 Oct 2013 14:49:38 +0200 Subject: [PATCH] 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 --- src/ap/dfs.c | 2 ++ 1 file changed, 2 insertions(+) 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);