Lines Matching refs:hdrlen
258 int hdrlen = 24; in michael_mic_hdr() local
273 hdrlen += ETH_ALEN; in michael_mic_hdr()
283 const u8 *qos = ((const u8 *) hdr11) + hdrlen; in michael_mic_hdr()
438 u8 * tkip_encrypt(const u8 *tk, u8 *frame, size_t len, size_t hdrlen, u8 *qos, in tkip_encrypt() argument
452 if (len < sizeof(*hdr) || len < hdrlen) in tkip_encrypt()
459 michael_mic(mic_key, michael_hdr, frame + hdrlen, len - hdrlen, mic); in tkip_encrypt()
472 os_memcpy(crypt, frame, hdrlen); in tkip_encrypt()
473 pos = crypt + hdrlen; in tkip_encrypt()
482 os_memcpy(pos, frame + hdrlen, len - hdrlen); in tkip_encrypt()
483 os_memcpy(pos + len - hdrlen, mic, sizeof(mic)); in tkip_encrypt()
484 WPA_PUT_LE32(pos + len - hdrlen + sizeof(mic), in tkip_encrypt()
485 ieee80211_crc32(pos, len - hdrlen + sizeof(mic))); in tkip_encrypt()
486 wep_crypt(rc4key, pos, len - hdrlen + sizeof(mic) + 4); in tkip_encrypt()