]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AOSP: Change P2P_MAX_CLIENT_IDLE 10 --> 20
authorJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 11:01:27 +0000 (13:01 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 14:36:32 +0000 (16:36 +0200)
This came in as a part of this AOSP commit:

commit 98f9e76624da6bb96edc1982c423e4a119c5170a
Author: Dmitry Shmidt <dimitrysh@google.com>
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: 65437056427094

    Change-Id: I4489fb14b6cead069f0d14fcbb9e2224f790d77b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wpa_supplicant/p2p_supplicant.c

index 5c4f0d0a8f1ea97fbd46fbf23bd6667c0d6be888..71790805fd5df487aacbd8394e31c01e7f0bc101 100644 (file)
  * 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