mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
P2P: Fix group formation timeout on GO during WPS step
Commit 361cdf34009c7407ddf22dee6f5e6ce82e81bcae changed the way the group formation timeout is used on P2P client. However, it resulted in clearing the timeout on the GO when the GO started beaconing. This is not correct since the timeout is supposed to be maintained until at least the completion of the WPS provisioning step. Fix this regression by clearing the timeout here only in the case we are not GO in group formation phase. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
476dea24ff
commit
73ccd08378
@ -4178,8 +4178,10 @@ void wpas_p2p_completed(struct wpa_supplicant *wpa_s)
|
|||||||
int persistent;
|
int persistent;
|
||||||
int freq;
|
int freq;
|
||||||
|
|
||||||
eloop_cancel_timeout(wpas_p2p_group_formation_timeout, wpa_s->parent,
|
if (ssid == NULL || ssid->mode != WPAS_MODE_P2P_GROUP_FORMATION) {
|
||||||
NULL);
|
eloop_cancel_timeout(wpas_p2p_group_formation_timeout,
|
||||||
|
wpa_s->parent, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
if (!wpa_s->show_group_started || !ssid)
|
if (!wpa_s->show_group_started || !ssid)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user