Lines Matching refs:wh

299 	struct ieee80211_frame *wh;
315 wh = mtod(m, struct ieee80211_frame *);
317 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
319 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
341 wh = mtod(m, struct ieee80211_frame *);
343 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
347 wh->i_fc[0], wh->i_fc[1]);
352 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
353 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
354 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
357 bssid = wh->i_addr1;
359 bssid = wh->i_addr1;
369 bssid = wh->i_addr3;
391 !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
400 wh, "data", "not in RUN state (%s)",
409 ni = ieee80211_fakeup_adhoc_node(vap, wh->i_addr2);
418 IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
419 uint8_t tid = ieee80211_gettid(wh);
420 if (IEEE80211_QOS_HAS_SEQ(wh) &&
423 if (! ieee80211_check_rxseq(ni, wh, bssid))
430 hdrspace = ieee80211_hdrspace(ic, wh);
441 wh, "data", "incorrect dir 0x%x", dir);
468 if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
474 wh, "WEP", "%s", "PRIVACY off");
485 wh = mtod(m, struct ieee80211_frame *);
486 wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
496 qos = ieee80211_getqos(wh)[0];
503 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
510 wh = NULL; /* no longer valid, catch any uses */
602 wh, "data", "incorrect dir 0x%x", dir);
618 ether_sprintf(wh->i_addr2), rssi);
621 if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
623 wh, NULL, "%s", "WEP set but not permitted");
638 wh, "bad", "frame type 0x%x", type);
677 struct ieee80211_frame *wh;
684 wh = mtod(m0, struct ieee80211_frame *);
685 frm = (uint8_t *)&wh[1];
727 ieee80211_add_scan(vap, rxchan, &scan, wh,
732 if (!IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
746 ni = ieee80211_add_neighbor(vap, wh, &scan);
754 ieee80211_init_neighbor(ni, wh, &scan);
805 wh, NULL, "wrong state %s",
810 if (IEEE80211_IS_MULTICAST(wh->i_addr2)) {
813 wh, NULL, "%s", "not unicast");
848 wh, NULL,
855 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_INPUT, wh->i_addr2,
863 ieee80211_send_proberesp(vap, wh->i_addr2,
870 !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) {
872 wh, NULL, "%s", "unknown node");
874 } else if (!IEEE80211_ADDR_EQ(vap->iv_myaddr, wh->i_addr1) &&
875 !IEEE80211_IS_MULTICAST(wh->i_addr1)) {
877 wh, NULL, "%s", "not for us");
881 wh, NULL, "wrong state %s",
886 (void)ic->ic_recv_action(ni, wh, frm, efrm);
900 wh, NULL, "%s", "not handled");
906 wh, "mgt", "subtype 0x%x not handled", subtype);
920 struct ieee80211_frame *wh;
929 wh = mtod(m0, struct ieee80211_frame *);
946 wh, NULL, "%s", "not handled");
951 wh, "mgt", "subtype 0x%x not handled", subtype);