Dmitry Shmidt | 391c59f | 2013-09-03 12:16:28 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 15 | enum hostapd_chan_status acs_init(struct hostapd_iface *iface); |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 16 | void acs_cleanup(struct hostapd_iface *iface); |
Dmitry Shmidt | 391c59f | 2013-09-03 12:16:28 -0700 | [diff] [blame] | 17 | |
| 18 | #else /* CONFIG_ACS */ |
| 19 | |
| 20 | static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface) |
| 21 | { |
| 22 | wpa_printf(MSG_ERROR, "ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=y or set channel"); |
| 23 | return HOSTAPD_CHAN_INVALID; |
| 24 | } |
| 25 | |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 26 | static inline void acs_cleanup(struct hostapd_iface *iface) |
| 27 | { |
| 28 | } |
| 29 | |
Dmitry Shmidt | 391c59f | 2013-09-03 12:16:28 -0700 | [diff] [blame] | 30 | #endif /* CONFIG_ACS */ |
| 31 | |
| 32 | #endif /* ACS_H */ |