1281681Srpaulo/*
2281681Srpaulo * DFS - Dynamic Frequency Selection
3281681Srpaulo * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
4346981Scy * Copyright (c) 2013-2017, Qualcomm Atheros, Inc.
5281681Srpaulo *
6281681Srpaulo * This software may be distributed under the terms of the BSD license.
7281681Srpaulo * See README for more details.
8281681Srpaulo */
9281681Srpaulo#ifndef DFS_H
10281681Srpaulo#define DFS_H
11281681Srpaulo
12281681Srpauloint hostapd_handle_dfs(struct hostapd_iface *iface);
13281681Srpaulo
14281681Srpauloint hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
15281681Srpaulo			     int ht_enabled, int chan_offset, int chan_width,
16281681Srpaulo			     int cf1, int cf2);
17346981Scyint hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
18346981Scy				int ht_enabled, int chan_offset, int chan_width,
19346981Scy				int cf1, int cf2);
20281681Srpauloint hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
21281681Srpaulo			       int ht_enabled,
22281681Srpaulo			       int chan_offset, int chan_width,
23281681Srpaulo			       int cf1, int cf2);
24281681Srpauloint hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
25281681Srpaulo			     int ht_enabled,
26281681Srpaulo			     int chan_offset, int chan_width, int cf1, int cf2);
27281681Srpauloint hostapd_is_dfs_required(struct hostapd_iface *iface);
28281681Srpauloint hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
29281681Srpaulo			  int ht_enabled, int chan_offset, int chan_width,
30281681Srpaulo			  int cf1, int cf2);
31281681Srpauloint hostapd_handle_dfs_offload(struct hostapd_iface *iface);
32281681Srpaulo
33281681Srpaulo#endif /* DFS_H */
34