From 74c2f174faa249b6376eebf070daee5c96377256 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 1 Nov 2013 13:01:27 +0200 Subject: [PATCH] AOSP: Change P2P_MAX_CLIENT_IDLE 10 --> 20 This came in as a part of this AOSP commit: commit 98f9e76624da6bb96edc1982c423e4a119c5170a Author: Dmitry Shmidt Date: Wed May 30 11:18:46 2012 -0700 wpa_supplicant: Update to Version 0.8.27 from BRCM - Fix crash during TRUE pbc overlap - Fix p2p_stop_find event - Avoid race condition in GO-NEG process if both peers enter p2p_connect at the same time - Retry assoc immediately on ASSOC-REJECT. Previously assoc was retried on authentication timeout (which occurs after 10secs). Now on assoc reject, we cancel the auth timer and then initiate a assoc scan. BUG: 6543705, 6427094 Change-Id: I4489fb14b6cead069f0d14fcbb9e2224f790d77b Signed-off-by: Dmitry Shmidt --- wpa_supplicant/p2p_supplicant.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 5c4f0d0a8..71790805f 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -48,7 +48,11 @@ * How many seconds to try to reconnect to the GO when connection in P2P client * role has been lost. */ +#ifdef ANDROID_P2P +#define P2P_MAX_CLIENT_IDLE 20 +#else #define P2P_MAX_CLIENT_IDLE 10 +#endif /* ANDROID_P2P */ #endif /* P2P_MAX_CLIENT_IDLE */ #ifndef P2P_MAX_INITIAL_CONN_WAIT -- 2.47.2