P2P: Add peer timeout into group formation 15 second timeout

This adds some more time for WPS provisioning step in case the peer
takes long time to start group interface operations.
This commit is contained in:
Jouni Malinen 2010-09-06 21:04:01 +03:00 committed by Jouni Malinen
parent 2f9929ffcc
commit ae3e342108
5 changed files with 21 additions and 3 deletions

View file

@ -1121,6 +1121,8 @@ void p2p_go_complete(struct p2p_data *p2p, struct p2p_device *peer)
}
}
res.peer_config_timeout = go ? peer->client_timeout : peer->go_timeout;
p2p_clear_timeout(p2p);
peer->go_neg_req_sent = 0;
peer->wps_method = WPS_NOT_READY;