aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-06-27 18:23:22 (GMT)
committerJouni Malinen <j@w1.fi>2011-06-27 18:23:22 (GMT)
commit7a2b53b4ef16c688dba9b29cfeec7719478e26cf (patch)
tree0639f653264598eca048a8f258492247f691537e /wpa_supplicant/notify.c
parent20a0b03debef66cc57b0c34a05f8be5229be907c (diff)
downloadhostap-7a2b53b4ef16c688dba9b29cfeec7719478e26cf.zip
hostap-7a2b53b4ef16c688dba9b29cfeec7719478e26cf.tar.gz
hostap-7a2b53b4ef16c688dba9b29cfeec7719478e26cf.tar.bz2
Fix D-Bus build without CONFIG_P2P=y
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 6595fec..b03c589 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -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 */
}