]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Increase Invitation Request timeouts
authorSwaroop Golti <sgolti@qti.qualcomm.com>
Sun, 6 Oct 2013 01:14:33 +0000 (18:14 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 6 Oct 2013 01:14:33 +0000 (18:14 -0700)
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.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/p2p/p2p_invitation.c

index 6b3dafba2c9b89a2aa52b54d2d2781a85e7749f5..687b9431bfb9d4ea6817e43fcad6aaffc0f2114d 100644 (file)
@@ -466,7 +466,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) {
                p2p_dbg(p2p, "Failed to send Action frame");
                /* Use P2P find to recover and retry */
                p2p_set_timeout(p2p, 0, 0);
@@ -492,7 +492,7 @@ void p2p_invitation_req_cb(struct p2p_data *p2p, int success)
         * channel.
         */
        p2p_set_state(p2p, P2P_INVITE);
-       p2p_set_timeout(p2p, 0, success ? 350000 : 100000);
+       p2p_set_timeout(p2p, 0, success ? 500000 : 100000);
 }