aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-28 18:32:13 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-28 18:32:13 (GMT)
commit116654ce24fea104bd0eeb66499948df4d4df3ce (patch)
tree1662391971bc8a900bdfb216a4e10baece082f73 /wpa_supplicant/wps_supplicant.h
parentbcbbc7af45cc4b84a5c10e65f4283fdf68cd785a (diff)
downloadhostap-116654ce24fea104bd0eeb66499948df4d4df3ce.zip
hostap-116654ce24fea104bd0eeb66499948df4d4df3ce.tar.gz
hostap-116654ce24fea104bd0eeb66499948df4d4df3ce.tar.bz2
WPS: Moved wps_context initialization into wps_supplicant.c
The wps_context data is now managed at wpa_supplicant, not EAP-WSC. This makes wpa_supplicant design for WPS match with hostapd one and also makes it easier configure whatever parameters and callbacks are needed for WPS.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.h')
-rw-r--r--wpa_supplicant/wps_supplicant.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.h b/wpa_supplicant/wps_supplicant.h
index 3173624..caacc36 100644
--- a/wpa_supplicant/wps_supplicant.h
+++ b/wpa_supplicant/wps_supplicant.h
@@ -17,11 +17,22 @@
#ifdef CONFIG_WPS
+int wpas_wps_init(struct wpa_supplicant *wpa_s);
+void wpas_wps_deinit(struct wpa_supplicant *wpa_s);
int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s);
void * wpas_wps_get_cred_cb(void);
#else /* CONFIG_WPS */
+static inline int wpas_wps_init(struct wpa_supplicant *wpa_s)
+{
+ return 0;
+}
+
+static inline void wpas_wps_deinit(struct wpa_supplicant *wpa_s)
+{
+}
+
static inline int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
{
return 0;