Lines Matching refs:wh
413 struct ieee80211_frame *wh; in wds_input() local
438 wh = mtod(m, struct ieee80211_frame *); in wds_input()
440 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in wds_input()
442 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */ in wds_input()
463 wh = mtod(m, struct ieee80211_frame *); in wds_input()
465 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) in wds_input()
468 if (!IEEE80211_IS_FC0_CHECK_VER(wh, IEEE80211_FC0_VERSION_0)) { in wds_input()
471 wh->i_fc[0], wh->i_fc[1]); in wds_input()
476 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; in wds_input()
477 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; in wds_input()
478 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in wds_input()
489 if (!IEEE80211_ADDR_EQ(wh->i_addr1, vap->iv_myaddr) && in wds_input()
490 !IEEE80211_ADDR_EQ(wh->i_addr1, ifp->if_broadcastaddr)) { in wds_input()
493 wh->i_addr1, NULL, "%s", "not to bss"); in wds_input()
500 uint8_t tid = ieee80211_gettid(wh); in wds_input()
501 if (IEEE80211_QOS_HAS_SEQ(wh) && in wds_input()
504 if (! ieee80211_check_rxseq(ni, wh, wh->i_addr1, rxs)) in wds_input()
509 hdrspace = ieee80211_hdrspace(ic, wh); in wds_input()
520 wh, "data", "incorrect dir 0x%x", dir); in wds_input()
529 wh, "data", "%s", "not legacy wds"); in wds_input()
554 if (is_hw_decrypted || IEEE80211_IS_PROTECTED(wh)) { in wds_input()
560 wh, "WEP", "%s", "PRIVACY off"); in wds_input()
570 wh = mtod(m, struct ieee80211_frame *); in wds_input()
571 wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED; in wds_input()
582 qos = ieee80211_getqos(wh)[0]; in wds_input()
589 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { in wds_input()
596 wh = NULL; /* no longer valid, catch any uses */ in wds_input()
692 wh, "data", "incorrect dir 0x%x", dir); in wds_input()
707 ether_sprintf(wh->i_addr2), rssi); in wds_input()
710 if (IEEE80211_IS_PROTECTED(wh)) { in wds_input()
712 wh, NULL, "%s", "WEP set but not permitted"); in wds_input()
726 wh, "bad", "frame type 0x%x", type); in wds_input()
747 struct ieee80211_frame *wh; in wds_recv_mgmt() local
750 wh = mtod(m0, struct ieee80211_frame *); in wds_recv_mgmt()
751 frm = (u_int8_t *)&wh[1]; in wds_recv_mgmt()
758 wh, NULL, "%s", "unknown node"); in wds_recv_mgmt()
760 } else if (!IEEE80211_ADDR_EQ(vap->iv_myaddr, wh->i_addr1)) { in wds_recv_mgmt()
763 wh, NULL, "%s", "not for us"); in wds_recv_mgmt()
767 wh, NULL, "wrong state %s", in wds_recv_mgmt()
772 (void)ic->ic_recv_action(ni, wh, frm, efrm); in wds_recv_mgmt()
789 wh, NULL, "%s", "not handled"); in wds_recv_mgmt()
795 wh, "mgt", "subtype 0x%x not handled", subtype); in wds_recv_mgmt()