2013-08-31 10:49:51 +02:00
|
|
|
/*
|
|
|
|
* ACS - Automatic Channel Selection module
|
|
|
|
* Copyright (c) 2011, Atheros Communications
|
|
|
|
* Copyright (c) 2013, Qualcomm Atheros, Inc.
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ACS_H
|
|
|
|
#define ACS_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_ACS
|
|
|
|
|
|
|
|
enum hostapd_chan_status acs_init(struct hostapd_iface *iface);
|
2017-03-04 12:48:29 +01:00
|
|
|
void acs_cleanup(struct hostapd_iface *iface);
|
2013-08-31 10:49:51 +02:00
|
|
|
|
|
|
|
#else /* CONFIG_ACS */
|
|
|
|
|
|
|
|
static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface)
|
|
|
|
{
|
|
|
|
wpa_printf(MSG_ERROR, "ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=y or set channel");
|
|
|
|
return HOSTAPD_CHAN_INVALID;
|
|
|
|
}
|
|
|
|
|
2017-03-04 12:48:29 +01:00
|
|
|
static inline void acs_cleanup(struct hostapd_iface *iface)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2013-08-31 10:49:51 +02:00
|
|
|
#endif /* CONFIG_ACS */
|
|
|
|
|
|
|
|
#endif /* ACS_H */
|