blob: 8be3de5b5f7862f877f7c39adb9641738c9dcbf9 [file] [log] [blame]
Dmitry Shmidt391c59f2013-09-03 12:16:28 -07001/*
2 * ACS - Automatic Channel Selection module
3 * Copyright (c) 2011, Atheros Communications
4 * Copyright (c) 2013, Qualcomm Atheros, Inc.
5 *
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
8 */
9
10#ifndef ACS_H
11#define ACS_H
12
13#ifdef CONFIG_ACS
14
15enum hostapd_chan_status acs_init(struct hostapd_iface *iface);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070016void acs_cleanup(struct hostapd_iface *iface);
Dmitry Shmidt391c59f2013-09-03 12:16:28 -070017
Sunil Ravi7f769292024-07-23 22:21:32 +000018#define ACS_SCAN_RETRY_MAX_COUNT 15
19#define ACS_SCAN_RETRY_INTERVAL 5
20
Dmitry Shmidt391c59f2013-09-03 12:16:28 -070021#else /* CONFIG_ACS */
22
23static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface)
24{
25 wpa_printf(MSG_ERROR, "ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=y or set channel");
26 return HOSTAPD_CHAN_INVALID;
27}
28
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070029static inline void acs_cleanup(struct hostapd_iface *iface)
30{
31}
32
Dmitry Shmidt391c59f2013-09-03 12:16:28 -070033#endif /* CONFIG_ACS */
34
35#endif /* ACS_H */