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)
98 /** TLV related data structures*/
99 struct mrvlietypesheader {
102 } __attribute__ ((packed));
104 struct mrvlietypes_data {
105 struct mrvlietypesheader header;
107 } __attribute__ ((packed));
109 struct mrvlietypes_ratesparamset {
110 struct mrvlietypesheader header;
112 } __attribute__ ((packed));
114 struct mrvlietypes_ssidparamset {
115 struct mrvlietypesheader header;
117 } __attribute__ ((packed));
119 struct mrvlietypes_wildcardssidparamset {
120 struct mrvlietypesheader header;
123 } __attribute__ ((packed));
125 struct chanscanmode {
126 #ifdef __BIG_ENDIAN_BITFIELD
128 u8 disablechanfilt:1;
132 u8 disablechanfilt:1;
135 } __attribute__ ((packed));
137 struct chanscanparamset {
140 struct chanscanmode chanscanmode;
143 } __attribute__ ((packed));
145 struct mrvlietypes_chanlistparamset {
146 struct mrvlietypesheader header;
147 struct chanscanparamset chanscanparam[1];
148 } __attribute__ ((packed));
153 __le16 cfpmaxduration;
154 __le16 cfpdurationremaining;
155 } __attribute__ ((packed));
157 struct ibssparamset {
159 } __attribute__ ((packed));
161 struct mrvlietypes_ssparamset {
162 struct mrvlietypesheader header;
164 struct cfparamset cfparamset[1];
165 struct ibssparamset ibssparamset[1];
167 } __attribute__ ((packed));
174 } __attribute__ ((packed));
178 } __attribute__ ((packed));
180 struct mrvlietypes_phyparamset {
181 struct mrvlietypesheader header;
183 struct fhparamset fhparamset[1];
184 struct dsparamset dsparamset[1];
186 } __attribute__ ((packed));
188 struct mrvlietypes_rsnparamset {
189 struct mrvlietypesheader header;
191 } __attribute__ ((packed));
193 struct mrvlietypes_tsftimestamp {
194 struct mrvlietypesheader header;
196 } __attribute__ ((packed));
198 /** Local Power capability */
199 struct mrvlietypes_powercapability {
200 struct mrvlietypesheader header;
203 } __attribute__ ((packed));
205 /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
206 struct mrvlietypes_thresholds {
207 struct mrvlietypesheader header;
210 } __attribute__ ((packed));
212 struct mrvlietypes_beaconsmissed {
213 struct mrvlietypesheader header;
216 } __attribute__ ((packed));
218 struct mrvlietypes_numprobes {
219 struct mrvlietypesheader header;
221 } __attribute__ ((packed));
223 struct mrvlietypes_bcastprobe {
224 struct mrvlietypesheader header;
226 } __attribute__ ((packed));
228 struct mrvlietypes_numssidprobe {
229 struct mrvlietypesheader header;
231 } __attribute__ ((packed));
236 } __attribute__ ((packed));
238 struct mrvlietypes_ledgpio {
239 struct mrvlietypesheader header;
240 struct led_pin ledpin[1];
241 } __attribute__ ((packed));
244 uint8_t firmwarestate;
248 } __attribute__ ((packed));
251 struct mrvlietypes_ledbhv {
252 struct mrvlietypesheader header;
253 struct led_bhv ledbhv[1];
254 } __attribute__ ((packed));
256 /* Meant to be packed as the value member of a struct ieee80211_info_element.
257 * Note that the len member of the ieee80211_info_element varies depending on
259 struct mrvl_meshie_val {
264 uint8_t active_protocol_id;
265 uint8_t active_metric_id;
266 uint8_t mesh_capability;
268 uint8_t mesh_id[IW_ESSID_MAX_SIZE];
269 } __attribute__ ((packed));
273 struct mrvl_meshie_val val;
274 } __attribute__ ((packed));
276 struct mrvl_mesh_defaults {
281 struct mrvl_meshie meshie;
282 } __attribute__ ((packed));