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_header
{
14 } __attribute__ ((packed
));
16 struct ieee_ie_cf_param_set
{
17 struct ieee_ie_header header
;
21 __le16 cfpmaxduration
;
22 __le16 cfpdurationremaining
;
23 } __attribute__ ((packed
));
26 struct ieee_ie_ibss_param_set
{
27 struct ieee_ie_header header
;
30 } __attribute__ ((packed
));
32 union ieee_ss_param_set
{
33 struct ieee_ie_cf_param_set cf
;
34 struct ieee_ie_ibss_param_set ibss
;
35 } __attribute__ ((packed
));
37 struct ieee_ie_fh_param_set
{
38 struct ieee_ie_header header
;
44 } __attribute__ ((packed
));
46 struct ieee_ie_ds_param_set
{
47 struct ieee_ie_header header
;
50 } __attribute__ ((packed
));
52 union ieee_phy_param_set
{
53 struct ieee_ie_fh_param_set fh
;
54 struct ieee_ie_ds_param_set ds
;
55 } __attribute__ ((packed
));
57 struct ieee_assoc_response
{
62 } __attribute__ ((packed
));
64 /** TLV type ID definition */
65 #define PROPRIETARY_TLV_BASE_ID 0x0100
67 /* Terminating TLV type */
68 #define MRVL_TERMINATE_TLV_ID 0xffff
70 #define TLV_TYPE_SSID 0x0000
71 #define TLV_TYPE_RATES 0x0001
72 #define TLV_TYPE_PHY_FH 0x0002
73 #define TLV_TYPE_PHY_DS 0x0003
74 #define TLV_TYPE_CF 0x0004
75 #define TLV_TYPE_IBSS 0x0006
77 #define TLV_TYPE_DOMAIN 0x0007
79 #define TLV_TYPE_POWER_CAPABILITY 0x0021
81 #define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0)
82 #define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1)
83 #define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2)
84 #define TLV_TYPE_RSSI_LOW (PROPRIETARY_TLV_BASE_ID + 4)
85 #define TLV_TYPE_SNR_LOW (PROPRIETARY_TLV_BASE_ID + 5)
86 #define TLV_TYPE_FAILCOUNT (PROPRIETARY_TLV_BASE_ID + 6)
87 #define TLV_TYPE_BCNMISS (PROPRIETARY_TLV_BASE_ID + 7)
88 #define TLV_TYPE_LED_GPIO (PROPRIETARY_TLV_BASE_ID + 8)
89 #define TLV_TYPE_LEDBEHAVIOR (PROPRIETARY_TLV_BASE_ID + 9)
90 #define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10)
91 #define TLV_TYPE_REASSOCAP (PROPRIETARY_TLV_BASE_ID + 11)
92 #define TLV_TYPE_POWER_TBL_2_4GHZ (PROPRIETARY_TLV_BASE_ID + 12)
93 #define TLV_TYPE_POWER_TBL_5GHZ (PROPRIETARY_TLV_BASE_ID + 13)
94 #define TLV_TYPE_BCASTPROBE (PROPRIETARY_TLV_BASE_ID + 14)
95 #define TLV_TYPE_NUMSSID_PROBE (PROPRIETARY_TLV_BASE_ID + 15)
96 #define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16)
97 #define TLV_TYPE_CRYPTO_DATA (PROPRIETARY_TLV_BASE_ID + 17)
98 #define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18)
99 #define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19)
100 #define TLV_TYPE_RSSI_HIGH (PROPRIETARY_TLV_BASE_ID + 22)
101 #define TLV_TYPE_SNR_HIGH (PROPRIETARY_TLV_BASE_ID + 23)
102 #define TLV_TYPE_MESH_ID (PROPRIETARY_TLV_BASE_ID + 37)
103 #define TLV_TYPE_OLD_MESH_ID (PROPRIETARY_TLV_BASE_ID + 291)
105 /** TLV related data structures*/
106 struct mrvl_ie_header
{
109 } __attribute__ ((packed
));
111 struct mrvl_ie_data
{
112 struct mrvl_ie_header header
;
114 } __attribute__ ((packed
));
116 struct mrvl_ie_rates_param_set
{
117 struct mrvl_ie_header header
;
119 } __attribute__ ((packed
));
121 struct mrvl_ie_ssid_param_set
{
122 struct mrvl_ie_header header
;
124 } __attribute__ ((packed
));
126 struct mrvl_ie_wildcard_ssid_param_set
{
127 struct mrvl_ie_header header
;
130 } __attribute__ ((packed
));
132 struct chanscanmode
{
133 #ifdef __BIG_ENDIAN_BITFIELD
135 u8 disablechanfilt
:1;
139 u8 disablechanfilt
:1;
142 } __attribute__ ((packed
));
144 struct chanscanparamset
{
147 struct chanscanmode chanscanmode
;
150 } __attribute__ ((packed
));
152 struct mrvl_ie_chanlist_param_set
{
153 struct mrvl_ie_header header
;
154 struct chanscanparamset chanscanparam
[1];
155 } __attribute__ ((packed
));
157 struct mrvl_ie_cf_param_set
{
158 struct mrvl_ie_header header
;
161 __le16 cfpmaxduration
;
162 __le16 cfpdurationremaining
;
163 } __attribute__ ((packed
));
165 struct mrvl_ie_ds_param_set
{
166 struct mrvl_ie_header header
;
168 } __attribute__ ((packed
));
170 struct mrvl_ie_rsn_param_set
{
171 struct mrvl_ie_header header
;
173 } __attribute__ ((packed
));
175 struct mrvl_ie_tsf_timestamp
{
176 struct mrvl_ie_header header
;
178 } __attribute__ ((packed
));
180 /** Local Power capability */
181 struct mrvl_ie_power_capability
{
182 struct mrvl_ie_header header
;
185 } __attribute__ ((packed
));
187 /* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
188 struct mrvl_ie_thresholds
{
189 struct mrvl_ie_header header
;
192 } __attribute__ ((packed
));
194 struct mrvl_ie_beacons_missed
{
195 struct mrvl_ie_header header
;
198 } __attribute__ ((packed
));
200 struct mrvl_ie_num_probes
{
201 struct mrvl_ie_header header
;
203 } __attribute__ ((packed
));
205 struct mrvl_ie_bcast_probe
{
206 struct mrvl_ie_header header
;
208 } __attribute__ ((packed
));
210 struct mrvl_ie_num_ssid_probe
{
211 struct mrvl_ie_header header
;
213 } __attribute__ ((packed
));
218 } __attribute__ ((packed
));
220 struct mrvl_ie_ledgpio
{
221 struct mrvl_ie_header header
;
222 struct led_pin ledpin
[1];
223 } __attribute__ ((packed
));
226 uint8_t firmwarestate
;
230 } __attribute__ ((packed
));
233 struct mrvl_ie_ledbhv
{
234 struct mrvl_ie_header header
;
235 struct led_bhv ledbhv
[1];
236 } __attribute__ ((packed
));
238 /* Meant to be packed as the value member of a struct ieee80211_info_element.
239 * Note that the len member of the ieee80211_info_element varies depending on
241 struct mrvl_meshie_val
{
246 uint8_t active_protocol_id
;
247 uint8_t active_metric_id
;
248 uint8_t mesh_capability
;
250 uint8_t mesh_id
[IW_ESSID_MAX_SIZE
];
251 } __attribute__ ((packed
));
255 struct mrvl_meshie_val val
;
256 } __attribute__ ((packed
));
258 struct mrvl_mesh_defaults
{
263 struct mrvl_meshie meshie
;
264 } __attribute__ ((packed
));