wh 920 dev/ic/acx.c struct ieee80211_frame *wh;
wh 934 dev/ic/acx.c wh = mtod(m, struct ieee80211_frame *);
wh 935 dev/ic/acx.c if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
wh 999 dev/ic/acx.c wh = mtod(m, struct ieee80211_frame *);
wh 1000 dev/ic/acx.c if ((wh->i_fc[1] & IEEE80211_FC1_WEP) && !sc->chip_hw_crypt) {
wh 1345 dev/ic/acx.c struct ieee80211_frame *wh;
wh 1350 dev/ic/acx.c wh = mtod(m, struct ieee80211_frame *);
wh 1352 dev/ic/acx.c if ((wh->i_fc[1] & IEEE80211_FC1_WEP) &&
wh 1355 dev/ic/acx.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 1360 dev/ic/acx.c wh = mtod(m, struct ieee80211_frame *);
wh 1390 dev/ic/acx.c ni = ieee80211_find_rxnode(ic, wh);
wh 2328 dev/ic/acx.c struct ieee80211_frame *wh;
wh 2332 dev/ic/acx.c wh = &n.data;
wh 2333 dev/ic/acx.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA |
wh 2335 dev/ic/acx.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2336 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr1, etherbroadcastaddr);
wh 2337 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 2338 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr3, etherbroadcastaddr);
wh 2348 dev/ic/acx.c struct ieee80211_frame *wh;
wh 2354 dev/ic/acx.c wh = &req.data.u_data.f;
wh 2355 dev/ic/acx.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 2357 dev/ic/acx.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2358 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr1, etherbroadcastaddr);
wh 2359 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 2360 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr3, etherbroadcastaddr);
wh 2380 dev/ic/acx.c struct ieee80211_frame *wh;
wh 2392 dev/ic/acx.c wh = mtod(m, struct ieee80211_frame *);
wh 2393 dev/ic/acx.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 2395 dev/ic/acx.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2396 dev/ic/acx.c *(u_int16_t *)&wh->i_dur[0] = 0;
wh 2397 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr1, ni->ni_macaddr);
wh 2398 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 2399 dev/ic/acx.c IEEE80211_ADDR_COPY(wh->i_addr3, ni->ni_bssid);
wh 2400 dev/ic/acx.c *(u_int16_t *)wh->i_seq = 0;
wh 359 dev/ic/an.c struct ieee80211_frame *wh;
wh 476 dev/ic/an.c wh = mtod(m, struct ieee80211_frame *);
wh 477 dev/ic/an.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 482 dev/ic/an.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 485 dev/ic/an.c ni = ieee80211_find_rxnode(ic, wh);
wh 1092 dev/ic/an.c struct ieee80211_frame *wh;
wh 1139 dev/ic/an.c wh = mtod(m, struct ieee80211_frame *);
wh 1141 dev/ic/an.c wh->i_fc[1] |= IEEE80211_FC1_WEP;
wh 899 dev/ic/ath.c struct ieee80211_frame *wh;
wh 965 dev/ic/ath.c wh = mtod(m, struct ieee80211_frame *);
wh 979 dev/ic/ath.c wh = mtod(m, struct ieee80211_frame *);
wh 980 dev/ic/ath.c if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
wh 989 dev/ic/ath.c tstamp = (u_int32_t *)&wh[1];
wh 1891 dev/ic/ath.c struct ieee80211_frame *wh, whbuf;
wh 2026 dev/ic/ath.c wh = mtod(m, struct ieee80211_frame *);
wh 2027 dev/ic/ath.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 2032 dev/ic/ath.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 2033 dev/ic/ath.c bcopy(wh, &whbuf, sizeof(whbuf));
wh 2035 dev/ic/ath.c wh = mtod(m, struct ieee80211_frame *);
wh 2036 dev/ic/ath.c bcopy(&whbuf, wh, sizeof(whbuf));
wh 2044 dev/ic/ath.c wh = mtod(m, struct ieee80211_frame *);
wh 2052 dev/ic/ath.c ni = ieee80211_find_rxnode(ic, wh);
wh 2110 dev/ic/ath.c struct ieee80211_frame *wh;
wh 2122 dev/ic/ath.c wh = mtod(m0, struct ieee80211_frame *);
wh 2123 dev/ic/ath.c iswep = wh->i_fc[1] & IEEE80211_FC1_WEP;
wh 2136 dev/ic/ath.c wh = mtod(m0, struct ieee80211_frame *);
wh 2259 dev/ic/ath.c switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) {
wh 2261 dev/ic/ath.c subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
wh 2272 dev/ic/ath.c subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
wh 2286 dev/ic/ath.c &ni->ni_rates, wh, m0->m_pkthdr.len, ic->ic_fixed_rate,
wh 2320 dev/ic/ath.c if (IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 2333 dev/ic/ath.c (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL) {
wh 2340 dev/ic/ath.c *((u_int16_t*) wh->i_dur) = htole16(dur);
wh 3062 dev/ic/atw.c atw_hw_decrypted(struct atw_softc *sc, struct ieee80211_frame *wh)
wh 3066 dev/ic/atw.c if ((wh->i_fc[1] & IEEE80211_FC1_WEP) == 0)
wh 3082 dev/ic/atw.c struct ieee80211_frame *wh;
wh 3227 dev/ic/atw.c wh = mtod(m, struct ieee80211_frame *);
wh 3228 dev/ic/atw.c ni = ieee80211_find_rxnode(ic, wh);
wh 3230 dev/ic/atw.c if (atw_hw_decrypted(sc, wh))
wh 3231 dev/ic/atw.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 3522 dev/ic/atw.c atw_compute_duration(struct ieee80211_frame *wh, int len, uint32_t flags,
wh 3529 dev/ic/atw.c if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS)
wh 3567 dev/ic/atw.c ack = !IEEE80211_IS_MULTICAST(wh->i_addr1) &&
wh 3568 dev/ic/atw.c (wh->i_fc[1] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL;
wh 3617 dev/ic/atw.c struct ieee80211_frame *wh;
wh 3682 dev/ic/atw.c wh = mtod(m0, struct ieee80211_frame *);
wh 3685 dev/ic/atw.c if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 3691 dev/ic/atw.c if (atw_compute_duration(wh, m0->m_pkthdr.len,
wh 3705 dev/ic/atw.c *(uint16_t *)wh->i_dur = htole16(txs->txs_d0.d_rts_dur);
wh 3753 dev/ic/atw.c wh = &hh->atw_ihdr;
wh 3755 dev/ic/atw.c do_encrypt = ((wh->i_fc[1] & IEEE80211_FC1_WEP) != 0) ? 1 : 0;
wh 3761 dev/ic/atw.c if (wh->i_fc[1] & IEEE80211_FC1_DIR_TODS) {
wh 3762 dev/ic/atw.c if (wh->i_fc[1] & IEEE80211_FC1_DIR_FROMDS)
wh 3765 dev/ic/atw.c memcpy(hh->atw_dst, wh->i_addr3, IEEE80211_ADDR_LEN);
wh 3767 dev/ic/atw.c memcpy(hh->atw_dst, wh->i_addr1, IEEE80211_ADDR_LEN);
wh 3769 dev/ic/atw.c *(u_int16_t*)hh->atw_fc = *(u_int16_t*)wh->i_fc;
wh 1070 dev/ic/awi.c struct ieee80211_frame *wh;
wh 1091 dev/ic/awi.c wh = mtod(m0, struct ieee80211_frame *);
wh 1093 dev/ic/awi.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA;
wh 1094 dev/ic/awi.c LE_WRITE_2(wh->i_dur, 0);
wh 1095 dev/ic/awi.c LE_WRITE_2(wh->i_seq, 0);
wh 1097 dev/ic/awi.c wh->i_fc[1] = IEEE80211_FC1_DIR_TODS;
wh 1098 dev/ic/awi.c memcpy(wh->i_addr1, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 1099 dev/ic/awi.c memcpy(wh->i_addr2, eh.ether_shost, ETHER_ADDR_LEN);
wh 1100 dev/ic/awi.c memcpy(wh->i_addr3, eh.ether_dhost, ETHER_ADDR_LEN);
wh 1102 dev/ic/awi.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 1103 dev/ic/awi.c memcpy(wh->i_addr1, eh.ether_dhost, ETHER_ADDR_LEN);
wh 1104 dev/ic/awi.c memcpy(wh->i_addr2, eh.ether_shost, ETHER_ADDR_LEN);
wh 1105 dev/ic/awi.c memcpy(wh->i_addr3, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 1115 dev/ic/awi.c struct ieee80211_frame wh;
wh 1119 dev/ic/awi.c if (m0->m_len < sizeof(wh)) {
wh 1123 dev/ic/awi.c llc = (struct llc *)(mtod(m0, caddr_t) + sizeof(wh));
wh 1130 dev/ic/awi.c memcpy(&wh, mtod(m0, caddr_t), sizeof(wh));
wh 1131 dev/ic/awi.c m_adj(m0, sizeof(wh) + sizeof(*llc) - sizeof(*eh));
wh 1133 dev/ic/awi.c switch (wh.i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 1135 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr1, ETHER_ADDR_LEN);
wh 1136 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr2, ETHER_ADDR_LEN);
wh 1139 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr3, ETHER_ADDR_LEN);
wh 1140 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr2, ETHER_ADDR_LEN);
wh 1143 dev/ic/awi.c memcpy(eh->ether_dhost, wh.i_addr1, ETHER_ADDR_LEN);
wh 1144 dev/ic/awi.c memcpy(eh->ether_shost, wh.i_addr3, ETHER_ADDR_LEN);
wh 1152 dev/ic/awi.c m_adj(m0, sizeof(wh));
wh 1217 dev/ic/awi.c struct ieee80211_frame *wh;
wh 1222 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 1223 dev/ic/awi.c if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
wh 1226 dev/ic/awi.c sc->sc_dev.dv_xname, wh->i_fc[0]);
wh 1231 dev/ic/awi.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1237 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 1246 dev/ic/awi.c if (memcmp(wh->i_addr2, sc->sc_bss.bssid, ETHER_ADDR_LEN) == 0) {
wh 1251 dev/ic/awi.c switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) {
wh 1254 dev/ic/awi.c if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) !=
wh 1260 dev/ic/awi.c if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) !=
wh 1282 dev/ic/awi.c if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) !=
wh 1287 dev/ic/awi.c switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) {
wh 1885 dev/ic/awi.c struct ieee80211_frame *wh;
wh 1892 dev/ic/awi.c wh = mtod(m0, struct ieee80211_frame *);
wh 1894 dev/ic/awi.c frame = (u_int8_t *)&wh[1];
wh 1948 dev/ic/awi.c ssid[1], ether_sprintf(wh->i_addr2));
wh 1955 dev/ic/awi.c if (memcmp(bp->esrc, wh->i_addr2, ETHER_ADDR_LEN) == 0 &&
wh 1956 dev/ic/awi.c memcmp(bp->bssid, wh->i_addr3, ETHER_ADDR_LEN) == 0)
wh 1964 dev/ic/awi.c memcpy(bp->esrc, wh->i_addr2, ETHER_ADDR_LEN);
wh 1965 dev/ic/awi.c memcpy(bp->bssid, wh->i_addr3, ETHER_ADDR_LEN);
wh 2080 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2090 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 2091 dev/ic/awi.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 2093 dev/ic/awi.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2094 dev/ic/awi.c LE_WRITE_2(wh->i_dur, 0);
wh 2095 dev/ic/awi.c LE_WRITE_2(wh->i_seq, 0);
wh 2096 dev/ic/awi.c memcpy(wh->i_addr1, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 2097 dev/ic/awi.c memcpy(wh->i_addr2, sc->sc_mib_addr.aMAC_Address, ETHER_ADDR_LEN);
wh 2098 dev/ic/awi.c memcpy(wh->i_addr3, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 2100 dev/ic/awi.c deauth = (u_int8_t *)&wh[1];
wh 2117 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2128 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 2129 dev/ic/awi.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 2131 dev/ic/awi.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2132 dev/ic/awi.c LE_WRITE_2(wh->i_dur, 0);
wh 2133 dev/ic/awi.c LE_WRITE_2(wh->i_seq, 0);
wh 2134 dev/ic/awi.c memcpy(wh->i_addr1, sc->sc_bss.esrc, ETHER_ADDR_LEN);
wh 2135 dev/ic/awi.c memcpy(wh->i_addr2, sc->sc_mib_addr.aMAC_Address, ETHER_ADDR_LEN);
wh 2136 dev/ic/awi.c memcpy(wh->i_addr3, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 2138 dev/ic/awi.c auth = (u_int8_t *)&wh[1];
wh 2162 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2167 dev/ic/awi.c wh = mtod(m0, struct ieee80211_frame *);
wh 2168 dev/ic/awi.c auth = (u_int8_t *)&wh[1];
wh 2172 dev/ic/awi.c ether_sprintf(wh->i_addr2));
wh 2218 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2231 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 2232 dev/ic/awi.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT;
wh 2234 dev/ic/awi.c wh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_REASSOC_REQ;
wh 2236 dev/ic/awi.c wh->i_fc[0] |= IEEE80211_FC0_SUBTYPE_ASSOC_REQ;
wh 2237 dev/ic/awi.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2238 dev/ic/awi.c LE_WRITE_2(wh->i_dur, 0);
wh 2239 dev/ic/awi.c LE_WRITE_2(wh->i_seq, 0);
wh 2240 dev/ic/awi.c memcpy(wh->i_addr1, sc->sc_bss.esrc, ETHER_ADDR_LEN);
wh 2241 dev/ic/awi.c memcpy(wh->i_addr2, sc->sc_mib_addr.aMAC_Address, ETHER_ADDR_LEN);
wh 2242 dev/ic/awi.c memcpy(wh->i_addr3, sc->sc_bss.bssid, ETHER_ADDR_LEN);
wh 2244 dev/ic/awi.c asreq = (u_int8_t *)&wh[1];
wh 2282 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2289 dev/ic/awi.c wh = mtod(m0, struct ieee80211_frame *);
wh 2290 dev/ic/awi.c asresp = (u_int8_t *)&wh[1];
wh 2294 dev/ic/awi.c ether_sprintf(wh->i_addr2));
wh 2730 dev/ic/awi.c struct ieee80211_frame *wh;
wh 2733 dev/ic/awi.c wh = mtod(m, struct ieee80211_frame *);
wh 2736 dev/ic/awi.c ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK)==IEEE80211_FC1_DIR_NODS) &&
wh 2737 dev/ic/awi.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK)==IEEE80211_FC0_TYPE_MGT)) {
wh 2738 dev/ic/awi.c if ((AWI_DUMP_MASK(wh->i_fc[0]) & awi_dump_mask) != 0)
wh 2742 dev/ic/awi.c (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK)==IEEE80211_FC0_TYPE_DATA)
wh 2749 dev/ic/awi.c switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 2751 dev/ic/awi.c printf("NODS %s", ether_sprintf(wh->i_addr2));
wh 2752 dev/ic/awi.c printf("->%s", ether_sprintf(wh->i_addr1));
wh 2753 dev/ic/awi.c printf("(%s)", ether_sprintf(wh->i_addr3));
wh 2756 dev/ic/awi.c printf("TODS %s", ether_sprintf(wh->i_addr2));
wh 2757 dev/ic/awi.c printf("->%s", ether_sprintf(wh->i_addr3));
wh 2758 dev/ic/awi.c printf("(%s)", ether_sprintf(wh->i_addr1));
wh 2761 dev/ic/awi.c printf("FRDS %s", ether_sprintf(wh->i_addr3));
wh 2762 dev/ic/awi.c printf("->%s", ether_sprintf(wh->i_addr1));
wh 2763 dev/ic/awi.c printf("(%s)", ether_sprintf(wh->i_addr2));
wh 2766 dev/ic/awi.c printf("DSDS %s", ether_sprintf((u_int8_t *)&wh[1]));
wh 2767 dev/ic/awi.c printf("->%s", ether_sprintf(wh->i_addr3));
wh 2768 dev/ic/awi.c printf("(%s", ether_sprintf(wh->i_addr2));
wh 2769 dev/ic/awi.c printf("->%s)", ether_sprintf(wh->i_addr1));
wh 2772 dev/ic/awi.c switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) {
wh 2777 dev/ic/awi.c switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) {
wh 2810 dev/ic/awi.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 2816 dev/ic/awi.c wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK);
wh 2819 dev/ic/awi.c if (wh->i_fc[1] & IEEE80211_FC1_WEP)
wh 2826 dev/ic/awi.c if (l > awi_dump_len + sizeof(*wh))
wh 2827 dev/ic/awi.c l = awi_dump_len + sizeof(*wh);
wh 2828 dev/ic/awi.c i = sizeof(*wh);
wh 326 dev/ic/awi_wep.c struct ieee80211_frame *wh;
wh 351 dev/ic/awi_wep.c wh = mtod(n, struct ieee80211_frame *);
wh 368 dev/ic/awi_wep.c wh = mtod(n, struct ieee80211_frame *);
wh 369 dev/ic/awi_wep.c wh->i_fc[1] |= IEEE80211_FC1_WEP;
wh 1426 dev/ic/malo.c struct ieee80211_frame *wh;
wh 1441 dev/ic/malo.c wh = mtod(m0, struct ieee80211_frame *);
wh 1443 dev/ic/malo.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1449 dev/ic/malo.c wh = mtod(m0, struct ieee80211_frame *);
wh 1488 dev/ic/malo.c bcopy(m0->m_data, m0->m_data - 6, sizeof(*wh));
wh 1537 dev/ic/malo.c struct ieee80211_frame *wh;
wh 1553 dev/ic/malo.c wh = mtod(m0, struct ieee80211_frame *);
wh 1555 dev/ic/malo.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1561 dev/ic/malo.c wh = mtod(m0, struct ieee80211_frame *);
wh 1604 dev/ic/malo.c bcopy(wh, mtod(mnew, caddr_t) + 2, sizeof(*wh));
wh 1606 dev/ic/malo.c m_copydata(m0, sizeof(*wh), m0->m_pkthdr.len - sizeof(*wh),
wh 1664 dev/ic/malo.c struct ieee80211_frame *wh;
wh 1770 dev/ic/malo.c wh = mtod(m, struct ieee80211_frame *);
wh 1771 dev/ic/malo.c ni = ieee80211_find_rxnode(ic, wh);
wh 1078 dev/ic/rt2560.c struct ieee80211_frame *wh;
wh 1195 dev/ic/rt2560.c wh = mtod(m, struct ieee80211_frame *);
wh 1196 dev/ic/rt2560.c ni = ieee80211_find_rxnode(ic, wh);
wh 1605 dev/ic/rt2560.c struct ieee80211_frame *wh;
wh 1613 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1615 dev/ic/rt2560.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1621 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1657 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1659 dev/ic/rt2560.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1664 dev/ic/rt2560.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1667 dev/ic/rt2560.c if ((wh->i_fc[0] &
wh 1702 dev/ic/rt2560.c struct ieee80211_frame *wh;
wh 1708 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1710 dev/ic/rt2560.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1716 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1723 dev/ic/rt2560.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 1724 dev/ic/rt2560.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 1745 dev/ic/rt2560.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1771 dev/ic/rt2560.c mprot = ieee80211_get_rts(ic, wh, dur);
wh 1863 dev/ic/rt2560.c wh = mtod(m0, struct ieee80211_frame *);
wh 1890 dev/ic/rt2560.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1895 dev/ic/rt2560.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1002 dev/ic/rt2661.c struct ieee80211_frame *wh;
wh 1117 dev/ic/rt2661.c wh = mtod(m, struct ieee80211_frame *);
wh 1118 dev/ic/rt2661.c ni = ieee80211_find_rxnode(ic, wh);
wh 1452 dev/ic/rt2661.c struct ieee80211_frame *wh;
wh 1463 dev/ic/rt2661.c wh = mtod(m0, struct ieee80211_frame *);
wh 1465 dev/ic/rt2661.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1471 dev/ic/rt2661.c wh = mtod(m0, struct ieee80211_frame *);
wh 1506 dev/ic/rt2661.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1511 dev/ic/rt2661.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1514 dev/ic/rt2661.c if ((wh->i_fc[0] &
wh 1550 dev/ic/rt2661.c struct ieee80211_frame *wh;
wh 1556 dev/ic/rt2661.c wh = mtod(m0, struct ieee80211_frame *);
wh 1558 dev/ic/rt2661.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1564 dev/ic/rt2661.c wh = mtod(m0, struct ieee80211_frame *);
wh 1571 dev/ic/rt2661.c if (IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1591 dev/ic/rt2661.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1617 dev/ic/rt2661.c mprot = ieee80211_get_rts(ic, wh, dur);
wh 1708 dev/ic/rt2661.c wh = mtod(m0, struct ieee80211_frame *);
wh 1734 dev/ic/rt2661.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1739 dev/ic/rt2661.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1143 dev/ic/rtw.c struct ieee80211_frame *wh;
wh 1292 dev/ic/rtw.c wh = mtod(m, struct ieee80211_frame *);
wh 1294 dev/ic/rtw.c if (!IS_BEACON(wh->i_fc[0]))
wh 1297 dev/ic/rtw.c ni = ieee80211_find_rxnode(&sc->sc_ic, wh);
wh 3039 dev/ic/rtw.c rtw_compute_duration(struct ieee80211_frame *wh, int len, uint32_t flags,
wh 3046 dev/ic/rtw.c if ((wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) == IEEE80211_FC1_DIR_DSTODS)
wh 3084 dev/ic/rtw.c ack = !IEEE80211_IS_MULTICAST(wh->i_addr1) &&
wh 3085 dev/ic/rtw.c (wh->i_fc[1] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL;
wh 3121 dev/ic/rtw.c struct ieee80211_frame *wh;
wh 3164 dev/ic/rtw.c wh = mtod(m0, struct ieee80211_frame *);
wh 3167 dev/ic/rtw.c if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 3178 dev/ic/rtw.c : sizeof(wh), rate, 0);
wh 3204 dev/ic/rtw.c if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 3207 dev/ic/rtw.c if ((wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
wh 3212 dev/ic/rtw.c if (rtw_compute_duration(wh, m0->m_pkthdr.len,
wh 3224 dev/ic/rtw.c *(uint16_t*)wh->i_dur = htole16(d0->d_data_dur);
wh 822 dev/pci/if_ipw.c struct ieee80211_frame *wh;
wh 896 dev/pci/if_ipw.c wh = mtod(m, struct ieee80211_frame *);
wh 898 dev/pci/if_ipw.c ni = ieee80211_find_rxnode(ic, wh);
wh 1124 dev/pci/if_ipw.c struct ieee80211_frame *wh;
wh 1131 dev/pci/if_ipw.c wh = mtod(m, struct ieee80211_frame *);
wh 1133 dev/pci/if_ipw.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1139 dev/pci/if_ipw.c wh = mtod(m, struct ieee80211_frame *);
wh 1166 dev/pci/if_ipw.c shdr->hdr.encrypted = (wh->i_fc[1] & IEEE80211_FC1_WEP) ? 1 : 0;
wh 1171 dev/pci/if_ipw.c IEEE80211_ADDR_COPY(shdr->hdr.src_addr, wh->i_addr2);
wh 1173 dev/pci/if_ipw.c IEEE80211_ADDR_COPY(shdr->hdr.dst_addr, wh->i_addr3);
wh 1175 dev/pci/if_ipw.c IEEE80211_ADDR_COPY(shdr->hdr.dst_addr, wh->i_addr1);
wh 871 dev/pci/if_iwi.c struct ieee80211_frame *wh;
wh 933 dev/pci/if_iwi.c wh = mtod(m, struct ieee80211_frame *);
wh 935 dev/pci/if_iwi.c if ((wh->i_fc[1] & IEEE80211_FC1_WEP) &&
wh 942 dev/pci/if_iwi.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 943 dev/pci/if_iwi.c ovbcopy(wh, (char *)wh + IEEE80211_WEP_IVLEN +
wh 947 dev/pci/if_iwi.c wh = mtod(m, struct ieee80211_frame *);
wh 976 dev/pci/if_iwi.c ni = ieee80211_find_rxnode(ic, wh);
wh 1290 dev/pci/if_iwi.c m_copydata(m0, 0, sizeof (struct ieee80211_frame), (caddr_t)&desc->wh);
wh 1294 dev/pci/if_iwi.c station = iwi_find_txnode(sc, desc->wh.i_addr1);
wh 1356 dev/pci/if_iwi.c if (!IEEE80211_IS_MULTICAST(desc->wh.i_addr1))
wh 1359 dev/pci/if_iwi.c if (desc->wh.i_fc[1] & IEEE80211_FC1_WEP) {
wh 241 dev/pci/if_iwireg.h struct ieee80211_qosframe_addr4 wh;
wh 1205 dev/pci/if_wpi.c struct ieee80211_frame *wh;
wh 1307 dev/pci/if_wpi.c wh = mtod(m, struct ieee80211_frame *);
wh 1308 dev/pci/if_wpi.c ni = ieee80211_find_rxnode(ic, wh);
wh 1565 dev/pci/if_wpi.c struct ieee80211_frame *wh;
wh 1572 dev/pci/if_wpi.c wh = mtod(m0, struct ieee80211_frame *);
wh 1575 dev/pci/if_wpi.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 1576 dev/pci/if_wpi.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 1597 dev/pci/if_wpi.c if (wh->i_fc[1] & IEEE80211_FC1_WEP)
wh 1620 dev/pci/if_wpi.c if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
wh 1634 dev/pci/if_wpi.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1641 dev/pci/if_wpi.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1661 dev/pci/if_wpi.c if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 1663 dev/pci/if_wpi.c uint8_t subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
wh 1690 dev/pci/if_wpi.c m_copydata(m0, 0, sizeof (struct ieee80211_frame), (caddr_t)&tx->wh);
wh 2313 dev/pci/if_wpi.c m_copydata(m0, 0, sizeof (struct ieee80211_frame), (caddr_t)&bcn->wh);
wh 2421 dev/pci/if_wpi.c struct ieee80211_frame *wh;
wh 2484 dev/pci/if_wpi.c wh = (struct ieee80211_frame *)(hdr + 1);
wh 2485 dev/pci/if_wpi.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 2487 dev/pci/if_wpi.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 2488 dev/pci/if_wpi.c IEEE80211_ADDR_COPY(wh->i_addr1, etherbroadcastaddr);
wh 2489 dev/pci/if_wpi.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 2490 dev/pci/if_wpi.c IEEE80211_ADDR_COPY(wh->i_addr3, etherbroadcastaddr);
wh 2491 dev/pci/if_wpi.c *(u_int16_t *)&wh->i_dur[0] = 0; /* filled by h/w */
wh 2492 dev/pci/if_wpi.c *(u_int16_t *)&wh->i_seq[0] = 0; /* filled by h/w */
wh 2494 dev/pci/if_wpi.c frm = (uint8_t *)(wh + 1);
wh 2511 dev/pci/if_wpi.c hdr->paylen = htole16(frm - (uint8_t *)wh);
wh 396 dev/pci/if_wpireg.h struct ieee80211_frame wh;
wh 414 dev/pci/if_wpireg.h struct ieee80211_frame wh;
wh 1663 dev/usb/if_atu.c struct ieee80211_frame *wh;
wh 1728 dev/usb/if_atu.c wh = mtod(m, struct ieee80211_frame *);
wh 1729 dev/usb/if_atu.c ni = ieee80211_find_rxnode(ic, wh);
wh 1763 dev/usb/if_atu.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1768 dev/usb/if_atu.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 1933 dev/usb/if_atu.c struct ieee80211_frame *wh;
wh 2010 dev/usb/if_atu.c wh = mtod(m, struct ieee80211_frame *);
wh 2032 dev/usb/if_atu.c wh = mtod(m, struct ieee80211_frame *);
wh 715 dev/usb/if_ral.c struct ieee80211_frame *wh;
wh 799 dev/usb/if_ral.c wh = mtod(m, struct ieee80211_frame *);
wh 800 dev/usb/if_ral.c ni = ieee80211_find_rxnode(ic, wh);
wh 1046 dev/usb/if_ral.c struct ieee80211_frame *wh;
wh 1052 dev/usb/if_ral.c wh = mtod(m0, struct ieee80211_frame *);
wh 1054 dev/usb/if_ral.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1060 dev/usb/if_ral.c wh = mtod(m0, struct ieee80211_frame *);
wh 1067 dev/usb/if_ral.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 1068 dev/usb/if_ral.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 1082 dev/usb/if_ral.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1108 dev/usb/if_ral.c mprot = ieee80211_get_rts(ic, wh, dur);
wh 1159 dev/usb/if_ral.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1165 dev/usb/if_ral.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1168 dev/usb/if_ral.c if ((wh->i_fc[0] &
wh 774 dev/usb/if_rum.c struct ieee80211_frame *wh;
wh 857 dev/usb/if_rum.c wh = mtod(m, struct ieee80211_frame *);
wh 858 dev/usb/if_rum.c ni = ieee80211_find_rxnode(ic, wh);
wh 1055 dev/usb/if_rum.c struct ieee80211_frame *wh;
wh 1061 dev/usb/if_rum.c wh = mtod(m0, struct ieee80211_frame *);
wh 1063 dev/usb/if_rum.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1069 dev/usb/if_rum.c wh = mtod(m0, struct ieee80211_frame *);
wh 1076 dev/usb/if_rum.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 1077 dev/usb/if_rum.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 1091 dev/usb/if_rum.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1117 dev/usb/if_rum.c mprot = ieee80211_get_rts(ic, wh, dur);
wh 1168 dev/usb/if_rum.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1173 dev/usb/if_rum.c *(uint16_t *)wh->i_dur = htole16(dur);
wh 1176 dev/usb/if_rum.c if ((wh->i_fc[0] &
wh 1187 dev/usb/if_uath.c struct ieee80211_frame *wh;
wh 1254 dev/usb/if_uath.c wh = mtod(m, struct ieee80211_frame *);
wh 1255 dev/usb/if_uath.c if ((wh->i_fc[1] & IEEE80211_FC1_WEP) &&
wh 1262 dev/usb/if_uath.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 1263 dev/usb/if_uath.c ovbcopy(wh, (caddr_t)wh + IEEE80211_WEP_IVLEN +
wh 1267 dev/usb/if_uath.c wh = mtod(m, struct ieee80211_frame *);
wh 1293 dev/usb/if_uath.c ni = ieee80211_find_rxnode(ic, wh);
wh 1380 dev/usb/if_uath.c const struct ieee80211_frame *wh;
wh 1410 dev/usb/if_uath.c wh = mtod(m0, struct ieee80211_frame *);
wh 1411 dev/usb/if_uath.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 1416 dev/usb/if_uath.c bcopy(wh, frm, sizeof (struct ieee80211_frame));
wh 1449 dev/usb/if_uath.c if (IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 1855 dev/usb/if_zyd.c struct ieee80211_frame *wh;
wh 1932 dev/usb/if_zyd.c wh = mtod(m, struct ieee80211_frame *);
wh 1933 dev/usb/if_zyd.c ni = ieee80211_find_rxnode(ic, wh);
wh 2051 dev/usb/if_zyd.c struct ieee80211_frame *wh;
wh 2056 dev/usb/if_zyd.c wh = mtod(m0, struct ieee80211_frame *);
wh 2058 dev/usb/if_zyd.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 2064 dev/usb/if_zyd.c wh = mtod(m0, struct ieee80211_frame *);
wh 2068 dev/usb/if_zyd.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 2069 dev/usb/if_zyd.c ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) ==
wh 2094 dev/usb/if_zyd.c if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) {
wh 2108 dev/usb/if_zyd.c if ((wh->i_fc[0] &
wh 109 lib/libsa/unixdev.c ulseek(int fd, off_t off, int wh)
wh 111 lib/libsa/unixdev.c return __syscall((quad_t)SYS_lseek, fd, 0, off, wh);
wh 130 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 134 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 135 net80211/ieee80211_crypto.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 164 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 168 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 169 net80211/ieee80211_crypto.c if (IEEE80211_IS_MULTICAST(wh->i_addr1) ||
wh 171 net80211/ieee80211_crypto.c size_t hdrlen = sizeof(*wh); /* XXX QoS */
wh 172 net80211/ieee80211_crypto.c u_int8_t *ivp = (u_int8_t *)wh + hdrlen;
wh 205 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 206 net80211/ieee80211_crypto.c size_t hdrlen = sizeof(*wh); /* XXX QoS */
wh 212 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 213 net80211/ieee80211_crypto.c ovbcopy(mtod(m0, u_int8_t *) + IEEE80211_CCMP_HDRLEN, wh, hdrlen);
wh 214 net80211/ieee80211_crypto.c ivp = (u_int8_t *)wh + hdrlen;
wh 235 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 236 net80211/ieee80211_crypto.c size_t hdrlen = sizeof(*wh); /* XXX QoS */
wh 240 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 241 net80211/ieee80211_crypto.c ivp = (u_int8_t *)wh + hdrlen;
wh 284 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 285 net80211/ieee80211_crypto.c size_t hdrlen = sizeof(*wh); /* XXX QoS */
wh 291 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 292 net80211/ieee80211_crypto.c ovbcopy(mtod(m0, u_int8_t *) + IEEE80211_TKIP_HDRLEN, wh, hdrlen);
wh 293 net80211/ieee80211_crypto.c ivp = (u_int8_t *)wh + hdrlen;
wh 316 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 317 net80211/ieee80211_crypto.c size_t hdrlen = sizeof(*wh); /* XXX QoS */
wh 321 net80211/ieee80211_crypto.c wh = mtod(m0, struct ieee80211_frame *);
wh 322 net80211/ieee80211_crypto.c ivp = (u_int8_t *)wh + hdrlen;
wh 367 net80211/ieee80211_crypto.c struct ieee80211_frame *wh;
wh 409 net80211/ieee80211_crypto.c wh = mtod(m, struct ieee80211_frame *);
wh 410 net80211/ieee80211_crypto.c if ((wh->i_fc[0] &
wh 416 net80211/ieee80211_crypto.c memcpy(mtod(n, caddr_t), wh, len);
wh 417 net80211/ieee80211_crypto.c wh = mtod(n, struct ieee80211_frame *);
wh 423 net80211/ieee80211_crypto.c wh->i_fc[1] |= IEEE80211_FC1_WEP;
wh 442 net80211/ieee80211_crypto.c wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
wh 133 net80211/ieee80211_input.c struct ieee80211_frame *wh;
wh 164 net80211/ieee80211_input.c wh = mtod(m, struct ieee80211_frame *);
wh 165 net80211/ieee80211_input.c if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
wh 168 net80211/ieee80211_input.c __func__, wh->i_fc[0]));
wh 173 net80211/ieee80211_input.c dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK;
wh 174 net80211/ieee80211_input.c type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
wh 191 net80211/ieee80211_input.c (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS)) {
wh 193 net80211/ieee80211_input.c (struct ieee80211_qosframe *)wh;
wh 202 net80211/ieee80211_input.c letoh16(*(u_int16_t *)wh->i_seq) >>
wh 206 net80211/ieee80211_input.c if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
wh 216 net80211/ieee80211_input.c (wh->i_fc[1] & IEEE80211_FC1_PWR_MGT) &&
wh 222 net80211/ieee80211_input.c ifp->if_xname, ether_sprintf(wh->i_addr2));
wh 227 net80211/ieee80211_input.c !(wh->i_fc[1] & IEEE80211_FC1_PWR_MGT) &&
wh 236 net80211/ieee80211_input.c ifp->if_xname, ether_sprintf(wh->i_addr2));
wh 255 net80211/ieee80211_input.c !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_bssid)) {
wh 259 net80211/ieee80211_input.c __func__, ether_sprintf(wh->i_addr2)));
wh 264 net80211/ieee80211_input.c IEEE80211_IS_MULTICAST(wh->i_addr1) &&
wh 265 net80211/ieee80211_input.c IEEE80211_ADDR_EQ(wh->i_addr3, ic->ic_myaddr)) {
wh 283 net80211/ieee80211_input.c !IEEE80211_ADDR_EQ(wh->i_addr3,
wh 285 net80211/ieee80211_input.c !IEEE80211_ADDR_EQ(wh->i_addr3,
wh 290 net80211/ieee80211_input.c __func__, ether_sprintf(wh->i_addr3)));
wh 301 net80211/ieee80211_input.c !IEEE80211_ADDR_EQ(wh->i_addr1,
wh 303 net80211/ieee80211_input.c !IEEE80211_ADDR_EQ(wh->i_addr1,
wh 308 net80211/ieee80211_input.c __func__, ether_sprintf(wh->i_addr1)));
wh 316 net80211/ieee80211_input.c ether_sprintf(wh->i_addr2)));
wh 318 net80211/ieee80211_input.c ni = ieee80211_dup_bss(ic, wh->i_addr2);
wh 330 net80211/ieee80211_input.c ether_sprintf(wh->i_addr2)));
wh 342 net80211/ieee80211_input.c if (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_QOS)
wh 346 net80211/ieee80211_input.c if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
wh 353 net80211/ieee80211_input.c wh = mtod(m, struct ieee80211_frame *);
wh 368 net80211/ieee80211_input.c __func__, ether_sprintf(wh->i_addr2)));
wh 377 net80211/ieee80211_input.c __func__, ether_sprintf(wh->i_addr2)));
wh 437 net80211/ieee80211_input.c subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
wh 473 net80211/ieee80211_input.c ether_sprintf(wh->i_addr2), rssi,
wh 498 net80211/ieee80211_input.c subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
wh 505 net80211/ieee80211_input.c ether_sprintf(wh->i_addr2));
wh 530 net80211/ieee80211_input.c struct ieee80211_frame wh;
wh 539 net80211/ieee80211_input.c memcpy(&wh, mtod(m, caddr_t), sizeof(wh));
wh 553 net80211/ieee80211_input.c switch (wh.i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 555 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
wh 556 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
wh 559 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr3);
wh 560 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr2);
wh 563 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_dhost, wh.i_addr1);
wh 564 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(eh->ether_shost, wh.i_addr3);
wh 664 net80211/ieee80211_input.c (wh->i_fc[0] & \
wh 673 net80211/ieee80211_input.c ieee80211_mgt_subtype_name[(wh->i_fc[0] & \
wh 676 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2))); \
wh 686 net80211/ieee80211_input.c ieee80211_mgt_subtype_name[(wh->i_fc[0] & \
wh 689 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2))); \
wh 715 net80211/ieee80211_input.c wh->i_addr2, _ssid); \
wh 732 net80211/ieee80211_input.c ieee80211_auth_open(struct ieee80211com *ic, const struct ieee80211_frame *wh,
wh 743 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2),
wh 749 net80211/ieee80211_input.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 761 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2),
wh 767 net80211/ieee80211_input.c ni = ieee80211_alloc_node(ic, wh->i_addr2);
wh 794 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2),
wh 803 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr3));
wh 810 net80211/ieee80211_input.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 1082 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1110 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1111 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1208 net80211/ieee80211_input.c "%u\n", __func__, ISPROBE(wh) ?
wh 1226 net80211/ieee80211_input.c "for channel %u\n", __func__, ISPROBE(wh) ?
wh 1239 net80211/ieee80211_input.c if ((ni = ieee80211_find_node_for_beacon(ic, wh->i_addr2,
wh 1248 net80211/ieee80211_input.c ISPROBE(wh) ? "probe response" : "beacon",
wh 1251 net80211/ieee80211_input.c printf(" from %s\n", ether_sprintf((u_int8_t *)wh->i_addr2));
wh 1257 net80211/ieee80211_input.c if ((ni = ieee80211_find_node(ic, wh->i_addr2)) == NULL) {
wh 1258 net80211/ieee80211_input.c ni = ieee80211_alloc_node(ic, wh->i_addr2);
wh 1280 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2),
wh 1316 net80211/ieee80211_input.c IEEE80211_ADDR_COPY(ni->ni_bssid, wh->i_addr3);
wh 1337 net80211/ieee80211_input.c if (ic->ic_opmode == IEEE80211_M_IBSS || (is_new && ISPROBE(wh))) {
wh 1359 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1368 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1369 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1402 net80211/ieee80211_input.c ni = ieee80211_dup_bss(ic, wh->i_addr2);
wh 1406 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1415 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1432 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1436 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1437 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1445 net80211/ieee80211_input.c __func__, algo, seq, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1448 net80211/ieee80211_input.c ieee80211_auth_open(ic, wh, ni, rssi, rstamp, seq, status);
wh 1452 net80211/ieee80211_input.c __func__, algo, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1481 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1492 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1493 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1496 net80211/ieee80211_input.c if (ISREASSOC(wh)) {
wh 1505 net80211/ieee80211_input.c if (!IEEE80211_ADDR_EQ(wh->i_addr3, ic->ic_bss->ni_bssid)) {
wh 1507 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1558 net80211/ieee80211_input.c ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1559 net80211/ieee80211_input.c ni = ieee80211_dup_bss(ic, wh->i_addr2);
wh 1574 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1583 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1594 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1629 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1641 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1642 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1653 net80211/ieee80211_input.c ISREASSOC(wh) ? "re" : "",
wh 1654 net80211/ieee80211_input.c status, ether_sprintf((u_int8_t *)wh->i_addr3));
wh 1698 net80211/ieee80211_input.c __func__, ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 1738 net80211/ieee80211_input.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 1751 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1755 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1756 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1765 net80211/ieee80211_input.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 1792 net80211/ieee80211_input.c const struct ieee80211_frame *wh;
wh 1796 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 1797 net80211/ieee80211_input.c frm = (const u_int8_t *)&wh[1];
wh 1806 net80211/ieee80211_input.c wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK);
wh 2541 net80211/ieee80211_input.c struct ieee80211_frame *wh;
wh 2549 net80211/ieee80211_input.c wh = mtod(m0, struct ieee80211_frame *);
wh 2551 net80211/ieee80211_input.c if ((ni = ieee80211_find_node(ic, wh->i_addr2)) == NULL) {
wh 2554 net80211/ieee80211_input.c ifp->if_xname, ether_sprintf(wh->i_addr2));
wh 2558 net80211/ieee80211_input.c memcpy(&aid, wh->i_dur, sizeof(wh->i_dur));
wh 2562 net80211/ieee80211_input.c ifp->if_xname, ether_sprintf(wh->i_addr2), aid);
wh 2570 net80211/ieee80211_input.c ether_sprintf(wh->i_addr2), ni->ni_associd, aid);
wh 2581 net80211/ieee80211_input.c ifp->if_xname, ether_sprintf(wh->i_addr2));
wh 2584 net80211/ieee80211_input.c wh = mtod(m, struct ieee80211_frame *);
wh 2594 net80211/ieee80211_input.c wh->i_fc[1] |= IEEE80211_FC1_MORE_DATA;
wh 702 net80211/ieee80211_node.c const struct ieee80211_frame *wh, const u_int8_t **bssid)
wh 711 net80211/ieee80211_node.c switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) {
wh 715 net80211/ieee80211_node.c return (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) ==
wh 718 net80211/ieee80211_node.c *bssid = wh->i_addr3;
wh 719 net80211/ieee80211_node.c switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) {
wh 733 net80211/ieee80211_node.c switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 735 net80211/ieee80211_node.c *bssid = wh->i_addr3;
wh 741 net80211/ieee80211_node.c *bssid = wh->i_addr1;
wh 747 net80211/ieee80211_node.c *bssid = wh->i_addr2;
wh 762 net80211/ieee80211_node.c const struct ieee80211_frame *wh)
wh 769 net80211/ieee80211_node.c if (!ieee80211_needs_rxnode(ic, wh, &bssid))
wh 773 net80211/ieee80211_node.c ni = ieee80211_find_node(ic, wh->i_addr2);
wh 783 net80211/ieee80211_node.c if ((ni = ieee80211_dup_bss(ic, wh->i_addr2)) == NULL)
wh 793 net80211/ieee80211_node.c ether_sprintf((u_int8_t *)wh->i_addr2)));
wh 172 net80211/ieee80211_output.c struct ieee80211_frame *wh;
wh 191 net80211/ieee80211_output.c wh = mtod(m, struct ieee80211_frame *);
wh 192 net80211/ieee80211_output.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT | type;
wh 193 net80211/ieee80211_output.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 194 net80211/ieee80211_output.c *(u_int16_t *)&wh->i_dur[0] = 0;
wh 195 net80211/ieee80211_output.c *(u_int16_t *)&wh->i_seq[0] =
wh 198 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, ni->ni_macaddr);
wh 199 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 200 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, ni->ni_bssid);
wh 440 net80211/ieee80211_output.c struct ieee80211_frame *wh;
wh 455 net80211/ieee80211_output.c wh = mtod(m, struct ieee80211_frame *);
wh 460 net80211/ieee80211_output.c if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=
wh 464 net80211/ieee80211_output.c switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 467 net80211/ieee80211_output.c addr = wh->i_addr1;
wh 471 net80211/ieee80211_output.c addr = wh->i_addr3;
wh 544 net80211/ieee80211_output.c wh = mtod(m, struct ieee80211_frame *);
wh 545 net80211/ieee80211_output.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_DATA;
wh 546 net80211/ieee80211_output.c *(u_int16_t *)&wh->i_dur[0] = 0;
wh 549 net80211/ieee80211_output.c (struct ieee80211_qosframe *)wh;
wh 557 net80211/ieee80211_output.c *(u_int16_t *)&wh->i_seq[0] =
wh 563 net80211/ieee80211_output.c wh->i_fc[1] = IEEE80211_FC1_DIR_TODS;
wh 564 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, ni->ni_bssid);
wh 565 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, eh.ether_shost);
wh 566 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, eh.ether_dhost);
wh 570 net80211/ieee80211_output.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 571 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, eh.ether_dhost);
wh 572 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, eh.ether_shost);
wh 573 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, ic->ic_bss->ni_bssid);
wh 576 net80211/ieee80211_output.c wh->i_fc[1] = IEEE80211_FC1_DIR_FROMDS;
wh 577 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, eh.ether_dhost);
wh 578 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, ni->ni_bssid);
wh 579 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, eh.ether_shost);
wh 585 net80211/ieee80211_output.c wh->i_fc[1] |= IEEE80211_FC1_WEP;
wh 1355 net80211/ieee80211_output.c ieee80211_get_rts(struct ieee80211com *ic, const struct ieee80211_frame *wh,
wh 1372 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(rts->i_ra, wh->i_addr1);
wh 1373 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(rts->i_ta, wh->i_addr2);
wh 1423 net80211/ieee80211_output.c struct ieee80211_frame *wh;
wh 1442 net80211/ieee80211_output.c wh = mtod(m, struct ieee80211_frame *);
wh 1443 net80211/ieee80211_output.c wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
wh 1445 net80211/ieee80211_output.c wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
wh 1446 net80211/ieee80211_output.c *(u_int16_t *)wh->i_dur = 0;
wh 1447 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr1, etherbroadcastaddr);
wh 1448 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_myaddr);
wh 1449 net80211/ieee80211_output.c IEEE80211_ADDR_COPY(wh->i_addr3, ni->ni_bssid);
wh 1450 net80211/ieee80211_output.c *(u_int16_t *)wh->i_seq = 0;
wh 1452 net80211/ieee80211_output.c frm = (u_int8_t *)&wh[1];
wh 154 net80211/ieee80211_proto.c struct ieee80211_frame *wh;
wh 157 net80211/ieee80211_proto.c wh = (struct ieee80211_frame *)buf;
wh 158 net80211/ieee80211_proto.c switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {
wh 160 net80211/ieee80211_proto.c printf("NODS %s", ether_sprintf(wh->i_addr2));
wh 161 net80211/ieee80211_proto.c printf("->%s", ether_sprintf(wh->i_addr1));
wh 162 net80211/ieee80211_proto.c printf("(%s)", ether_sprintf(wh->i_addr3));
wh 165 net80211/ieee80211_proto.c printf("TODS %s", ether_sprintf(wh->i_addr2));
wh 166 net80211/ieee80211_proto.c printf("->%s", ether_sprintf(wh->i_addr3));
wh 167 net80211/ieee80211_proto.c printf("(%s)", ether_sprintf(wh->i_addr1));
wh 170 net80211/ieee80211_proto.c printf("FRDS %s", ether_sprintf(wh->i_addr3));
wh 171 net80211/ieee80211_proto.c printf("->%s", ether_sprintf(wh->i_addr1));
wh 172 net80211/ieee80211_proto.c printf("(%s)", ether_sprintf(wh->i_addr2));
wh 175 net80211/ieee80211_proto.c printf("DSDS %s", ether_sprintf((u_int8_t *)&wh[1]));
wh 176 net80211/ieee80211_proto.c printf("->%s", ether_sprintf(wh->i_addr3));
wh 177 net80211/ieee80211_proto.c printf("(%s", ether_sprintf(wh->i_addr2));
wh 178 net80211/ieee80211_proto.c printf("->%s)", ether_sprintf(wh->i_addr1));
wh 181 net80211/ieee80211_proto.c switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) {
wh 187 net80211/ieee80211_proto.c (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK)
wh 191 net80211/ieee80211_proto.c printf(" type#%d", wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK);
wh 194 net80211/ieee80211_proto.c if (wh->i_fc[1] & IEEE80211_FC1_WEP)
wh 87 net80211/ieee80211_rssadapt.c const struct ieee80211_rateset *rs, const struct ieee80211_frame *wh,
wh 93 net80211/ieee80211_rssadapt.c if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL)
wh 130 net80211/ieee80211_rssadapt.c dvname, ether_sprintf((u_int8_t *)wh->i_addr1), len,