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 ieee_ie_cf_param_set {
16 __le16 cfpmaxduration;
17 __le16 cfpdurationremaining;
18 } __attribute__ ((packed));
21 struct ieee_ie_ibss_param_set {
25 } __attribute__ ((packed));
27 union ieee_ss_param_set {
28 struct ieee_ie_cf_param_set cf;
29 struct ieee_ie_ibss_param_set ibss;
30 } __attribute__ ((packed));
32 struct ieee_ie_fh_param_set {
39 } __attribute__ ((packed));
41 struct ieee_ie_ds_param_set {
45 } __attribute__ ((packed));
47 union ieee_phy_param_set {
48 struct ieee_ie_fh_param_set fh;
49 struct ieee_ie_ds_param_set ds;
50 } __attribute__ ((packed));
52 struct ieee_assoc_response {
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));
152 struct mrvlietypes_cfparamset {
153 struct mrvlietypesheader header;
156 __le16 cfpmaxduration;
157 __le16 cfpdurationremaining;
158 } __attribute__ ((packed));
160 struct mrvlietypes_dsparamset {
161 struct mrvlietypesheader header;
163 } __attribute__ ((packed));
165 struct mrvlietypes_rsnparamset {
166 struct mrvlietypesheader header;
168 } __attribute__ ((packed));
170 struct mrvlietypes_tsftimestamp {
171 struct mrvlietypesheader header;
173 } __attribute__ ((packed));
175 /** Local Power capability */
176 struct mrvlietypes_powercapability {
177 struct mrvlietypesheader header;
180 } __attribute__ ((packed));
182 /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
183 struct mrvlietypes_thresholds {
184 struct mrvlietypesheader header;
187 } __attribute__ ((packed));
189 struct mrvlietypes_beaconsmissed {
190 struct mrvlietypesheader header;
193 } __attribute__ ((packed));
195 struct mrvlietypes_numprobes {
196 struct mrvlietypesheader header;
198 } __attribute__ ((packed));
200 struct mrvlietypes_bcastprobe {
201 struct mrvlietypesheader header;
203 } __attribute__ ((packed));
205 struct mrvlietypes_numssidprobe {
206 struct mrvlietypesheader header;
208 } __attribute__ ((packed));
213 } __attribute__ ((packed));
215 struct mrvlietypes_ledgpio {
216 struct mrvlietypesheader header;
217 struct led_pin ledpin[1];
218 } __attribute__ ((packed));
221 uint8_t firmwarestate;
225 } __attribute__ ((packed));
228 struct mrvlietypes_ledbhv {
229 struct mrvlietypesheader header;
230 struct led_bhv ledbhv[1];
231 } __attribute__ ((packed));
233 /* Meant to be packed as the value member of a struct ieee80211_info_element.
234 * Note that the len member of the ieee80211_info_element varies depending on
236 struct mrvl_meshie_val {
241 uint8_t active_protocol_id;
242 uint8_t active_metric_id;
243 uint8_t mesh_capability;
245 uint8_t mesh_id[IW_ESSID_MAX_SIZE];
246 } __attribute__ ((packed));
250 struct mrvl_meshie_val val;
251 } __attribute__ ((packed));
253 struct mrvl_mesh_defaults {
258 struct mrvl_meshie meshie;
259 } __attribute__ ((packed));