aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-27 14:04:12 +0200
committerJouni Malinen <j@w1.fi>2011-03-06 14:54:32 +0200
commit2a469a6b5633b0c610466313d6a3067ecbea4e2d (patch)
tree207fd6f9bdbff25a442222faffafd5a867dae7b7 /src/rsn_supp
parent1c0b2ad1ce5586b36c13e306be5a5100cd4c2831 (diff)
downloadexternal_wpa_supplicant_8_ti-2a469a6b5633b0c610466313d6a3067ecbea4e2d.zip
external_wpa_supplicant_8_ti-2a469a6b5633b0c610466313d6a3067ecbea4e2d.tar.gz
external_wpa_supplicant_8_ti-2a469a6b5633b0c610466313d6a3067ecbea4e2d.tar.bz2
TDLS: Add tdls_testing flag (bit 6) for testing long TPK lifetime
Diffstat (limited to 'src/rsn_supp')
-rw-r--r--src/rsn_supp/tdls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 150ce04..89ac905 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -34,6 +34,7 @@
#define TDLS_TESTING_SHORT_LIFETIME BIT(3)
#define TDLS_TESTING_WRONG_LIFETIME_RESP BIT(4)
#define TDLS_TESTING_WRONG_LIFETIME_CONF BIT(5)
+#define TDLS_TESTING_LONG_LIFETIME BIT(6)
unsigned int tdls_testing = 0;
#endif /* CONFIG_TDLS_TESTING */
@@ -944,6 +945,11 @@ skip_rsnie:
"lifetime");
peer->lifetime = 301;
}
+ if (tdls_testing & TDLS_TESTING_LONG_LIFETIME) {
+ wpa_printf(MSG_DEBUG, "TDLS: Testing - use long TPK "
+ "lifetime");
+ peer->lifetime = 0xffffffff;
+ }
#endif /* CONFIG_TDLS_TESTING */
pos = wpa_add_tdls_timeoutie(pos, (u8 *) &timeoutie,
sizeof(timeoutie), peer->lifetime);