sme.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #else /* CONFIG_SME */
  23. static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
  24. struct wpa_scan_res *bss,
  25. struct wpa_ssid *ssid)
  26. {
  27. }
  28. static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
  29. union wpa_event_data *data)
  30. {
  31. }
  32. static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
  33. const u8 *ies, size_t ies_len)
  34. {
  35. return -1;
  36. }
  37. #endif /* CONFIG_SME */
  38. #endif /* SME_H */