wps_hostapd.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * hostapd / 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_HOSTAPD_H
  15. #define WPS_HOSTAPD_H
  16. #ifdef CONFIG_WPS
  17. int hostapd_init_wps(struct hostapd_data *hapd,
  18. struct hostapd_bss_config *conf);
  19. void hostapd_deinit_wps(struct hostapd_data *hapd);
  20. int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
  21. const char *pin, int timeout);
  22. int hostapd_wps_button_pushed(struct hostapd_data *hapd);
  23. int hostapd_wps_start_oob(struct hostapd_data *hapd, char *device_type,
  24. char *path, char *method, char *name);
  25. #else /* CONFIG_WPS */
  26. static inline int hostapd_init_wps(struct hostapd_data *hapd,
  27. struct hostapd_bss_config *conf)
  28. {
  29. return 0;
  30. }
  31. static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
  32. {
  33. }
  34. #endif /* CONFIG_WPS */
  35. #endif /* WPS_HOSTAPD_H */