wps_supplicant.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. u8 wpas_wps_get_req_type(struct wpa_ssid *ssid);
  21. int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid);
  22. int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
  23. const char *pin);
  24. int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid,
  25. const char *pin);
  26. #else /* CONFIG_WPS */
  27. static inline int wpas_wps_init(struct wpa_supplicant *wpa_s)
  28. {
  29. return 0;
  30. }
  31. static inline void wpas_wps_deinit(struct wpa_supplicant *wpa_s)
  32. {
  33. }
  34. static inline int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
  35. {
  36. return 0;
  37. }
  38. u8 wpas_wps_get_req_type(struct wpa_ssid *ssid)
  39. {
  40. return 0;
  41. }
  42. #endif /* CONFIG_WPS */
  43. #endif /* WPS_SUPPLICANT_H */