aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2015-10-20 04:20:51 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-26 20:54:39 (GMT)
commitf67d1a009963e9d7c3071950e77237a9d290e4eb (patch)
treea78aba1bee5ad1cd698e9f61ac4dbbecd3b8124c /src/rsn_supp
parent9cd8859ed6e8b3b70c4212127f921c51ba0661b3 (diff)
downloadhostap-f67d1a009963e9d7c3071950e77237a9d290e4eb.zip
hostap-f67d1a009963e9d7c3071950e77237a9d290e4eb.tar.gz
hostap-f67d1a009963e9d7c3071950e77237a9d290e4eb.tar.bz2
TDLS: Do not send error case of TPK M3 if TX fails
There is no point in sending TPK M3 (TDLS Setup Confirm) with a failure status if the first transmission attempt fails. Instead, just return a failure by disabling the link rather than retransmitting the TPK M3 frame with an error status. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/rsn_supp')
-rw-r--r--src/rsn_supp/tdls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 2b47ff8..48752d7 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -2392,7 +2392,7 @@ skip_rsn:
wpa_printf(MSG_DEBUG, "TDLS: Sending TDLS Setup Confirm / "
"TPK Handshake Message 3");
if (wpa_tdls_send_tpk_m3(sm, src_addr, dtoken, lnkid, peer) < 0)
- goto error;
+ goto error_no_msg;
if (!peer->tpk_success) {
/*
@@ -2413,6 +2413,7 @@ skip_rsn:
error:
wpa_tdls_send_error(sm, src_addr, WLAN_TDLS_SETUP_CONFIRM, dtoken, 1,
status);
+error_no_msg:
wpa_tdls_disable_peer_link(sm, peer);
return -1;
}