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>
10 #include <net/ieee80211.h>
12 struct ieeetypes_cfparamset {
17 __le16 cfpmaxduration;
18 __le16 cfpdurationremaining;
19 } __attribute__ ((packed));
22 struct ieeetypes_ibssparamset {
26 } __attribute__ ((packed));
28 union IEEEtypes_ssparamset {
29 struct ieeetypes_cfparamset cfparamset;
30 struct ieeetypes_ibssparamset ibssparamset;
31 } __attribute__ ((packed));
33 struct ieeetypes_fhparamset {
40 } __attribute__ ((packed));
42 struct ieeetypes_dsparamset {
46 } __attribute__ ((packed));
48 union ieeetypes_phyparamset {
49 struct ieeetypes_fhparamset fhparamset;
50 struct ieeetypes_dsparamset dsparamset;
51 } __attribute__ ((packed));
53 struct ieeetypes_assocrsp {
58 } __attribute__ ((packed));
60 /** TLV type ID definition */
61 #define PROPRIETARY_TLV_BASE_ID 0x0100
63 /* Terminating TLV type */
64 #define MRVL_TERMINATE_TLV_ID 0xffff
66 #define TLV_TYPE_SSID 0x0000
67 #define TLV_TYPE_RATES 0x0001
68 #define TLV_TYPE_PHY_FH 0x0002
69 #define TLV_TYPE_PHY_DS 0x0003
70 #define TLV_TYPE_CF 0x0004
71 #define TLV_TYPE_IBSS 0x0006
73 #define TLV_TYPE_DOMAIN 0x0007
75 #define TLV_TYPE_POWER_CAPABILITY 0x0021
77 #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0)
78 #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1)
79 #define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2)
80 #define TLV_TYPE_RSSI_LOW (PROPRIETARY_TLV_BASE_ID + 4)
81 #define TLV_TYPE_SNR_LOW (PROPRIETARY_TLV_BASE_ID + 5)
82 #define TLV_TYPE_FAILCOUNT (PROPRIETARY_TLV_BASE_ID + 6)
83 #define TLV_TYPE_BCNMISS (PROPRIETARY_TLV_BASE_ID + 7)
84 #define TLV_TYPE_LED_GPIO (PROPRIETARY_TLV_BASE_ID + 8)
85 #define TLV_TYPE_LEDBEHAVIOR (PROPRIETARY_TLV_BASE_ID + 9)
86 #define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10)
87 #define TLV_TYPE_REASSOCAP (PROPRIETARY_TLV_BASE_ID + 11)
88 #define TLV_TYPE_POWER_TBL_2_4GHZ (PROPRIETARY_TLV_BASE_ID + 12)
89 #define TLV_TYPE_POWER_TBL_5GHZ (PROPRIETARY_TLV_BASE_ID + 13)
90 #define TLV_TYPE_BCASTPROBE (PROPRIETARY_TLV_BASE_ID + 14)
91 #define TLV_TYPE_NUMSSID_PROBE (PROPRIETARY_TLV_BASE_ID + 15)
92 #define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16)
93 #define TLV_TYPE_CRYPTO_DATA (PROPRIETARY_TLV_BASE_ID + 17)
94 #define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18)
95 #define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19)
96 #define TLV_TYPE_RSSI_HIGH (PROPRIETARY_TLV_BASE_ID + 22)
97 #define TLV_TYPE_SNR_HIGH (PROPRIETARY_TLV_BASE_ID + 23)
99 /** TLV related data structures*/
100 struct mrvlietypesheader {
103 } __attribute__ ((packed));
105 struct mrvlietypes_data {
106 struct mrvlietypesheader header;
108 } __attribute__ ((packed));
110 struct mrvlietypes_ratesparamset {
111 struct mrvlietypesheader header;
113 } __attribute__ ((packed));
115 struct mrvlietypes_ssidparamset {
116 struct mrvlietypesheader header;
118 } __attribute__ ((packed));
120 struct mrvlietypes_wildcardssidparamset {
121 struct mrvlietypesheader header;
124 } __attribute__ ((packed));
126 struct chanscanmode {
127 #ifdef __BIG_ENDIAN_BITFIELD
129 u8 disablechanfilt:1;
133 u8 disablechanfilt:1;
136 } __attribute__ ((packed));
138 struct chanscanparamset {
141 struct chanscanmode chanscanmode;
144 } __attribute__ ((packed));
146 struct mrvlietypes_chanlistparamset {
147 struct mrvlietypesheader header;
148 struct chanscanparamset chanscanparam[1];
149 } __attribute__ ((packed));
154 __le16 cfpmaxduration;
155 __le16 cfpdurationremaining;
156 } __attribute__ ((packed));
158 struct ibssparamset {
160 } __attribute__ ((packed));
162 struct mrvlietypes_ssparamset {
163 struct mrvlietypesheader header;
165 struct cfparamset cfparamset[1];
166 struct ibssparamset ibssparamset[1];
168 } __attribute__ ((packed));
175 } __attribute__ ((packed));
179 } __attribute__ ((packed));
181 struct mrvlietypes_phyparamset {
182 struct mrvlietypesheader header;
184 struct fhparamset fhparamset[1];
185 struct dsparamset dsparamset[1];
187 } __attribute__ ((packed));
189 struct mrvlietypes_rsnparamset {
190 struct mrvlietypesheader header;
192 } __attribute__ ((packed));
194 struct mrvlietypes_tsftimestamp {
195 struct mrvlietypesheader header;
197 } __attribute__ ((packed));
199 /** Local Power capability */
200 struct mrvlietypes_powercapability {
201 struct mrvlietypesheader header;
204 } __attribute__ ((packed));
206 /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
207 struct mrvlietypes_thresholds {
208 struct mrvlietypesheader header;
211 } __attribute__ ((packed));
213 struct mrvlietypes_beaconsmissed {
214 struct mrvlietypesheader header;
217 } __attribute__ ((packed));
219 struct mrvlietypes_numprobes {
220 struct mrvlietypesheader header;
222 } __attribute__ ((packed));
224 struct mrvlietypes_bcastprobe {
225 struct mrvlietypesheader header;
227 } __attribute__ ((packed));
229 struct mrvlietypes_numssidprobe {
230 struct mrvlietypesheader header;
232 } __attribute__ ((packed));
237 } __attribute__ ((packed));
239 struct mrvlietypes_ledgpio {
240 struct mrvlietypesheader header;
241 struct led_pin ledpin[1];
242 } __attribute__ ((packed));
245 uint8_t firmwarestate;
249 } __attribute__ ((packed));
252 struct mrvlietypes_ledbhv {
253 struct mrvlietypesheader header;
254 struct led_bhv ledbhv[1];
255 } __attribute__ ((packed));
257 /* Meant to be packed as the value member of a struct ieee80211_info_element.
258 * Note that the len member of the ieee80211_info_element varies depending on
260 struct mrvl_meshie_val {
261 uint8_t oui[P80211_OUI_LEN];
265 uint8_t active_protocol_id;
266 uint8_t active_metric_id;
267 uint8_t mesh_capability;
269 uint8_t mesh_id[IW_ESSID_MAX_SIZE];
270 } __attribute__ ((packed));
273 struct ieee80211_info_element hdr;
274 struct mrvl_meshie_val val;
275 } __attribute__ ((packed));
277 struct mrvl_mesh_defaults {
282 struct mrvl_meshie meshie;
283 } __attribute__ ((packed));