aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/ccmp.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-21 11:18:57 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-21 11:18:57 (GMT)
commit81d59891769e4e9335025e304bb4b4bb1fcd65b4 (patch)
treef2895b769f9d1c4affc6d83a064b5f85f9abfe7d /wlantest/ccmp.c
parent0778c8f5ed65c9699862407e321e1ef0644cb3c6 (diff)
downloadhostap-81d59891769e4e9335025e304bb4b4bb1fcd65b4.zip
hostap-81d59891769e4e9335025e304bb4b4bb1fcd65b4.tar.gz
hostap-81d59891769e4e9335025e304bb4b4bb1fcd65b4.tar.bz2
wlantest: Fix CCMP header generation to include reserved field
Diffstat (limited to 'wlantest/ccmp.c')
-rw-r--r--wlantest/ccmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wlantest/ccmp.c b/wlantest/ccmp.c
index 6b2b45e..12add4d 100644
--- a/wlantest/ccmp.c
+++ b/wlantest/ccmp.c
@@ -251,6 +251,7 @@ u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos,
pos = crypt + hdrlen;
*pos++ = pn[5]; /* PN0 */
*pos++ = pn[4]; /* PN1 */
+ *pos++ = 0x00; /* Rsvd */
*pos++ = 0x20 | (keyid << 6);
*pos++ = pn[3]; /* PN2 */
*pos++ = pn[2]; /* PN3 */