Lines Matching refs:wh

64 	struct ieee80211_frame *wh;
86 wh = (struct ieee80211_frame *)mp->b_rptr;
88 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
90 hdrspace = ieee80211_hdrspace(ic, wh); /* optimize */
111 wh = (struct ieee80211_frame *)mp->b_rptr;
112 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
115 "discard pkt with wrong version %x", wh->i_fc[0]);
119 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
120 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
121 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
127 bssid = wh->i_addr2;
134 bssid = wh->i_addr1;
136 bssid = wh->i_addr1;
144 bssid = wh->i_addr3;
165 !IEEE80211_ADDR_EQ(wh->i_addr2, in->in_macaddr)) {
171 wh->i_addr2);
184 if (IEEE80211_QOS_HAS_SEQ(wh)) {
185 tid = ((struct ieee80211_qosframe *)wh)->
193 rxseq = LE_16(*(uint16_t *)wh->i_seq);
195 (wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
217 hdrspace = ieee80211_hdrspace(ic, wh);
231 if (IEEE80211_IS_MULTICAST(wh->i_addr1) &&
232 IEEE80211_ADDR_EQ(wh->i_addr3, ic->ic_macaddr)) {
283 if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
299 wh = (struct ieee80211_frame *)mp->b_rptr;
300 wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
310 ((struct ieee80211_qosframe_addr4 *)wh)->i_qos[0] :
311 ((struct ieee80211_qosframe *)wh)->i_qos[0];
319 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
326 wh = NULL; /* no longer valid, catch any uses */
357 if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
380 hdrspace = ieee80211_hdrspace(ic, wh);
386 wh = (struct ieee80211_frame *)mp->b_rptr;
387 wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
429 struct ieee80211_frame *wh = (struct ieee80211_frame *)mp->b_rptr;
436 ASSERT(!IEEE80211_IS_MULTICAST(wh->i_addr1));
437 more_frag = wh->i_fc[1] & IEEE80211_FC1_MORE_FRAG;
438 rxseq = LE_16(*(uint16_t *)wh->i_seq);
481 !IEEE80211_ADDR_EQ(wh->i_addr1, lwh->i_addr1) ||
482 !IEEE80211_ADDR_EQ(wh->i_addr2, lwh->i_addr2)) {
503 *(uint16_t *)lwh->i_seq = *(uint16_t *)wh->i_seq;
554 ieee80211_auth_open(ieee80211com_t *ic, struct ieee80211_frame *wh,
578 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
611 ieee80211_auth_shared(ieee80211com_t *ic, struct ieee80211_frame *wh,
687 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
784 const struct ieee80211_frame *wh)
830 struct ieee80211_frame *wh;
835 wh = (struct ieee80211_frame *)mp->b_rptr;
836 frm = (uint8_t *)&wh[1];
1042 IEEE80211_ADDR_EQ(wh->i_addr2, in->in_bssid))) {
1055 ieee80211_macaddr_sprintf(wh->i_addr2),
1069 ieee80211_parse_wmeparams(ic, scan.wme, wh) > 0) {
1093 ieee80211_add_scan(ic, &scan, wh, subtype, rssi,
1102 ieee80211_add_scan(ic, &scan, wh, subtype, rssi, rstamp);
1108 if (!IEEE80211_ADDR_EQ(wh->i_addr2, in->in_macaddr)) {
1112 in = ieee80211_add_neighbor(ic, wh, &scan);
1120 ieee80211_init_neighbor(in, wh, &scan);
1138 struct ieee80211_frame *wh;
1156 wh = (struct ieee80211_frame *)mp->b_rptr;
1157 frm = (uint8_t *)&wh[1];
1168 IEEE80211_IS_MULTICAST(wh->i_addr2)) {
1214 in = ieee80211_tmp_node(ic, wh->i_addr2);
1216 } else if (!IEEE80211_ADDR_EQ(wh->i_addr2,
1225 wh->i_addr2);
1232 ieee80211_macaddr_sprintf(wh->i_addr2));
1278 ieee80211_macaddr_sprintf(wh->i_addr2), algo, seq);
1288 ieee80211_auth_shared(ic, wh, frm + 6, efrm, in,
1292 ieee80211_auth_open(ic, wh, in, seq, status);
1328 in = ieee80211_find_node(&ic->ic_scan, wh->i_addr2);
1413 ieee80211_parse_wmeparams(ic, wme, wh) >= 0) {
1490 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
1515 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);