wpas_kay.h 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * IEEE 802.1X-2010 KaY Interface
  3. * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef WPAS_KAY_H
  9. #define WPAS_KAY_H
  10. #ifdef CONFIG_MACSEC
  11. int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
  12. struct wpa_ssid *ssid);
  13. void * ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
  14. const u8 *peer_addr);
  15. void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s);
  16. #else /* CONFIG_MACSEC */
  17. static inline int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
  18. struct wpa_ssid *ssid)
  19. {
  20. return 0;
  21. }
  22. static inline void *
  23. ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
  24. const u8 *peer_addr)
  25. {
  26. return NULL;
  27. }
  28. static inline void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s)
  29. {
  30. }
  31. #endif /* CONFIG_MACSEC */
  32. #endif /* WPAS_KAY_H */