2 * This header file contains definition for global types
7 #include <linux/if_ether.h>
8 #include <asm/byteorder.h>
9 #include <linux/wireless.h>
11 struct ieeetypes_cfparamset {
16 __le16 cfpmaxduration;
17 __le16 cfpdurationremaining;
18 } __attribute__ ((packed));
21 struct ieeetypes_ibssparamset {
25 } __attribute__ ((packed));
27 union IEEEtypes_ssparamset {
28 struct ieeetypes_cfparamset cfparamset;
29 struct ieeetypes_ibssparamset ibssparamset;
30 } __attribute__ ((packed));
32 struct ieeetypes_fhparamset {
39 } __attribute__ ((packed));
41 struct ieeetypes_dsparamset {
45 } __attribute__ ((packed));
47 union ieeetypes_phyparamset {
48 struct ieeetypes_fhparamset fhparamset;
49 struct ieeetypes_dsparamset dsparamset;
50 } __attribute__ ((packed));
52 struct ieeetypes_assocrsp {
57 } __attribute__ ((packed));
59 /** TLV type ID definition */
60 #define PROPRIETARY_TLV_BASE_ID 0x0100
62 /* Terminating TLV type */
63 #define MRVL_TERMINATE_TLV_ID 0xffff
65 #define TLV_TYPE_SSID 0x0000
66 #define TLV_TYPE_RATES 0x0001
67 #define TLV_TYPE_PHY_FH 0x0002
68 #define TLV_TYPE_PHY_DS 0x0003
69 #define TLV_TYPE_CF 0x0004
70 #define TLV_TYPE_IBSS 0x0006
72 #define TLV_TYPE_DOMAIN 0x0007
74 #define TLV_TYPE_POWER_CAPABILITY 0x0021
76 #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0)
77 #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1)
78 #define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2)
79 #define TLV_TYPE_RSSI_LOW (PROPRIETARY_TLV_BASE_ID + 4)
80 #define TLV_TYPE_SNR_LOW (PROPRIETARY_TLV_BASE_ID + 5)
81 #define TLV_TYPE_FAILCOUNT (PROPRIETARY_TLV_BASE_ID + 6)
82 #define TLV_TYPE_BCNMISS (PROPRIETARY_TLV_BASE_ID + 7)
83 #define TLV_TYPE_LED_GPIO (PROPRIETARY_TLV_BASE_ID + 8)
84 #define TLV_TYPE_LEDBEHAVIOR (PROPRIETARY_TLV_BASE_ID + 9)
85 #define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10)
86 #define TLV_TYPE_REASSOCAP (PROPRIETARY_TLV_BASE_ID + 11)
87 #define TLV_TYPE_POWER_TBL_2_4GHZ (PROPRIETARY_TLV_BASE_ID + 12)
88 #define TLV_TYPE_POWER_TBL_5GHZ (PROPRIETARY_TLV_BASE_ID + 13)
89 #define TLV_TYPE_BCASTPROBE (PROPRIETARY_TLV_BASE_ID + 14)
90 #define TLV_TYPE_NUMSSID_PROBE (PROPRIETARY_TLV_BASE_ID + 15)
91 #define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16)
92 #define TLV_TYPE_CRYPTO_DATA (PROPRIETARY_TLV_BASE_ID + 17)
93 #define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18)
94 #define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19)
95 #define TLV_TYPE_RSSI_HIGH (PROPRIETARY_TLV_BASE_ID + 22)
96 #define TLV_TYPE_SNR_HIGH (PROPRIETARY_TLV_BASE_ID + 23)
97 #define TLV_TYPE_MESH_ID (PROPRIETARY_TLV_BASE_ID + 37)
98 #define TLV_TYPE_OLD_MESH_ID (PROPRIETARY_TLV_BASE_ID + 291)
100 /** TLV related data structures*/
101 struct mrvlietypesheader {
104 } __attribute__ ((packed));
106 struct mrvlietypes_data {
107 struct mrvlietypesheader header;
109 } __attribute__ ((packed));
111 struct mrvlietypes_ratesparamset {
112 struct mrvlietypesheader header;
114 } __attribute__ ((packed));
116 struct mrvlietypes_ssidparamset {
117 struct mrvlietypesheader header;
119 } __attribute__ ((packed));
121 struct mrvlietypes_wildcardssidparamset {
122 struct mrvlietypesheader header;
125 } __attribute__ ((packed));
127 struct chanscanmode {
128 #ifdef __BIG_ENDIAN_BITFIELD
130 u8 disablechanfilt:1;
134 u8 disablechanfilt:1;
137 } __attribute__ ((packed));
139 struct chanscanparamset {
142 struct chanscanmode chanscanmode;
145 } __attribute__ ((packed));
147 struct mrvlietypes_chanlistparamset {
148 struct mrvlietypesheader header;
149 struct chanscanparamset chanscanparam[1];
150 } __attribute__ ((packed));
155 __le16 cfpmaxduration;
156 __le16 cfpdurationremaining;
157 } __attribute__ ((packed));
159 struct ibssparamset {
161 } __attribute__ ((packed));
163 struct mrvlietypes_ssparamset {
164 struct mrvlietypesheader header;
166 struct cfparamset cfparamset[1];
167 struct ibssparamset ibssparamset[1];
169 } __attribute__ ((packed));
176 } __attribute__ ((packed));
180 } __attribute__ ((packed));
182 struct mrvlietypes_phyparamset {
183 struct mrvlietypesheader header;
185 struct fhparamset fhparamset[1];
186 struct dsparamset dsparamset[1];
188 } __attribute__ ((packed));
190 struct mrvlietypes_rsnparamset {
191 struct mrvlietypesheader header;
193 } __attribute__ ((packed));
195 struct mrvlietypes_tsftimestamp {
196 struct mrvlietypesheader header;
198 } __attribute__ ((packed));
200 /** Local Power capability */
201 struct mrvlietypes_powercapability {
202 struct mrvlietypesheader header;
205 } __attribute__ ((packed));
207 /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
208 struct mrvlietypes_thresholds {
209 struct mrvlietypesheader header;
212 } __attribute__ ((packed));
214 struct mrvlietypes_beaconsmissed {
215 struct mrvlietypesheader header;
218 } __attribute__ ((packed));
220 struct mrvlietypes_numprobes {
221 struct mrvlietypesheader header;
223 } __attribute__ ((packed));
225 struct mrvlietypes_bcastprobe {
226 struct mrvlietypesheader header;
228 } __attribute__ ((packed));
230 struct mrvlietypes_numssidprobe {
231 struct mrvlietypesheader header;
233 } __attribute__ ((packed));
238 } __attribute__ ((packed));
240 struct mrvlietypes_ledgpio {
241 struct mrvlietypesheader header;
242 struct led_pin ledpin[1];
243 } __attribute__ ((packed));
246 uint8_t firmwarestate;
250 } __attribute__ ((packed));
253 struct mrvlietypes_ledbhv {
254 struct mrvlietypesheader header;
255 struct led_bhv ledbhv[1];
256 } __attribute__ ((packed));
258 /* Meant to be packed as the value member of a struct ieee80211_info_element.
259 * Note that the len member of the ieee80211_info_element varies depending on
261 struct mrvl_meshie_val {
266 uint8_t active_protocol_id;
267 uint8_t active_metric_id;
268 uint8_t mesh_capability;
270 uint8_t mesh_id[IW_ESSID_MAX_SIZE];
271 } __attribute__ ((packed));
275 struct mrvl_meshie_val val;
276 } __attribute__ ((packed));
278 struct mrvl_mesh_defaults {
283 struct mrvl_meshie meshie;
284 } __attribute__ ((packed));