mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
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 <michal.kazior@tieto.com>
This commit is contained in:
parent
6a398ddc9a
commit
954e71d270
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user