Lines Matching full:rh

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