sme.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * wpa_supplicant - SME
  3. * Copyright (c) 2009, 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 SME_H
  15. #define SME_H
  16. #ifdef CONFIG_SME
  17. void sme_authenticate(struct wpa_supplicant *wpa_s,
  18. struct wpa_scan_res *bss, struct wpa_ssid *ssid);
  19. void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
  20. int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
  21. const u8 *ies, size_t ies_len);
  22. void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
  23. union wpa_event_data *data);
  24. #else /* CONFIG_SME */
  25. static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
  26. struct wpa_scan_res *bss,
  27. struct wpa_ssid *ssid)
  28. {
  29. }
  30. static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
  31. union wpa_event_data *data)
  32. {
  33. }
  34. static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
  35. const u8 *ies, size_t ies_len)
  36. {
  37. return -1;
  38. }
  39. static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
  40. union wpa_event_data *data)
  41. {
  42. }
  43. #endif /* CONFIG_SME */
  44. #endif /* SME_H */