diff options
| author | Swaroop Golti <sgolti@qti.qualcomm.com> | 2013-10-10 13:16:59 +0530 |
|---|---|---|
| committer | Rashmi Ramanna <rashmi@codeaurora.org> | 2013-10-10 13:33:52 +0530 |
| commit | e415a15c75e59bb12c1d6f424ffa2f155ebdcd3a (patch) | |
| tree | f0688d44d0a012f025223bc837053acef7492c40 | |
| parent | 48119a1eaaa1798aef056c7935ede5531745dd25 (diff) | |
| download | android_external_wpa_supplicant_8-e415a15c75e59bb12c1d6f424ffa2f155ebdcd3a.tar.gz android_external_wpa_supplicant_8-e415a15c75e59bb12c1d6f424ffa2f155ebdcd3a.tar.bz2 android_external_wpa_supplicant_8-e415a15c75e59bb12c1d6f424ffa2f155ebdcd3a.zip | |
P2P: Increase Invitation Request timeouts
In noisy environment peer may take more time to send Invitation
Response so increase Invitation Response timeout to 500 ms in success
case and also increase Invitation Request action wait time to 500 ms.
This makes the Invitation Request case use the same timeout with GO
Negotiation.
CRs-Fixed: 538699
Git-commit: 63ce59dea8c6b458d9a0c24e91f971f461f17b79
Git-repo: git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Change-Id: Idd3dea0e7ed16cd7564b34dfe279a49f16f021d4
| -rw-r--r-- | src/p2p/p2p_invitation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/p2p_invitation.c b/src/p2p/p2p_invitation.c index 11a7727c..858898cf 100644 --- a/src/p2p/p2p_invitation.c +++ b/src/p2p/p2p_invitation.c @@ -507,7 +507,7 @@ int p2p_invite_send(struct p2p_data *p2p, struct p2p_device *dev, dev->invitation_reqs++; if (p2p_send_action(p2p, freq, dev->info.p2p_device_addr, p2p->cfg->dev_addr, dev->info.p2p_device_addr, - wpabuf_head(req), wpabuf_len(req), 200) < 0) { + wpabuf_head(req), wpabuf_len(req), 500) < 0) { wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Failed to send Action frame"); /* Use P2P find to recover and retry */ @@ -537,7 +537,7 @@ void p2p_invitation_req_cb(struct p2p_data *p2p, int success) */ p2p_set_state(p2p, P2P_INVITE); - p2p_set_timeout(p2p, 0, success ? 350000 : 100000); + p2p_set_timeout(p2p, 0, success ? 500000 : 100000); } |
