Lines Matching refs:hdrlen
75 static int wep_encrypt(struct ieee80211_key *, struct mbuf *, int hdrlen);
76 static int wep_decrypt(struct ieee80211_key *, struct mbuf *, int hdrlen);
185 int hdrlen; in wep_encap() local
188 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in wep_encap()
207 ovbcopy(ivp + wep.ic_header, ivp, hdrlen); in wep_encap()
208 ivp += hdrlen; in wep_encap()
216 !wep_encrypt(k, m, hdrlen)) in wep_encap()
238 wep_decap(struct ieee80211_key *k, struct mbuf *m, int hdrlen) in wep_decap() argument
255 !wep_decrypt(k, m, hdrlen)) { in wep_decap()
270 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap()
345 wep_encrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen) in wep_encrypt() argument
362 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_encrypt()
375 off = hdrlen + wep.ic_header; in wep_encrypt()
428 wep_decrypt(struct ieee80211_key *key, struct mbuf *m0, int hdrlen) in wep_decrypt() argument
445 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_decrypt()
458 off = hdrlen + wep.ic_header; in wep_decrypt()