Lines Matching refs:hdr_len
153 static int lib80211_ccmp_hdr(struct sk_buff *skb, int hdr_len, in lib80211_ccmp_hdr() argument
160 if (skb_headroom(skb) < CCMP_HDR_LEN || skb->len < hdr_len) in lib80211_ccmp_hdr()
167 memmove(pos, pos + CCMP_HDR_LEN, hdr_len); in lib80211_ccmp_hdr()
168 pos += hdr_len; in lib80211_ccmp_hdr()
190 static int lib80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_encrypt() argument
201 if (skb_tailroom(skb) < CCMP_MIC_LEN || skb->len < hdr_len) in lib80211_ccmp_encrypt()
204 data_len = skb->len - hdr_len; in lib80211_ccmp_encrypt()
205 len = lib80211_ccmp_hdr(skb, hdr_len, NULL, 0, priv); in lib80211_ccmp_encrypt()
220 sg_set_buf(&sg[1], skb->data + hdr_len + CCMP_HDR_LEN, in lib80211_ccmp_encrypt()
254 static int lib80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in lib80211_ccmp_decrypt() argument
265 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN; in lib80211_ccmp_decrypt()
267 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in lib80211_ccmp_decrypt()
273 pos = skb->data + hdr_len; in lib80211_ccmp_decrypt()
340 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in lib80211_ccmp_decrypt()