Lines Matching refs:hdrlen
72 unsigned int hdrlen; in ieee80211_wep_add_iv() local
80 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_add_iv()
82 memmove(newhdr, newhdr + IEEE80211_WEP_IV_LEN, hdrlen); in ieee80211_wep_add_iv()
87 return newhdr + hdrlen; in ieee80211_wep_add_iv()
89 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv()
90 return newhdr + hdrlen; in ieee80211_wep_add_iv()
99 unsigned int hdrlen; in ieee80211_wep_remove_iv() local
101 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_remove_iv()
102 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_remove_iv()
201 unsigned int hdrlen; in ieee80211_wep_decrypt() local
208 hdrlen = ieee80211_hdrlen(hdr->frame_control); in ieee80211_wep_decrypt()
209 if (skb->len < hdrlen + IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN) in ieee80211_wep_decrypt()
212 len = skb->len - hdrlen - IEEE80211_WEP_IV_LEN - IEEE80211_WEP_ICV_LEN; in ieee80211_wep_decrypt()
214 keyidx = skb->data[hdrlen + 3] >> 6; in ieee80211_wep_decrypt()
222 memcpy(rc4key, skb->data + hdrlen, 3); in ieee80211_wep_decrypt()
228 skb->data + hdrlen + in ieee80211_wep_decrypt()
236 memmove(skb->data + IEEE80211_WEP_IV_LEN, skb->data, hdrlen); in ieee80211_wep_decrypt()