wps_supplicant.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * wpa_supplicant / WPS integration
  3. * Copyright (c) 2008, 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 WPS_SUPPLICANT_H
  15. #define WPS_SUPPLICANT_H
  16. #ifdef CONFIG_WPS
  17. int wpas_wps_init(struct wpa_supplicant *wpa_s);
  18. void wpas_wps_deinit(struct wpa_supplicant *wpa_s);
  19. int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s);
  20. void * wpas_wps_get_cred_cb(void);
  21. #else /* CONFIG_WPS */
  22. static inline int wpas_wps_init(struct wpa_supplicant *wpa_s)
  23. {
  24. return 0;
  25. }
  26. static inline void wpas_wps_deinit(struct wpa_supplicant *wpa_s)
  27. {
  28. }
  29. static inline int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
  30. {
  31. return 0;
  32. }
  33. static inline void * wpas_wps_get_cred_cb(void)
  34. {
  35. return NULL;
  36. }
  37. #endif /* CONFIG_WPS */
  38. #endif /* WPS_SUPPLICANT_H */