Home | History | Annotate | Download | only in net80211

Lines Matching defs:wh

204 	struct ieee80211_frame *wh;
212 wh = mtod(m, struct ieee80211_frame *);
220 ether_sprintf(wh->i_addr2));
229 ieee80211_notify_replay_failure(ctx->cc_ic, wh, k, pn);
284 ccmp_init_blocks(struct aesenc *ctx, struct ieee80211_frame *wh,
292 #define IS_4ADDRESS(wh) \
293 ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS)
294 #define IS_QOS_DATA(wh) ieee80211_has_qos(wh)
297 IEEE80211_ADDR_COPY(nonce + 1, wh->i_addr2);
305 ad[0] = wh->i_fc[0] & 0x8f; /* XXX magic #s */
306 ad[1] = wh->i_fc[1] & 0xc7; /* XXX magic #s */
308 memcpy(ad + 2, wh->i_addr1, 3 * IEEE80211_ADDR_LEN);
309 ad[20] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK;
320 if (IS_4ADDRESS(wh)) {
322 ((const struct ieee80211_frame_addr4 *)wh)->i_addr4);
323 if (IS_QOS_DATA(wh)) {
325 (const struct ieee80211_qosframe_addr4 *)wh;
335 if (IS_QOS_DATA(wh)) {
337 (const struct ieee80211_qosframe *)wh;
360 struct ieee80211_frame *wh;
371 wh = mtod(m, struct ieee80211_frame *);
373 ccmp_init_blocks(&ctx->cc_aes, wh, key->wk_keytsc, data_len, &aes_ccm);
384 struct ieee80211_frame *wh;
396 wh = mtod(m, struct ieee80211_frame *);
398 ccmp_init_blocks(&ctx->cc_aes, wh, pn, data_len, &aes_ccm);
405 ether_sprintf(wh->i_addr2));