2 * hostapd / WPS integration
3 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
20 int hostapd_init_wps(struct hostapd_data *hapd,
21 struct hostapd_bss_config *conf);
22 void hostapd_deinit_wps(struct hostapd_data *hapd);
23 void hostapd_update_wps(struct hostapd_data *hapd);
24 int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
25 const char *pin, int timeout);
26 int hostapd_wps_button_pushed(struct hostapd_data *hapd);
27 int hostapd_wps_start_oob(struct hostapd_data *hapd, char *device_type,
28 char *path, char *method, char *name);
29 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
30 char *buf, size_t buflen);
32 #else /* CONFIG_WPS */
34 static inline int hostapd_init_wps(struct hostapd_data *hapd,
35 struct hostapd_bss_config *conf)
40 static inline void hostapd_deinit_wps(struct hostapd_data *hapd)
44 static inline void hostapd_update_wps(struct hostapd_data *hapd)
48 static inline int hostapd_wps_get_mib_sta(struct hostapd_data *hapd,
50 char *buf, size_t buflen)
55 static inline int hostapd_wps_button_pushed(struct hostapd_data *hapd)
60 #endif /* CONFIG_WPS */
62 #endif /* WPS_HOSTAPD_H */