Lines Matching defs:rh
56 struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap)
59 rh, rlen, 0, rx_radiotap);
66 struct ieee80211_radiotap_header *rh,
88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t)));
89 rh->it_present = htole32(rx_radiotap);
90 ic->ic_rh = rh;
94 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_CHANNEL);
96 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_XCHANNEL);
102 ic->ic_rxchan = ((uint8_t *) rh) + off;
166 struct ieee80211_radiotap_header *rh = ic->ic_rh;
168 if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_XCHANNEL))
170 else if (rh->it_present & htole32(1<<IEEE80211_RADIOTAP_CHANNEL))
189 struct ieee80211_radiotap_header *rh, int len)
199 bpf_mtap2(vap->iv_rawbpf, rh, len, m);
232 struct ieee80211_radiotap_header *rh = ic->ic_rh;
235 KASSERT(rh != NULL, ("no rx radiotap header"));
236 len = le16toh(rh->it_len);
239 bpf_mtap2(vap0->iv_rawbpf, rh, len, m);
246 spam_vaps(vap0, m, rh, len);
257 struct ieee80211_radiotap_header *rh = ic->ic_rh;
258 int len = le16toh(rh->it_len);
265 bpf_mtap2(vap->iv_rawbpf, rh, len, m);
275 radiotap_offset(struct ieee80211_radiotap_header *rh,
346 uint32_t present = le32toh(rh->it_present);
362 if (off + items[i].width > le16toh(rh->it_len)) {
366 off, items[i].width, le16toh(rh->it_len));