aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2015-12-10 12:56:07 +0200
committerIvan Kutepov <its.kutepov@gmail.com>2017-10-19 22:44:49 +0300
commitb7de80fb6ac0bf5324f3d69bdb641dc050136799 (patch)
tree397015a6872ce39dbaea3cfe11ccfe031be12dfc /src
parent12b919a0cccf4e00302b5e65d9b272dc2e9bbcd6 (diff)
downloadandroid_external_wpa_supplicant_8-b7de80fb6ac0bf5324f3d69bdb641dc050136799.tar.gz
android_external_wpa_supplicant_8-b7de80fb6ac0bf5324f3d69bdb641dc050136799.tar.bz2
android_external_wpa_supplicant_8-b7de80fb6ac0bf5324f3d69bdb641dc050136799.zip
TDLS: Ignore incoming TDLS Setup Response retriesreplicant-6.0-0004-rc1replicant-6.0-0003
The Setup Response timer is relatively fast (500 ms) and there are instances where it fires on the responder side after the initiator has already sent out the TDLS Setup Confirm frame. Prevent the processing of this stale TDLS Setup Response frame on the initiator side. Change-Id: I595f41dc803d6707ee8d0ea220f594cce750139a Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/rsn_supp/tdls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 4a323dd0..5f0a223b 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -2209,6 +2209,14 @@ static int wpa_tdls_process_tpk_m2(struct wpa_sm *sm, const u8 *src_addr,
"ignore TPK M2 from " MACSTR, MAC2STR(src_addr));
return -1;
}
+
+ if (peer->tpk_success) {
+ wpa_printf(MSG_INFO, "TDLS: Ignore incoming TPK M2 retry, from "
+ MACSTR " as TPK M3 was already sent",
+ MAC2STR(src_addr));
+ return 0;
+ }
+
wpa_tdls_tpk_retry_timeout_cancel(sm, peer, WLAN_TDLS_SETUP_REQUEST);
if (len < 3 + 2 + 1) {