aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-28 17:46:22 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-28 17:46:22 (GMT)
commitfa201b694f55194331d99877b6c64058c1ebd990 (patch)
treef0d1bfdfabd4f44efde47cec6a2e77f597bb1735 /wpa_supplicant/wps_supplicant.h
parentff434cbddaeab089e483ca39dbd26d6ef1061632 (diff)
downloadhostap-fa201b694f55194331d99877b6c64058c1ebd990.zip
hostap-fa201b694f55194331d99877b6c64058c1ebd990.tar.gz
hostap-fa201b694f55194331d99877b6c64058c1ebd990.tar.bz2
WPS: Move WPS glue code from wpas_glue.c to wps_supplicant.c
This cleans up the internal interface between different modules and is the first step in getting wpa_supplicant design closer to hostapd as far as WPS is concerned.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.h')
-rw-r--r--wpa_supplicant/wps_supplicant.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.h b/wpa_supplicant/wps_supplicant.h
new file mode 100644
index 0000000..3173624
--- /dev/null
+++ b/wpa_supplicant/wps_supplicant.h
@@ -0,0 +1,37 @@
+/*
+ * wpa_supplicant / WPS integration
+ * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef WPS_SUPPLICANT_H
+#define WPS_SUPPLICANT_H
+
+#ifdef CONFIG_WPS
+
+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_eapol_cb(struct wpa_supplicant *wpa_s)
+{
+ return 0;
+}
+
+static inline void * wpas_wps_get_cred_cb(void)
+{
+ return NULL;
+}
+
+#endif /* CONFIG_WPS */
+
+#endif /* WPS_SUPPLICANT_H */