aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/notify.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-08-31 13:44:42 (GMT)
committerJouni Malinen <j@w1.fi>2013-08-31 13:44:42 (GMT)
commit447969e034cbcdb9d2c686f7393f2fbeb69319b2 (patch)
treefae13ac3b782bc08ee460c37ee1f26e099f631b2 /wpa_supplicant/notify.c
parenteb324600295a570199a5e25eb64e60781a04fb74 (diff)
downloadhostap-447969e034cbcdb9d2c686f7393f2fbeb69319b2.zip
hostap-447969e034cbcdb9d2c686f7393f2fbeb69319b2.tar.gz
hostap-447969e034cbcdb9d2c686f7393f2fbeb69319b2.tar.bz2
D-Bus: Do not send network notification for all P2P groups
Previously, network added event was skipping during group formation. However, this did not necessarily catch all cases of temporary P2P network blocks. Check ssid->p2p_group to make this behavior more consistent by avoiding all P2P groups. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r--wpa_supplicant/notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c
index 35a029f..40cffdf 100644
--- a/wpa_supplicant/notify.c
+++ b/wpa_supplicant/notify.c
@@ -222,7 +222,7 @@ void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
* applications since these network objects won't behave like
* regular ones.
*/
- if (wpa_s->global->p2p_group_formation != wpa_s)
+ if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s)
wpas_dbus_register_network(wpa_s, ssid);
}
@@ -250,7 +250,7 @@ void wpas_notify_network_removed(struct wpa_supplicant *wpa_s,
{
if (wpa_s->wpa)
wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
- if (wpa_s->global->p2p_group_formation != wpa_s)
+ 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);