diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-10-27 23:09:23 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-27 23:09:23 +0300 |
commit | 5c1c940f1dec86a258f53304b26c0fa0de965b57 (patch) | |
tree | 498b681312055a6b5aff14bc847ed47bce007847 | |
parent | 2d4f15d6835bfc51ef00ded9ca0389c6c89d746c (diff) | |
download | external_wpa_supplicant_8_ti-5c1c940f1dec86a258f53304b26c0fa0de965b57.zip external_wpa_supplicant_8_ti-5c1c940f1dec86a258f53304b26c0fa0de965b57.tar.gz external_wpa_supplicant_8_ti-5c1c940f1dec86a258f53304b26c0fa0de965b57.tar.bz2 |
TDLS: Fix long frame test for teardown
-rw-r--r-- | src/rsn_supp/tdls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 0e98ae3..8eae9fc 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -702,10 +702,11 @@ int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr, u16 reason_code) ftie->ie_len += 170; *pos++ = 255; /* FTIE subelem */ *pos++ = 168; /* FTIE subelem length */ + pos += 168; } #endif /* CONFIG_TDLS_TESTING */ wpa_hexdump(MSG_DEBUG, "TDLS: FTIE for TDLS Teardown handshake", - (u8 *) ftie, sizeof(*ftie)); + (u8 *) ftie, pos - (u8 *) ftie); /* compute MIC before sending */ wpa_tdls_linkid(sm, peer, &lnkid); |