Lines Matching refs:wh

183 	struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
187 uint8_t more_frag = wh->i_fc[1] & IEEE80211_FC1_MORE_FRAG;
190 KASSERT(!IEEE80211_IS_MULTICAST(wh->i_addr1), ("multicast fragm?"));
192 rxseq = le16toh(*(uint16_t *)wh->i_seq);
231 IEEE80211_ADDR_EQ(wh->i_addr1, lwh->i_addr1) &&
232 IEEE80211_ADDR_EQ(wh->i_addr2, lwh->i_addr2)) {
235 *(uint16_t *) lwh->i_seq = *(uint16_t *) wh->i_seq;
306 struct ieee80211_qosframe_addr4 wh;
310 KASSERT(hdrlen <= sizeof(wh),
311 ("hdrlen %d > max %zd", hdrlen, sizeof(wh)));
319 memcpy(&wh, mtod(m, caddr_t), hdrlen);
333 switch (wh.i_fc[1] & IEEE80211_FC1_DIR_MASK) {
335 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
336 IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
339 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr3);
340 IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
343 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
344 IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr3);
347 IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr3);
348 IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr4);
497 struct ieee80211_frame *wh;
500 wh = mtod(m, struct ieee80211_frame *);
501 frm = (uint8_t *)&wh[1];
587 IEEE80211_MSG_ELEMID, wh, "ERP",
643 wh, "unhandled",
678 wh, NULL, "for off-channel %u (bchan=%u)",
687 wh, NULL, "bogus beacon interval (%d TU)",
741 struct ieee80211_frame *wh;
750 wh = mtod(m, struct ieee80211_frame *);
751 frm = (u_int8_t *)&wh[1];
826 wh, NULL, "not implemented yet, act=0x%02X",
833 if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
834 IEEE80211_IS_MULTICAST(wh->i_addr2))
873 const struct ieee80211_frame *wh)
876 return wh->i_addr2;
877 if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) != IEEE80211_FC1_DIR_NODS)
878 return wh->i_addr1;
879 if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) == IEEE80211_FC0_SUBTYPE_PS_POLL)
880 return wh->i_addr1;
881 return wh->i_addr3;
901 const struct ieee80211_frame *wh,
911 ether_sprintf(ieee80211_getbssid(vap, wh)), buf);
930 const struct ieee80211_frame *wh,
936 ether_sprintf(ieee80211_getbssid(vap, wh)));
938 ieee80211_mgt_subtype_name(wh->i_fc[0]));
947 const struct ieee80211_frame *wh,
953 ether_sprintf(ieee80211_getbssid(vap, wh)));