preauth_auth.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
  3. * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef PREAUTH_H
  9. #define PREAUTH_H
  10. #ifdef CONFIG_RSN_PREAUTH
  11. int rsn_preauth_iface_init(struct hostapd_data *hapd);
  12. void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
  13. void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
  14. int success);
  15. void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
  16. u8 *buf, size_t len);
  17. void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
  18. #else /* CONFIG_RSN_PREAUTH */
  19. static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
  20. {
  21. return 0;
  22. }
  23. static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
  24. {
  25. }
  26. static inline void rsn_preauth_finished(struct hostapd_data *hapd,
  27. struct sta_info *sta,
  28. int success)
  29. {
  30. }
  31. static inline void rsn_preauth_send(struct hostapd_data *hapd,
  32. struct sta_info *sta,
  33. u8 *buf, size_t len)
  34. {
  35. }
  36. static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
  37. struct sta_info *sta)
  38. {
  39. }
  40. #endif /* CONFIG_RSN_PREAUTH */
  41. #endif /* PREAUTH_H */