TDLS: Add tdls_testing flag (bit 6) for testing long TPK lifetime
This commit is contained in:
parent
1c0b2ad1ce
commit
2a469a6b56
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
||||||
#define TDLS_TESTING_SHORT_LIFETIME BIT(3)
|
#define TDLS_TESTING_SHORT_LIFETIME BIT(3)
|
||||||
#define TDLS_TESTING_WRONG_LIFETIME_RESP BIT(4)
|
#define TDLS_TESTING_WRONG_LIFETIME_RESP BIT(4)
|
||||||
#define TDLS_TESTING_WRONG_LIFETIME_CONF BIT(5)
|
#define TDLS_TESTING_WRONG_LIFETIME_CONF BIT(5)
|
||||||
|
#define TDLS_TESTING_LONG_LIFETIME BIT(6)
|
||||||
unsigned int tdls_testing = 0;
|
unsigned int tdls_testing = 0;
|
||||||
#endif /* CONFIG_TDLS_TESTING */
|
#endif /* CONFIG_TDLS_TESTING */
|
||||||
|
|
||||||
|
@ -944,6 +945,11 @@ skip_rsnie:
|
||||||
"lifetime");
|
"lifetime");
|
||||||
peer->lifetime = 301;
|
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 */
|
#endif /* CONFIG_TDLS_TESTING */
|
||||||
pos = wpa_add_tdls_timeoutie(pos, (u8 *) &timeoutie,
|
pos = wpa_add_tdls_timeoutie(pos, (u8 *) &timeoutie,
|
||||||
sizeof(timeoutie), peer->lifetime);
|
sizeof(timeoutie), peer->lifetime);
|
||||||
|
|
Loading…
Reference in a new issue