mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user