iapp.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * hostapd / IEEE 802.11F-2003 Inter-Access Point Protocol (IAPP)
  3. * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef IAPP_H
  15. #define IAPP_H
  16. struct iapp_data;
  17. #ifdef CONFIG_IAPP
  18. void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
  19. struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
  20. void iapp_deinit(struct iapp_data *iapp);
  21. int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
  22. struct hostapd_bss_config *oldbss);
  23. #else /* CONFIG_IAPP */
  24. static inline void iapp_new_station(struct iapp_data *iapp,
  25. struct sta_info *sta)
  26. {
  27. }
  28. static inline struct iapp_data * iapp_init(struct hostapd_data *hapd,
  29. const char *iface)
  30. {
  31. return NULL;
  32. }
  33. static inline void iapp_deinit(struct iapp_data *iapp)
  34. {
  35. }
  36. static inline int
  37. iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
  38. struct hostapd_bss_config *oldbss)
  39. {
  40. return 0;
  41. }
  42. #endif /* CONFIG_IAPP */
  43. #endif /* IAPP_H */