P2P: Use 0-timeout when inviting to running group as client

This commit is contained in:
Jouni Malinen 2010-07-01 23:39:34 -07:00 committed by Jouni Malinen
parent 131cb37c2d
commit 18eff3a3a7

View file

@ -39,7 +39,7 @@ static struct wpabuf * p2p_build_invitation_req(struct p2p_data *p2p,
peer->dialog_token); peer->dialog_token);
len = p2p_buf_add_ie_hdr(buf); len = p2p_buf_add_ie_hdr(buf);
if (p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO) if (p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO || !p2p->inv_persistent)
p2p_buf_add_config_timeout(buf, 0, 0); p2p_buf_add_config_timeout(buf, 0, 0);
else else
p2p_buf_add_config_timeout(buf, 100, 20); p2p_buf_add_config_timeout(buf, 100, 20);