You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

preauth_auth.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
  3. * Copyright (c) 2004-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 PREAUTH_H
  15. #define PREAUTH_H
  16. #ifdef CONFIG_RSN_PREAUTH
  17. int rsn_preauth_iface_init(struct hostapd_data *hapd);
  18. void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
  19. void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
  20. int success);
  21. void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
  22. u8 *buf, size_t len);
  23. void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
  24. #else /* CONFIG_RSN_PREAUTH */
  25. static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
  26. {
  27. return 0;
  28. }
  29. static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
  30. {
  31. }
  32. static inline void rsn_preauth_finished(struct hostapd_data *hapd,
  33. struct sta_info *sta,
  34. int success)
  35. {
  36. }
  37. static inline void rsn_preauth_send(struct hostapd_data *hapd,
  38. struct sta_info *sta,
  39. u8 *buf, size_t len)
  40. {
  41. }
  42. static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
  43. struct sta_info *sta)
  44. {
  45. }
  46. #endif /* CONFIG_RSN_PREAUTH */
  47. #endif /* PREAUTH_H */