[PATCH 2] WPS: Fix compilation error

Masashi Honma honma
Tue Nov 10 01:39:11 PST 2009


Hello.

The wpa_supplicant compilation failed without CONFIG_WPS=y.

This patch solves this issue.


diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index f3dcebc..ed77df1 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -170,6 +170,7 @@ void wpas_notify_scan_results(struct wpa_supplicant *wpa_s)
 }
 
 
+#ifdef CONFIG_WPS
 void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s,
 				const struct wps_credential *cred)
 {
@@ -207,6 +208,7 @@ void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s)
 	if (cbs)
 		cbs->signal_wps_event_success(wpa_s);
 }
+#endif /* CONFIG_WPS */
 
 
 void wpas_notify_network_added(struct wpa_supplicant *wpa_s,


Regards,
Masashi Honma.



More information about the Hostap mailing list