diff options
author | Marcelo Tosatti <marcelo@kvack.org> | 2007-02-10 09:25:27 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:00:54 -0400 |
commit | 876c9d3aeb989cf1961f2c228d309ba5dcfb1172 (patch) | |
tree | 239e9db92d13abc799c1ffc5304d8ec1503dbc61 /drivers/net/wireless/libertas/radiotap.h | |
parent | 35c3404efa7407811b706453f83d39b2539dcbd0 (diff) |
[PATCH] Marvell Libertas 8388 802.11b/g USB driver
Add the Marvell Libertas 8388 802.11 USB driver.
Signed-off-by: Marcelo Tosatti <marcelo@kvack.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/radiotap.h')
-rw-r--r-- | drivers/net/wireless/libertas/radiotap.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/radiotap.h b/drivers/net/wireless/libertas/radiotap.h new file mode 100644 index 000000000000..5d118f40cfbc --- /dev/null +++ b/drivers/net/wireless/libertas/radiotap.h | |||
@@ -0,0 +1,57 @@ | |||
1 | #include <net/ieee80211_radiotap.h> | ||
2 | |||
3 | struct tx_radiotap_hdr { | ||
4 | struct ieee80211_radiotap_header hdr; | ||
5 | u8 rate; | ||
6 | u8 txpower; | ||
7 | u8 rts_retries; | ||
8 | u8 data_retries; | ||
9 | #if 0 | ||
10 | u8 pad[IEEE80211_RADIOTAP_HDRLEN - 12]; | ||
11 | #endif | ||
12 | } __attribute__ ((packed)); | ||
13 | |||
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) | \ | ||
19 | 0) | ||
20 | |||
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 | ||
34 | |||
35 | struct rx_radiotap_hdr { | ||
36 | struct ieee80211_radiotap_header hdr; | ||
37 | u8 flags; | ||
38 | u8 rate; | ||
39 | u16 chan_freq; | ||
40 | u16 chan_flags; | ||
41 | u8 antenna; | ||
42 | u8 antsignal; | ||
43 | u16 rx_flags; | ||
44 | #if 0 | ||
45 | u8 pad[IEEE80211_RADIOTAP_HDRLEN - 18]; | ||
46 | #endif | ||
47 | } __attribute__ ((packed)); | ||
48 | |||
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) | \ | ||
56 | 0) | ||
57 | |||