wlantest: Fix CCMP header generation to include reserved field
This commit is contained in:
parent
0778c8f5ed
commit
81d5989176
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ u8 * ccmp_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos,
|
||||||
pos = crypt + hdrlen;
|
pos = crypt + hdrlen;
|
||||||
*pos++ = pn[5]; /* PN0 */
|
*pos++ = pn[5]; /* PN0 */
|
||||||
*pos++ = pn[4]; /* PN1 */
|
*pos++ = pn[4]; /* PN1 */
|
||||||
|
*pos++ = 0x00; /* Rsvd */
|
||||||
*pos++ = 0x20 | (keyid << 6);
|
*pos++ = 0x20 | (keyid << 6);
|
||||||
*pos++ = pn[3]; /* PN2 */
|
*pos++ = pn[3]; /* PN2 */
|
||||||
*pos++ = pn[2]; /* PN3 */
|
*pos++ = pn[2]; /* PN3 */
|
||||||
|
|
Loading…
Reference in a new issue