xref: /freebsd/contrib/wpa/src/ap/acs.h (revision 85732ac8bccbc0adcf5a261ea1ffec8ca7b3a92d)
15b9c547cSRui Paulo /*
25b9c547cSRui Paulo  * ACS - Automatic Channel Selection module
35b9c547cSRui Paulo  * Copyright (c) 2011, Atheros Communications
45b9c547cSRui Paulo  * Copyright (c) 2013, 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 
105b9c547cSRui Paulo #ifndef ACS_H
115b9c547cSRui Paulo #define ACS_H
125b9c547cSRui Paulo 
135b9c547cSRui Paulo #ifdef CONFIG_ACS
145b9c547cSRui Paulo 
155b9c547cSRui Paulo enum hostapd_chan_status acs_init(struct hostapd_iface *iface);
16*85732ac8SCy Schubert void acs_cleanup(struct hostapd_iface *iface);
175b9c547cSRui Paulo 
185b9c547cSRui Paulo #else /* CONFIG_ACS */
195b9c547cSRui Paulo 
205b9c547cSRui Paulo static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface)
215b9c547cSRui Paulo {
225b9c547cSRui Paulo 	wpa_printf(MSG_ERROR, "ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=y or set channel");
235b9c547cSRui Paulo 	return HOSTAPD_CHAN_INVALID;
245b9c547cSRui Paulo }
255b9c547cSRui Paulo 
26*85732ac8SCy Schubert static inline void acs_cleanup(struct hostapd_iface *iface)
27*85732ac8SCy Schubert {
28*85732ac8SCy Schubert }
29*85732ac8SCy Schubert 
305b9c547cSRui Paulo #endif /* CONFIG_ACS */
315b9c547cSRui Paulo 
325b9c547cSRui Paulo #endif /* ACS_H */
33