projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4f15d
)
TDLS: Fix long frame test for teardown
author
Jouni Malinen
<jouni@qca.qualcomm.com>
Thu, 27 Oct 2011 20:09:23 +0000
(23:09 +0300)
committer
Jouni Malinen
<j@w1.fi>
Thu, 27 Oct 2011 20:09:23 +0000
(23:09 +0300)
src/rsn_supp/tdls.c
patch
|
blob
|
history
diff --git
a/src/rsn_supp/tdls.c
b/src/rsn_supp/tdls.c
index
0e98ae3
..
8eae9fc
100644
(file)
--- 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);