diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-07-21 00:55:20 +0300 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-08-02 13:04:02 +0300 |
commit | c30103324efcc7d7203039ba1c7a57f706a663db (patch) | |
tree | 21f989e1f8a599e4a884990c73d524a301521384 /src/p2p | |
parent | 837bbbeac753065b907772576110ad76ff262d9c (diff) | |
download | external_wpa_supplicant_8_ti-c30103324efcc7d7203039ba1c7a57f706a663db.zip external_wpa_supplicant_8_ti-c30103324efcc7d7203039ba1c7a57f706a663db.tar.gz external_wpa_supplicant_8_ti-c30103324efcc7d7203039ba1c7a57f706a663db.tar.bz2 |
P2P: Decrease peer expiry time (BRCM)
Changed from 5 min to 30 secs probably in order
to avoid stale peers appearing in the Android UI.
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/p2p.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index f55fa6d..5dc874f 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -42,7 +42,11 @@ static void p2p_scan_timeout(void *eloop_ctx, void *timeout_ctx); * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer * entries will be removed */ +#ifdef ANDROID_P2P +#define P2P_PEER_EXPIRATION_AGE 30 +#else #define P2P_PEER_EXPIRATION_AGE 300 +#endif #define P2P_PEER_EXPIRATION_INTERVAL (P2P_PEER_EXPIRATION_AGE / 2) |