TDLS: Do not overwrite the reason code in the Tear Down Request
The reason code for the teardown request is overwritten for open
mode. This commit removes the code that does so by reverting parts
of commit 0cb12963b6
.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
4aa8186806
commit
55293aaf4e
1 changed files with 1 additions and 6 deletions
|
@ -698,13 +698,8 @@ int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr, u16 reason_code)
|
||||||
return -1;
|
return -1;
|
||||||
pos = rbuf;
|
pos = rbuf;
|
||||||
|
|
||||||
if (!wpa_tdls_get_privacy(sm) || !peer->tpk_set || !peer->tpk_success) {
|
if (!wpa_tdls_get_privacy(sm) || !peer->tpk_set || !peer->tpk_success)
|
||||||
if (reason_code != WLAN_REASON_DEAUTH_LEAVING) {
|
|
||||||
/* Overwrite the reason code */
|
|
||||||
reason_code = WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED;
|
|
||||||
}
|
|
||||||
goto skip_ies;
|
goto skip_ies;
|
||||||
}
|
|
||||||
|
|
||||||
ftie = (struct wpa_tdls_ftie *) pos;
|
ftie = (struct wpa_tdls_ftie *) pos;
|
||||||
ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION;
|
ftie->ie_type = WLAN_EID_FAST_BSS_TRANSITION;
|
||||||
|
|
Loading…
Reference in a new issue