Lines Matching refs:hdrlen
70 unsigned int hdrlen; in ieee80211_wep_add_iv() local
78 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv()
80 memmove(newhdr, newhdr + IEEE80211_WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv()
85 return newhdr + hdrlen; in ieee80211_wep_add_iv()
87 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv()
88 return newhdr + hdrlen; in ieee80211_wep_add_iv()
97 unsigned int hdrlen; in ieee80211_wep_remove_iv() local
99 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv()
100 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv()
199 unsigned int hdrlen; in ieee80211_wep_decrypt() local
206 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_decrypt()
207 if (skb->len < hdrlen + IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN) in ieee80211_wep_decrypt()
210 len = skb->len - hdrlen - IEEE80211_WEP_IV_LEN - IEEE80211_WEP_ICV_LEN; in ieee80211_wep_decrypt()
212 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt()
220 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt()
226 skb->data + hdrlen + in ieee80211_wep_decrypt()
234 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_decrypt()