]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Modify wait time in INVITE state based on Tx status of INV-REQ
authorVivek Natarajan <nataraja@qca.qualcomm.com>
Mon, 3 Jun 2013 18:30:34 +0000 (21:30 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 3 Jun 2013 18:30:34 +0000 (21:30 +0300)
In a noisy enviromment, some peers can be slow to respond to the
invitation request frames which may lead to unnecessary state timeout.
Increase this timeout to 350 ms to improve the probabilty of
successfully receiving the invitation response frames.

Signed-hostap: Vivek Natarajan <nataraja@qca.qualcomm.com>

src/p2p/p2p_invitation.c

index 293fef0c4ed83358128e542549633f95a33f56ce..6b3dafba2c9b89a2aa52b54d2d2781a85e7749f5 100644 (file)
@@ -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, 100000);
+       p2p_set_timeout(p2p, 0, success ? 350000 : 100000);
 }