aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-01-28 19:28:19 +0200
committerJouni Malinen <j@w1.fi>2011-03-06 14:54:52 +0200
commitb8fb017272ed4794339978c9fbc0e74571a44728 (patch)
tree7f31fe9df854bc90193d10339ecca26410e7b24c /src/rsn_supp
parent52c9e6f3f5554ead02739fff9ff4b857c2cfaea7 (diff)
downloadexternal_wpa_supplicant_8_ti-b8fb017272ed4794339978c9fbc0e74571a44728.zip
external_wpa_supplicant_8_ti-b8fb017272ed4794339978c9fbc0e74571a44728.tar.gz
external_wpa_supplicant_8_ti-b8fb017272ed4794339978c9fbc0e74571a44728.tar.bz2
TDLS: Add tdls_testing 0x400 for ignoring AP prohibit TDLS
Diffstat (limited to 'src/rsn_supp')
-rw-r--r--src/rsn_supp/tdls.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index a6e7f95..4ee3639 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -38,6 +38,7 @@
#define TDLS_TESTING_CONCURRENT_INIT BIT(7)
#define TDLS_TESTING_NO_TPK_EXPIRATION BIT(8)
#define TDLS_TESTING_DECLINE_RESP BIT(9)
+#define TDLS_TESTING_IGNORE_AP_PROHIBIT BIT(10)
unsigned int tdls_testing = 0;
#endif /* CONFIG_TDLS_TESTING */
@@ -1225,6 +1226,13 @@ static int wpa_tdls_process_tpk_m1(struct wpa_sm *sm, const u8 *src_addr,
peer->initiator = 1;
wpa_tdls_send_tpk_m1(sm, peer);
}
+
+ if ((tdls_testing & TDLS_TESTING_IGNORE_AP_PROHIBIT) &&
+ tdls_prohibited) {
+ wpa_printf(MSG_DEBUG, "TDLS: Testing - ignore AP prohibition "
+ "on TDLS");
+ tdls_prohibited = 0;
+ }
#endif /* CONFIG_TDLS_TESTING */
if (tdls_prohibited) {
@@ -1817,6 +1825,15 @@ int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr)
struct wpa_tdls_peer *peer;
int tdls_prohibited = sm->tdls_prohibited;
+#ifdef CONFIG_TDLS_TESTING
+ if ((tdls_testing & TDLS_TESTING_IGNORE_AP_PROHIBIT) &&
+ tdls_prohibited) {
+ wpa_printf(MSG_DEBUG, "TDLS: Testing - ignore AP prohibition "
+ "on TDLS");
+ tdls_prohibited = 0;
+ }
+#endif /* CONFIG_TDLS_TESTING */
+
if (tdls_prohibited) {
wpa_printf(MSG_DEBUG, "TDLS: TDLS is prohibited in this BSS - "
"reject request to start setup");