diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-07-22 03:10:40 +0300 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-08-02 13:04:02 +0300 |
commit | 9d98704facd4288a0f04c51ea784e9a72cfec549 (patch) | |
tree | 422f0da54fddecbd4a375b01e227331e96e85738 | |
parent | 81c54f11a0026a8f08668e0d6c6f75f24cd4f5c8 (diff) | |
download | external_wpa_supplicant_8_ti-9d98704facd4288a0f04c51ea784e9a72cfec549.zip external_wpa_supplicant_8_ti-9d98704facd4288a0f04c51ea784e9a72cfec549.tar.gz external_wpa_supplicant_8_ti-9d98704facd4288a0f04c51ea784e9a72cfec549.tar.bz2 |
Increase P2P_MAX_CLIENT_IDLE to 20 secs (BRCM)
This is from Jithu Jance submission to hostap ML:
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.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
-rw-r--r-- | wpa_supplicant/p2p_supplicant.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index fa9627a..8117c74 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -46,7 +46,12 @@ * 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 |