Lines Matching refs:wh
222 struct ieee80211_frame *wh;
230 wh = mtod(m, struct ieee80211_frame *);
236 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2,
241 tid = ieee80211_gettid(wh);
248 ieee80211_notify_replay_failure(vap, wh, k, pn, tid);
311 ccmp_init_blocks(rijndael_ctx *ctx, struct ieee80211_frame *wh,
316 #define IS_QOS_DATA(wh) IEEE80211_QOS_HAS_SEQ(wh)
325 IEEE80211_ADDR_COPY(b0 + 2, wh->i_addr2);
344 aad[2] = wh->i_fc[0] & 0x8f; /* XXX magic #s */
345 aad[3] = wh->i_fc[1] & 0xc7; /* XXX magic #s */
347 memcpy(aad + 4, wh->i_addr1, 3 * IEEE80211_ADDR_LEN);
348 aad[22] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK;
360 if (IEEE80211_IS_DSTODS(wh)) {
362 ((struct ieee80211_frame_addr4 *)wh)->i_addr4);
363 if (IS_QOS_DATA(wh)) {
365 (struct ieee80211_qosframe_addr4 *) wh;
376 if (IS_QOS_DATA(wh)) {
378 (struct ieee80211_qosframe*) wh;
419 struct ieee80211_frame *wh;
428 wh = mtod(m, struct ieee80211_frame *);
430 ccmp_init_blocks(&ctx->cc_aes, wh, key->wk_keytsc,
565 struct ieee80211_frame *wh;
576 wh = mtod(m, struct ieee80211_frame *);
578 ccmp_init_blocks(&ctx->cc_aes, wh, pn, data_len, b0, aad, a, b);
637 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2,