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>
This commit is contained in:
parent
eb32460029
commit
447969e034
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void wpas_notify_network_added(struct wpa_supplicant *wpa_s,
|
||||||
* applications since these network objects won't behave like
|
* applications since these network objects won't behave like
|
||||||
* regular ones.
|
* 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);
|
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)
|
if (wpa_s->wpa)
|
||||||
wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);
|
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);
|
wpas_dbus_unregister_network(wpa_s, ssid->id);
|
||||||
#ifdef CONFIG_P2P
|
#ifdef CONFIG_P2P
|
||||||
wpas_p2p_network_removed(wpa_s, ssid);
|
wpas_p2p_network_removed(wpa_s, ssid);
|
||||||
|
|
Loading…
Reference in a new issue