Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wl12xx_80211.h
Go to the documentation of this file.
1 #ifndef __WL12XX_80211_H__
2 #define __WL12XX_80211_H__
3 
4 #include <linux/if_ether.h> /* ETH_ALEN */
5 
6 /* RATES */
7 #define IEEE80211_CCK_RATE_1MB 0x02
8 #define IEEE80211_CCK_RATE_2MB 0x04
9 #define IEEE80211_CCK_RATE_5MB 0x0B
10 #define IEEE80211_CCK_RATE_11MB 0x16
11 #define IEEE80211_OFDM_RATE_6MB 0x0C
12 #define IEEE80211_OFDM_RATE_9MB 0x12
13 #define IEEE80211_OFDM_RATE_12MB 0x18
14 #define IEEE80211_OFDM_RATE_18MB 0x24
15 #define IEEE80211_OFDM_RATE_24MB 0x30
16 #define IEEE80211_OFDM_RATE_36MB 0x48
17 #define IEEE80211_OFDM_RATE_48MB 0x60
18 #define IEEE80211_OFDM_RATE_54MB 0x6C
19 #define IEEE80211_BASIC_RATE_MASK 0x80
20 
21 #define IEEE80211_CCK_RATE_1MB_MASK (1<<0)
22 #define IEEE80211_CCK_RATE_2MB_MASK (1<<1)
23 #define IEEE80211_CCK_RATE_5MB_MASK (1<<2)
24 #define IEEE80211_CCK_RATE_11MB_MASK (1<<3)
25 #define IEEE80211_OFDM_RATE_6MB_MASK (1<<4)
26 #define IEEE80211_OFDM_RATE_9MB_MASK (1<<5)
27 #define IEEE80211_OFDM_RATE_12MB_MASK (1<<6)
28 #define IEEE80211_OFDM_RATE_18MB_MASK (1<<7)
29 #define IEEE80211_OFDM_RATE_24MB_MASK (1<<8)
30 #define IEEE80211_OFDM_RATE_36MB_MASK (1<<9)
31 #define IEEE80211_OFDM_RATE_48MB_MASK (1<<10)
32 #define IEEE80211_OFDM_RATE_54MB_MASK (1<<11)
33 
34 #define IEEE80211_CCK_RATES_MASK 0x0000000F
35 #define IEEE80211_CCK_BASIC_RATES_MASK (IEEE80211_CCK_RATE_1MB_MASK | \
36  IEEE80211_CCK_RATE_2MB_MASK)
37 #define IEEE80211_CCK_DEFAULT_RATES_MASK (IEEE80211_CCK_BASIC_RATES_MASK | \
38  IEEE80211_CCK_RATE_5MB_MASK | \
39  IEEE80211_CCK_RATE_11MB_MASK)
40 
41 #define IEEE80211_OFDM_RATES_MASK 0x00000FF0
42 #define IEEE80211_OFDM_BASIC_RATES_MASK (IEEE80211_OFDM_RATE_6MB_MASK | \
43  IEEE80211_OFDM_RATE_12MB_MASK | \
44  IEEE80211_OFDM_RATE_24MB_MASK)
45 #define IEEE80211_OFDM_DEFAULT_RATES_MASK (IEEE80211_OFDM_BASIC_RATES_MASK | \
46  IEEE80211_OFDM_RATE_9MB_MASK | \
47  IEEE80211_OFDM_RATE_18MB_MASK | \
48  IEEE80211_OFDM_RATE_36MB_MASK | \
49  IEEE80211_OFDM_RATE_48MB_MASK | \
50  IEEE80211_OFDM_RATE_54MB_MASK)
51 #define IEEE80211_DEFAULT_RATES_MASK (IEEE80211_OFDM_DEFAULT_RATES_MASK | \
52  IEEE80211_CCK_DEFAULT_RATES_MASK)
53 
54 
55 /* This really should be 8, but not for our firmware */
56 #define MAX_SUPPORTED_RATES 32
57 #define MAX_COUNTRY_TRIPLETS 32
58 
59 /* Headers */
67  u8 payload[0];
68 } __packed;
69 
71  u8 id;
73 } __packed;
74 
75 /* IEs */
76 
80 } __packed;
81 
85 } __packed;
86 
90 } __packed;
91 
96 } __packed;
97 
102 } __packed;
103 
104 
105 /* Templates */
106 
117 } __packed;
118 
121 } __packed;
122 
128 } __packed;
129 
133 } __packed;
134 
140 } __packed;
141 
142 
153 } __packed;
154 
155 #endif