Parcourir la source

P2P: Modify wait time in INVITE state based on Tx status of INV-REQ

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>
Vivek Natarajan il y a 12 ans
Parent
commit
8f395284bd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/p2p/p2p_invitation.c

+ 1 - 1
src/p2p/p2p_invitation.c

@@ -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);
 }