P2P: Increase the maximum number of PD Request retries
authorSunil Dutt <duttus@codeaurora.org>
Thu, 22 Nov 2012 22:57:59 +0000 (00:57 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 22 Nov 2012 23:15:51 +0000 (01:15 +0200)
Change the maximum retry limit from 10 to 120 to match the behavior
used with GO Negotiation Request frames when trying to start GO
Negotiation with a peer that does not acknowledge frames (e.g., due
to being in sleep or on another channel most of the time).

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

src/p2p/p2p_pd.c

index 96ea342..e40f2b7 100644 (file)
@@ -19,7 +19,7 @@
  * Number of retries to attempt for provision discovery requests
  * in case the peer is not listening.
  */
-#define MAX_PROV_DISC_REQ_RETRIES 10
+#define MAX_PROV_DISC_REQ_RETRIES 120
 
 
 static void p2p_build_wps_ie_config_methods(struct wpabuf *buf,