Lines Matching defs:wh
481 struct ieee80211_frame *wh;
507 wh = mtod(m, struct ieee80211_frame *);
509 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
511 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */
533 wh = mtod(m, struct ieee80211_frame *);
535 if (!IEEE80211_IS_FC0_CHECK_VER(wh, IEEE80211_FC0_VERSION_0)) {
538 wh->i_fc[0], wh->i_fc[1]);
543 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
544 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
545 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
548 bssid = wh->i_addr1;
550 bssid = wh->i_addr1;
560 bssid = wh->i_addr3;
579 uint8_t tid = ieee80211_gettid(wh);
580 if (IEEE80211_QOS_HAS_SEQ(wh) &&
583 if (! ieee80211_check_rxseq(ni, wh, bssid, rxs))
590 hdrspace = ieee80211_hdrspace(ic, wh);
604 IEEE80211_MSG_INPUT, wh, "data",
609 IEEE80211_MSG_WDS, wh,
619 wh, "data", "%s", "unknown src");
620 ieee80211_send_error(ni, wh->i_addr2,
628 wh, "data", "%s", "unassoc src");
640 if (((wh->i_fc[1] & IEEE80211_FC1_PWR_MGT) ^
643 wh->i_fc[1] & IEEE80211_FC1_PWR_MGT);
653 IEEE80211_MSG_WDS, wh,
685 if (is_hw_decrypted || IEEE80211_IS_PROTECTED(wh)) {
691 wh, "WEP", "%s", "PRIVACY off");
701 wh = mtod(m, struct ieee80211_frame *);
702 wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
713 qos = ieee80211_getqos(wh)[0];
720 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
727 wh = NULL; /* no longer valid, catch any uses */
824 wh, "mgt", "incorrect dir 0x%x", dir);
835 if (IEEE80211_IS_MULTICAST(wh->i_addr2)) {
838 wh, NULL, "source is multicast: %s",
839 ether_sprintf(wh->i_addr2));
848 ether_sprintf(wh->i_addr2), rssi);
851 if (IEEE80211_IS_PROTECTED(wh)) {
858 wh, NULL,
868 wh, NULL, "%s", "WEP set but PRIVACY off");
872 hdrspace = ieee80211_hdrspace(ic, wh);
877 wh = mtod(m, struct ieee80211_frame *);
878 wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
899 wh, "bad", "frame type 0x%x", type);
915 hostap_auth_open(struct ieee80211_node *ni, struct ieee80211_frame *wh,
937 ieee80211_send_error(ni, wh->i_addr2,
948 ni = ieee80211_dup_bss(vap, wh->i_addr2);
993 hostap_auth_shared(struct ieee80211_node *ni, struct ieee80211_frame *wh,
1078 ni = ieee80211_dup_bss(vap, wh->i_addr2);
1176 ieee80211_send_error(ni, wh->i_addr2,
1250 struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh)
1264 wh, "WPA", "not WPA, flags 0x%x", vap->iv_flags);
1270 wh, "WPA", "too short, len %u", len);
1279 wh, "WPA", "bad version %u", w);
1291 wh, "WPA", "unknown mcast cipher suite %08X",
1303 wh, "WPA", "ucast cipher data too short; len %u, n %u",
1320 wh, "WPA", "no usable pairwise cipher suite found (w=%d)",
1336 wh, "WPA", "key mgmt alg data too short; len %u, n %u",
1427 struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh)
1441 wh, "WPA", "not RSN, flags 0x%x", vap->iv_flags);
1448 wh, "RSN", "too short, len %u", len);
1456 wh, "RSN", "bad version %u", w);
1468 wh, "RSN", "unknown mcast cipher suite %08X",
1475 wh, "RSN", "invalid mcast cipher suite %d",
1487 wh, "RSN", "ucast cipher data too short; len %u, n %u",
1515 wh, "RSN", "no usable pairwise cipher suite found (w=%d)",
1526 wh, "RSN", "key mgmt alg data too short; len %u, n %u",
1558 const struct ieee80211_frame *wh, const uint8_t *wpa,
1586 wh, NULL, "%s", "no WPA/RSN IE in association request");
1606 wh, NULL,
1616 reason = ieee80211_parse_wpa(vap, wpa, rsnparms, wh);
1618 reason = ieee80211_parse_rsn(vap, rsn, rsnparms, wh);
1688 ratesetmismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh,
1691 IEEE80211_NOTE_MAC(ni->ni_vap, IEEE80211_MSG_ANY, wh->i_addr2,
1699 capinfomismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh,
1704 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_ANY, wh->i_addr2,
1713 htcapmismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh,
1716 IEEE80211_NOTE_MAC(ni->ni_vap, IEEE80211_MSG_ANY, wh->i_addr2,
1724 authalgreject(struct ieee80211_node *ni, const struct ieee80211_frame *wh,
1730 wh, NULL, "unsupported alg %d", algo);
1732 ieee80211_send_error(ni, wh->i_addr2, IEEE80211_FC0_SUBTYPE_AUTH,
1768 struct ieee80211_frame *wh;
1775 wh = mtod(m0, struct ieee80211_frame *);
1776 frm = (uint8_t *)&wh[1];
1822 ieee80211_add_scan(vap, ic->ic_curchan, &scan, wh,
1844 IEEE80211_MSG_ASSOC, wh,
1892 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) {
1894 wh, NULL, "%s", "disallowed by ACL");
1928 wh, NULL,
1935 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_INPUT, wh->i_addr2,
1943 ieee80211_send_proberesp(vap, wh->i_addr2,
1954 if (!IEEE80211_ADDR_EQ(wh->i_addr3, vap->iv_bss->ni_bssid)) {
1956 wh, NULL, "%s", "wrong bssid");
1971 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_AUTH, wh->i_addr2,
1976 if (vap->iv_acl != NULL && !vap->iv_acl->iac_check(vap, wh)) {
1978 wh, NULL, "%s", "disallowed by ACL");
1980 ieee80211_send_error(ni, wh->i_addr2,
1988 wh, NULL, "%s", "TKIP countermeasures enabled");
1990 ieee80211_send_error(ni, wh->i_addr2,
1996 hostap_auth_shared(ni, wh, frm + 6, efrm, rssi, nf,
1999 hostap_auth_open(ni, wh, rssi, nf, seq, status);
2001 authalgreject(ni, wh, algo,
2014 authalgreject(ni, wh, algo,
2030 if (!IEEE80211_ADDR_EQ(wh->i_addr3, vap->iv_bss->ni_bssid)) {
2032 wh, NULL, "%s", "wrong bssid");
2044 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_ANY, wh->i_addr2,
2047 ieee80211_send_error(ni, wh->i_addr2,
2142 !wpa_assocreq(ni, &rsnparms, wh, wpa, rsn, capinfo))
2151 capinfomismatch(ni, wh, reassoc, resp,
2161 capinfomismatch(ni, wh, reassoc, resp,
2169 ratesetmismatch(ni, wh, reassoc, resp, "legacy", rate);
2180 ratesetmismatch(ni, wh, reassoc, resp, "11g", rate);
2207 ratesetmismatch(ni, wh, reassoc, resp,
2253 htcapmismatch(ni, wh, reassoc, resp);
2281 if (ieee80211_parse_wmeie(wme, wh, ni) > 0) {
2322 !IEEE80211_ADDR_EQ(wh->i_addr1, vap->iv_myaddr)) {
2354 wh, NULL, "%s", "unknown node");
2356 } else if (!IEEE80211_ADDR_EQ(vap->iv_myaddr, wh->i_addr1) &&
2357 !IEEE80211_IS_MULTICAST(wh->i_addr1)) {
2359 wh, NULL, "%s", "not for us");
2363 wh, NULL, "wrong state %s",
2368 (void)ic->ic_recv_action(ni, wh, frm, efrm);
2377 wh, NULL, "%s", "not handled");
2383 wh, "mgt", "subtype 0x%x not handled", subtype);
2410 struct ieee80211_frame_min *wh;
2415 wh = mtod(m0, struct ieee80211_frame_min *);
2419 (struct ieee80211_frame *) wh, NULL,
2427 aid = le16toh(*(uint16_t *)wh->i_dur);
2431 (struct ieee80211_frame *) wh, NULL,
2449 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_POWER, wh->i_addr2,