Lines Matching defs:hdr
86 static int ccmp_init_iv_and_aad(struct ieee80211_hdr *hdr,
94 fc = le16_to_cpu(hdr->frame_control);
95 a4_included = ieee80211_has_a4(hdr->frame_control);
103 pos = (u8 *)&hdr->addr4;
120 memcpy(iv + 2, hdr->addr2, ETH_ALEN);
130 pos = (u8 *)hdr;
133 memcpy(&aad[2], &hdr->addr1, ETH_ALEN);
134 memcpy(&aad[8], &hdr->addr2, ETH_ALEN);
135 memcpy(&aad[14], &hdr->addr3, ETH_ALEN);
136 pos = (u8 *)&hdr->seq_ctrl;
141 memcpy(aad + 22, hdr->addr4, ETH_ALEN);
155 struct ieee80211_hdr *hdr;
184 hdr = (struct ieee80211_hdr *)skb->data;
197 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad);
222 struct ieee80211_hdr *hdr;
232 hdr = (struct ieee80211_hdr *)skb->data;
238 hdr->addr2);
252 hdr->addr2, keyidx);
280 aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad);
296 hdr->addr2);
304 /* Remove hdr and MIC */