xref: /aosp_15_r20/external/wpa_supplicant_8/src/ap/dfs.h (revision 03f9172ca588f91df233974f4258bab95191f931)
1*03f9172cSAndroid Build Coastguard Worker /*
2*03f9172cSAndroid Build Coastguard Worker  * DFS - Dynamic Frequency Selection
3*03f9172cSAndroid Build Coastguard Worker  * Copyright (c) 2002-2013, Jouni Malinen <[email protected]>
4*03f9172cSAndroid Build Coastguard Worker  * Copyright (c) 2013-2017, Qualcomm Atheros, Inc.
5*03f9172cSAndroid Build Coastguard Worker  *
6*03f9172cSAndroid Build Coastguard Worker  * This software may be distributed under the terms of the BSD license.
7*03f9172cSAndroid Build Coastguard Worker  * See README for more details.
8*03f9172cSAndroid Build Coastguard Worker  */
9*03f9172cSAndroid Build Coastguard Worker #ifndef DFS_H
10*03f9172cSAndroid Build Coastguard Worker #define DFS_H
11*03f9172cSAndroid Build Coastguard Worker 
12*03f9172cSAndroid Build Coastguard Worker int hostapd_handle_dfs(struct hostapd_iface *iface);
13*03f9172cSAndroid Build Coastguard Worker 
14*03f9172cSAndroid Build Coastguard Worker int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
15*03f9172cSAndroid Build Coastguard Worker 			     int ht_enabled, int chan_offset, int chan_width,
16*03f9172cSAndroid Build Coastguard Worker 			     int cf1, int cf2);
17*03f9172cSAndroid Build Coastguard Worker int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
18*03f9172cSAndroid Build Coastguard Worker 				int ht_enabled, int chan_offset, int chan_width,
19*03f9172cSAndroid Build Coastguard Worker 				int cf1, int cf2);
20*03f9172cSAndroid Build Coastguard Worker int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
21*03f9172cSAndroid Build Coastguard Worker 			       int ht_enabled,
22*03f9172cSAndroid Build Coastguard Worker 			       int chan_offset, int chan_width,
23*03f9172cSAndroid Build Coastguard Worker 			       int cf1, int cf2);
24*03f9172cSAndroid Build Coastguard Worker int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
25*03f9172cSAndroid Build Coastguard Worker 			     int ht_enabled,
26*03f9172cSAndroid Build Coastguard Worker 			     int chan_offset, int chan_width, int cf1, int cf2);
27*03f9172cSAndroid Build Coastguard Worker int hostapd_is_dfs_required(struct hostapd_iface *iface);
28*03f9172cSAndroid Build Coastguard Worker int hostapd_is_dfs_chan_available(struct hostapd_iface *iface);
29*03f9172cSAndroid Build Coastguard Worker int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
30*03f9172cSAndroid Build Coastguard Worker 			  int ht_enabled, int chan_offset, int chan_width,
31*03f9172cSAndroid Build Coastguard Worker 			  int cf1, int cf2);
32*03f9172cSAndroid Build Coastguard Worker int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
33*03f9172cSAndroid Build Coastguard Worker int hostapd_is_dfs_overlap(struct hostapd_iface *iface, enum chan_width width,
34*03f9172cSAndroid Build Coastguard Worker 			   int center_freq);
35*03f9172cSAndroid Build Coastguard Worker 
36*03f9172cSAndroid Build Coastguard Worker #endif /* DFS_H */
37