diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2011-01-28 17:40:56 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-03-06 14:54:47 +0200 |
commit | fb12d186b6b12e2a81ee6d377273cd2cac817cdb (patch) | |
tree | 72fef640f45a8b05c759663afedca156f09ffa29 /src/rsn_supp | |
parent | 94377fbc52dcb54fb8ab76b722e7d947ca34ed08 (diff) | |
download | external_wpa_supplicant_8_ti-fb12d186b6b12e2a81ee6d377273cd2cac817cdb.zip external_wpa_supplicant_8_ti-fb12d186b6b12e2a81ee6d377273cd2cac817cdb.tar.gz external_wpa_supplicant_8_ti-fb12d186b6b12e2a81ee6d377273cd2cac817cdb.tar.bz2 |
TDLS: Add tdls_testing 0x200 for declining TDLS Setup Response
Diffstat (limited to 'src/rsn_supp')
-rw-r--r-- | src/rsn_supp/tdls.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 04f544e..125ae08 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -37,6 +37,7 @@ #define TDLS_TESTING_LONG_LIFETIME BIT(6) #define TDLS_TESTING_CONCURRENT_INIT BIT(7) #define TDLS_TESTING_NO_TPK_EXPIRATION BIT(8) +#define TDLS_TESTING_DECLINE_RESP BIT(9) unsigned int tdls_testing = 0; #endif /* CONFIG_TDLS_TESTING */ @@ -1517,6 +1518,14 @@ static int wpa_tdls_process_tpk_m2(struct wpa_sm *sm, const u8 *src_addr, goto error; } +#ifdef CONFIG_TDLS_TESTING + if (tdls_testing & TDLS_TESTING_DECLINE_RESP) { + wpa_printf(MSG_DEBUG, "TDLS: Testing - decline response"); + status = WLAN_STATUS_REQUEST_DECLINED; + goto error; + } +#endif /* CONFIG_TDLS_TESTING */ + if (kde.lnkid == NULL || kde.lnkid_len < 3 * ETH_ALEN) { wpa_printf(MSG_INFO, "TDLS: No valid Link Identifier IE in " "TPK M2"); |