From: Jouni Malinen Date: Thu, 27 Oct 2011 20:09:23 +0000 (+0300) Subject: TDLS: Fix long frame test for teardown X-Git-Tag: hostap-1-bp~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1c940f1dec86a258f53304b26c0fa0de965b57;p=thirdparty%2Fhostap.git TDLS: Fix long frame test for teardown --- diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 0e98ae348..8eae9fc59 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);