aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-06-15 16:31:53 (GMT)
committerJouni Malinen <j@w1.fi>2014-06-15 16:31:53 (GMT)
commitbd10d93891c3f8191b2e5c7d82ca227875cfe89d (patch)
tree7f4fd2822078fd17311e2fa573ceff01942e3e7f /wpa_supplicant/notify.c
parent2eae05f7808875e367e79c66069d090f159f4ea2 (diff)
downloadhostap-bd10d93891c3f8191b2e5c7d82ca227875cfe89d.zip
hostap-bd10d93891c3f8191b2e5c7d82ca227875cfe89d.tar.gz
hostap-bd10d93891c3f8191b2e5c7d82ca227875cfe89d.tar.bz2
P2P: Clean up by moving ifdef CONFIG_P2P to p2p_suppplicant.h
This removes number of unnecessary #ifdef CONFIG_P2P blocks from generic code by hiding the conditional build into p2p_supplicant.h with empty inline functions. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 2db1d54..d096357 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -79,12 +79,10 @@ void wpas_notify_state_changed(struct wpa_supplicant *wpa_s,
/* notify the new DBus API */
wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE);
-#ifdef CONFIG_P2P
if (new_state == WPA_COMPLETED)
wpas_p2p_notif_connected(wpa_s);
else if (old_state >= WPA_ASSOCIATED && new_state < WPA_ASSOCIATED)
wpas_p2p_notif_disconnected(wpa_s);
-#endif /* CONFIG_P2P */
sme_state_changed(wpa_s);
@@ -258,9 +256,7 @@ void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s)
wpas_dbus_unregister_network(wpa_s, ssid->id);
-#ifdef CONFIG_P2P
wpas_p2p_network_removed(wpa_s, ssid);
-#endif /* CONFIG_P2P */
}