acs.h 652 B

123456789101112131415161718192021222324252627
  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. #ifndef ACS_H
  10. #define ACS_H
  11. #ifdef CONFIG_ACS
  12. enum hostapd_chan_status acs_init(struct hostapd_iface *iface);
  13. #else /* CONFIG_ACS */
  14. static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface)
  15. {
  16. wpa_printf(MSG_ERROR, "ACS was disabled on your build, rebuild hostapd with CONFIG_ACS=y or set channel");
  17. return HOSTAPD_CHAN_INVALID;
  18. }
  19. #endif /* CONFIG_ACS */
  20. #endif /* ACS_H */