]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_AP=y build without CONFIG_WPS=y
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 25 Nov 2010 21:34:56 +0000 (23:34 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Nov 2010 21:34:56 +0000 (23:34 +0200)
wpa_supplicant/ap.c

index f0bc7d58f30db9bfaad8258fb35c8a05bb00ade2..bb2f2f29604d86add220edfcf04df69e91d46ca4 100644 (file)
@@ -43,7 +43,9 @@
 #include "ap/sta_info.h"
 
 
+#ifdef CONFIG_WPS
 static void wpas_wps_ap_pin_timeout(void *eloop_data, void *user_ctx);
+#endif /* CONFIG_WPS */
 
 
 static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
@@ -436,7 +438,9 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
 
 void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
 {
+#ifdef CONFIG_WPS
        eloop_cancel_timeout(wpas_wps_ap_pin_timeout, wpa_s, NULL);
+#endif /* CONFIG_WPS */
 
        if (wpa_s->ap_iface == NULL)
                return;