From b99b8e1516e0fbce2190b3c811d07696a8ca05eb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 10 Nov 2009 11:35:25 +0200 Subject: [PATCH] Fix non-WPS build --- wpa_supplicant/notify.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index f3dcebcbf..5678814da 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -173,39 +173,49 @@ void wpas_notify_scan_results(struct wpa_supplicant *wpa_s) void wpas_notify_wps_credential(struct wpa_supplicant *wpa_s, const struct wps_credential *cred) { +#ifdef CONFIG_WPS struct wpas_dbus_callbacks *cbs = wpas_dbus_get_callbacks(); +#endif /* CONFIG_WPS */ /* notify the old DBus API */ wpa_supplicant_dbus_notify_wps_cred(wpa_s, cred); /* notify the new DBus API */ +#ifdef CONFIG_WPS if (cbs) cbs->signal_wps_credentials(wpa_s, cred); +#endif /* CONFIG_WPS */ } void wpas_notify_wps_event_m2d(struct wpa_supplicant *wpa_s, struct wps_event_m2d *m2d) { +#ifdef CONFIG_WPS struct wpas_dbus_callbacks *cbs = wpas_dbus_get_callbacks(); if (cbs) cbs->signal_wps_event_m2d(wpa_s, m2d); +#endif /* CONFIG_WPS */ } void wpas_notify_wps_event_fail(struct wpa_supplicant *wpa_s, struct wps_event_fail *fail) { +#ifdef CONFIG_WPS struct wpas_dbus_callbacks *cbs = wpas_dbus_get_callbacks(); if (cbs) cbs->signal_wps_event_fail(wpa_s, fail); +#endif /* CONFIG_WPS */ } void wpas_notify_wps_event_success(struct wpa_supplicant *wpa_s) { +#ifdef CONFIG_WPS struct wpas_dbus_callbacks *cbs = wpas_dbus_get_callbacks(); if (cbs) cbs->signal_wps_event_success(wpa_s); +#endif /* CONFIG_WPS */ }