xref: /freebsd/contrib/wpa/src/ap/dfs.h (revision 85732ac8bccbc0adcf5a261ea1ffec8ca7b3a92d)
15b9c547cSRui Paulo /*
25b9c547cSRui Paulo  * DFS - Dynamic Frequency Selection
35b9c547cSRui Paulo  * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
4*85732ac8SCy Schubert  * Copyright (c) 2013-2017, Qualcomm Atheros, Inc.
55b9c547cSRui Paulo  *
65b9c547cSRui Paulo  * This software may be distributed under the terms of the BSD license.
75b9c547cSRui Paulo  * See README for more details.
85b9c547cSRui Paulo  */
95b9c547cSRui Paulo #ifndef DFS_H
105b9c547cSRui Paulo #define DFS_H
115b9c547cSRui Paulo 
125b9c547cSRui Paulo int hostapd_handle_dfs(struct hostapd_iface *iface);
135b9c547cSRui Paulo 
145b9c547cSRui Paulo int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
155b9c547cSRui Paulo 			     int ht_enabled, int chan_offset, int chan_width,
165b9c547cSRui Paulo 			     int cf1, int cf2);
17*85732ac8SCy Schubert int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
18*85732ac8SCy Schubert 				int ht_enabled, int chan_offset, int chan_width,
19*85732ac8SCy Schubert 				int cf1, int cf2);
205b9c547cSRui Paulo int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
215b9c547cSRui Paulo 			       int ht_enabled,
225b9c547cSRui Paulo 			       int chan_offset, int chan_width,
235b9c547cSRui Paulo 			       int cf1, int cf2);
245b9c547cSRui Paulo int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
255b9c547cSRui Paulo 			     int ht_enabled,
265b9c547cSRui Paulo 			     int chan_offset, int chan_width, int cf1, int cf2);
275b9c547cSRui Paulo int hostapd_is_dfs_required(struct hostapd_iface *iface);
285b9c547cSRui Paulo int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
295b9c547cSRui Paulo 			  int ht_enabled, int chan_offset, int chan_width,
305b9c547cSRui Paulo 			  int cf1, int cf2);
315b9c547cSRui Paulo int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
325b9c547cSRui Paulo 
335b9c547cSRui Paulo #endif /* DFS_H */
34