Lines Matching refs:rtap
208 struct ieee80211_vendor_radiotap *rtap; in ieee80211_rx_radiotap_hdrlen() local
225 rtap = (void *)&skb->data[vendor_data_offset]; in ieee80211_rx_radiotap_hdrlen()
231 if (WARN_ON(rtap->align == 0)) in ieee80211_rx_radiotap_hdrlen()
232 rtap->align = 1; in ieee80211_rx_radiotap_hdrlen()
233 len = ALIGN(len, rtap->align); in ieee80211_rx_radiotap_hdrlen()
234 len += rtap->len + rtap->pad; in ieee80211_rx_radiotap_hdrlen()
304 struct ieee80211_vendor_radiotap rtap = {}; in ieee80211_add_rx_radiotap_header() local
326 rtap = *(struct ieee80211_vendor_radiotap *)skb->data; in ieee80211_add_rx_radiotap_header()
328 skb_pull(skb, sizeof(rtap) + rtap.len + rtap.pad); in ieee80211_add_rx_radiotap_header()
336 memset(rthdr, 0, rtap_len - rtap.len - rtap.pad); in ieee80211_add_rx_radiotap_header()
363 it_present_val = rtap.present; in ieee80211_add_rx_radiotap_header()
688 *pos++ = rtap.oui[0]; in ieee80211_add_rx_radiotap_header()
689 *pos++ = rtap.oui[1]; in ieee80211_add_rx_radiotap_header()
690 *pos++ = rtap.oui[2]; in ieee80211_add_rx_radiotap_header()
691 *pos++ = rtap.subns; in ieee80211_add_rx_radiotap_header()
692 put_unaligned_le16(rtap.len, pos); in ieee80211_add_rx_radiotap_header()
695 while ((pos - (u8 *)rthdr) & (rtap.align - 1)) in ieee80211_add_rx_radiotap_header()
783 struct ieee80211_vendor_radiotap *rtap = in ieee80211_rx_monitor() local
786 rtap_space += sizeof(*rtap) + rtap->len + rtap->pad; in ieee80211_rx_monitor()