1 #include <net/ieee80211_radiotap.h>
3 struct tx_radiotap_hdr
{
4 struct ieee80211_radiotap_header hdr
;
10 u8 pad
[IEEE80211_RADIOTAP_HDRLEN
- 12];
12 } __attribute__ ((packed
));
14 #define TX_RADIOTAP_PRESENT ( \
15 (1 << IEEE80211_RADIOTAP_RATE) | \
16 (1 << IEEE80211_RADIOTAP_DBM_TX_POWER) | \
17 (1 << IEEE80211_RADIOTAP_RTS_RETRIES) | \
18 (1 << IEEE80211_RADIOTAP_DATA_RETRIES) | \
21 #define IEEE80211_FC_VERSION_MASK 0x0003
22 #define IEEE80211_FC_TYPE_MASK 0x000c
23 #define IEEE80211_FC_TYPE_MGT 0x0000
24 #define IEEE80211_FC_TYPE_CTL 0x0004
25 #define IEEE80211_FC_TYPE_DATA 0x0008
26 #define IEEE80211_FC_SUBTYPE_MASK 0x00f0
27 #define IEEE80211_FC_TOFROMDS_MASK 0x0300
28 #define IEEE80211_FC_TODS_MASK 0x0100
29 #define IEEE80211_FC_FROMDS_MASK 0x0200
30 #define IEEE80211_FC_NODS 0x0000
31 #define IEEE80211_FC_TODS 0x0100
32 #define IEEE80211_FC_FROMDS 0x0200
33 #define IEEE80211_FC_DSTODS 0x0300
35 struct rx_radiotap_hdr
{
36 struct ieee80211_radiotap_header hdr
;
45 u8 pad
[IEEE80211_RADIOTAP_HDRLEN
- 18];
47 } __attribute__ ((packed
));
49 #define RX_RADIOTAP_PRESENT ( \
50 (1 << IEEE80211_RADIOTAP_FLAGS) | \
51 (1 << IEEE80211_RADIOTAP_RATE) | \
52 (1 << IEEE80211_RADIOTAP_CHANNEL) | \
53 (1 << IEEE80211_RADIOTAP_ANTENNA) | \
54 (1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL) |\
55 (1 << IEEE80211_RADIOTAP_RX_FLAGS) | \