Fix D-Bus build without CONFIG_P2P=y
[mech_eap.git] / wpa_supplicant / notify.c
index 84c2cbd..b03c589 100644 (file)
@@ -220,14 +220,18 @@ void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
 void wpas_notify_persistent_group_added(struct wpa_supplicant *wpa_s,
                                        struct wpa_ssid *ssid)
 {
+#ifdef CONFIG_P2P
        wpas_dbus_register_persistent_group(wpa_s, ssid);
+#endif /* CONFIG_P2P */
 }
 
 
 void wpas_notify_persistent_group_removed(struct wpa_supplicant *wpa_s,
                                          struct wpa_ssid *ssid)
 {
+#ifdef CONFIG_P2P
        wpas_dbus_unregister_persistent_group(wpa_s, ssid->id);
+#endif /* CONFIG_P2P */
 }
 
 
@@ -493,6 +497,14 @@ void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s,
 
        wpas_dbus_signal_p2p_group_started(wpa_s, ssid, client, network_id);
 }
+
+
+void wpas_notify_p2p_wps_failed(struct wpa_supplicant *wpa_s,
+                               struct wps_event_fail *fail)
+{
+       wpas_dbus_signal_p2p_wps_failed(wpa_s, fail);
+}
+
 #endif /* CONFIG_P2P */