Lines Matching refs:wh

417 	struct ieee80211_frame *wh;  in wds_input()  local
432 wh = mtod(m, struct ieee80211_frame *); in wds_input()
434 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in wds_input()
436 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */ in wds_input()
457 wh = mtod(m, struct ieee80211_frame *); in wds_input()
459 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) in wds_input()
462 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != in wds_input()
466 wh->i_fc[0], wh->i_fc[1]); in wds_input()
471 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in wds_input()
472 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; in wds_input()
473 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in wds_input()
484 if (!IEEE80211_ADDR_EQ(wh->i_addr1, vap->iv_myaddr) && in wds_input()
485 !IEEE80211_ADDR_EQ(wh->i_addr1, ifp->if_broadcastaddr)) { in wds_input()
488 wh->i_addr1, NULL, "%s", "not to bss"); in wds_input()
495 uint8_t tid = ieee80211_gettid(wh); in wds_input()
496 if (IEEE80211_QOS_HAS_SEQ(wh) && in wds_input()
499 if (! ieee80211_check_rxseq(ni, wh, wh->i_addr1)) in wds_input()
504 hdrspace = ieee80211_hdrspace(ic, wh); in wds_input()
515 wh, "data", "incorrect dir 0x%x", dir); in wds_input()
524 wh, "data", "%s", "not legacy wds"); in wds_input()
549 if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) { in wds_input()
555 wh, "WEP", "%s", "PRIVACY off"); in wds_input()
566 wh = mtod(m, struct ieee80211_frame *); in wds_input()
567 wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED; in wds_input()
578 ((struct ieee80211_qosframe_addr4 *)wh)->i_qos[0] : in wds_input()
579 ((struct ieee80211_qosframe *)wh)->i_qos[0]; in wds_input()
586 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { in wds_input()
593 wh = NULL; /* no longer valid, catch any uses */ in wds_input()
682 wh, "data", "incorrect dir 0x%x", dir); in wds_input()
697 ether_sprintf(wh->i_addr2), rssi); in wds_input()
700 if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) { in wds_input()
702 wh, NULL, "%s", "WEP set but not permitted"); in wds_input()
716 wh, "bad", "frame type 0x%x", type); in wds_input()
737 struct ieee80211_frame *wh; in wds_recv_mgmt() local
740 wh = mtod(m0, struct ieee80211_frame *); in wds_recv_mgmt()
741 frm = (u_int8_t *)&wh[1]; in wds_recv_mgmt()
748 wh, NULL, "%s", "unknown node"); in wds_recv_mgmt()
750 } else if (!IEEE80211_ADDR_EQ(vap->iv_myaddr, wh->i_addr1)) { in wds_recv_mgmt()
753 wh, NULL, "%s", "not for us"); in wds_recv_mgmt()
757 wh, NULL, "wrong state %s", in wds_recv_mgmt()
762 (void)ic->ic_recv_action(ni, wh, frm, efrm); in wds_recv_mgmt()
779 wh, NULL, "%s", "not handled"); in wds_recv_mgmt()
785 wh, "mgt", "subtype 0x%x not handled", subtype); in wds_recv_mgmt()