P2P: Do not use group idle timeout during provisioning
Use the normal group formation timeout during the provisioning phase to avoid terminating this process too early due to group idle timeout. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f4329aa2d0
commit
8c472816fd
1 changed files with 11 additions and 0 deletions
|
@ -3997,6 +3997,17 @@ static void wpas_p2p_set_group_idle_timeout(struct wpa_supplicant *wpa_s)
|
||||||
if (timeout == 0)
|
if (timeout == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (wpa_s->p2p_in_provisioning) {
|
||||||
|
/*
|
||||||
|
* Use the normal group formation timeout during the
|
||||||
|
* provisioning phase to avoid terminating this process too
|
||||||
|
* early due to group idle timeout.
|
||||||
|
*/
|
||||||
|
wpa_printf(MSG_DEBUG, "P2P: Do not use P2P group idle timeout "
|
||||||
|
"during provisioning");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "P2P: Set P2P group idle timeout to %u seconds",
|
wpa_printf(MSG_DEBUG, "P2P: Set P2P group idle timeout to %u seconds",
|
||||||
timeout);
|
timeout);
|
||||||
eloop_register_timeout(timeout, 0, wpas_p2p_group_idle_timeout,
|
eloop_register_timeout(timeout, 0, wpas_p2p_group_idle_timeout,
|
||||||
|
|
Loading…
Reference in a new issue