mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 09:18:24 -05:00
3645fd5aae
Otherwise hostapd might hang doing nothing anymore. Propagate ACS errors so we can fail gracefully. Signed-hostap: Helmut Schaa <helmut.schaa@googlemail.com>
29 lines
717 B
C
29 lines
717 B
C
/*
|
|
* 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);
|
|
int hostapd_acs_completed(struct hostapd_iface *iface, int err);
|
|
|
|
#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;
|
|
}
|
|
|
|
#endif /* CONFIG_ACS */
|
|
|
|
#endif /* ACS_H */
|