From patchwork Mon May 21 05:16:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Set default P2P_MAX_CLIENT_IDLE to 20 Date: Sun, 20 May 2012 19:16:33 -0000 From: Jithu Jance X-Patchwork-Id: 160314 Message-Id: <25A448014331D04F82E3035BCF9620AF06E5ED@SJEXCHMB09.corp.ad.broadcom.com> To: "hostap@lists.shmoo.com" Consider the disconnect event generated due to EAP-FAILURE(after WPS handshake) during the P2P connection. In this disconnect context, the group idle timer will be set to 10 and assoc retry starts. If the connection doesn't go through in the first attempt the group will be removed. This is because the authentication timeout happens at 10secs and the assoc will be retried only after that. I feel setting to twenty seconds will help to retry at least two times. Please see whether it is okay. Setting authentication timeout to 5secs is also another option. But not sure whether there are some systems requiring 10secs time. [PATCH] Set default P2P_MAX_CLIENT_IDLE to 20 Signed-hostap: Jithu Jance --- wpa_supplicant/p2p_supplicant.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 44aadf1..4054b3b 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -44,7 +44,7 @@ * How many seconds to try to reconnect to the GO when connection in P2P client * role has been lost. */ -#define P2P_MAX_CLIENT_IDLE 10 +#define P2P_MAX_CLIENT_IDLE 20 #endif /* P2P_MAX_CLIENT_IDLE */ #ifndef P2P_MAX_INITIAL_CONN_WAIT