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>
This commit is contained in:
parent
9cd8859ed6
commit
f67d1a0099
1 changed files with 2 additions and 1 deletions
|
@ -2392,7 +2392,7 @@ skip_rsn:
|
||||||
wpa_printf(MSG_DEBUG, "TDLS: Sending TDLS Setup Confirm / "
|
wpa_printf(MSG_DEBUG, "TDLS: Sending TDLS Setup Confirm / "
|
||||||
"TPK Handshake Message 3");
|
"TPK Handshake Message 3");
|
||||||
if (wpa_tdls_send_tpk_m3(sm, src_addr, dtoken, lnkid, peer) < 0)
|
if (wpa_tdls_send_tpk_m3(sm, src_addr, dtoken, lnkid, peer) < 0)
|
||||||
goto error;
|
goto error_no_msg;
|
||||||
|
|
||||||
if (!peer->tpk_success) {
|
if (!peer->tpk_success) {
|
||||||
/*
|
/*
|
||||||
|
@ -2413,6 +2413,7 @@ skip_rsn:
|
||||||
error:
|
error:
|
||||||
wpa_tdls_send_error(sm, src_addr, WLAN_TDLS_SETUP_CONFIRM, dtoken, 1,
|
wpa_tdls_send_error(sm, src_addr, WLAN_TDLS_SETUP_CONFIRM, dtoken, 1,
|
||||||
status);
|
status);
|
||||||
|
error_no_msg:
|
||||||
wpa_tdls_disable_peer_link(sm, peer);
|
wpa_tdls_disable_peer_link(sm, peer);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue