2
* This header file contains definition for global types
7
#include <linux/if_ether.h>
8
#include <linux/ieee80211.h>
9
#include <asm/byteorder.h>
11
struct ieee_ie_header {
16
struct ieee_ie_cf_param_set {
17
struct ieee_ie_header header;
21
__le16 cfpmaxduration;
22
__le16 cfpdurationremaining;
26
struct ieee_ie_ibss_param_set {
27
struct ieee_ie_header header;
32
union ieee_ss_param_set {
33
struct ieee_ie_cf_param_set cf;
34
struct ieee_ie_ibss_param_set ibss;
37
struct ieee_ie_fh_param_set {
38
struct ieee_ie_header header;
46
struct ieee_ie_ds_param_set {
47
struct ieee_ie_header header;
52
union ieee_phy_param_set {
53
struct ieee_ie_fh_param_set fh;
54
struct ieee_ie_ds_param_set ds;
57
/* TLV type ID definition */
58
#define PROPRIETARY_TLV_BASE_ID 0x0100
60
/* Terminating TLV type */
61
#define MRVL_TERMINATE_TLV_ID 0xffff
63
#define TLV_TYPE_SSID 0x0000
64
#define TLV_TYPE_RATES 0x0001
65
#define TLV_TYPE_PHY_FH 0x0002
66
#define TLV_TYPE_PHY_DS 0x0003
67
#define TLV_TYPE_CF 0x0004
68
#define TLV_TYPE_IBSS 0x0006
70
#define TLV_TYPE_DOMAIN 0x0007
72
#define TLV_TYPE_POWER_CAPABILITY 0x0021
74
#define TLV_TYPE_KEY_MATERIAL (PROPRIETARY_TLV_BASE_ID + 0)
75
#define TLV_TYPE_CHANLIST (PROPRIETARY_TLV_BASE_ID + 1)
76
#define TLV_TYPE_NUMPROBES (PROPRIETARY_TLV_BASE_ID + 2)
77
#define TLV_TYPE_RSSI_LOW (PROPRIETARY_TLV_BASE_ID + 4)
78
#define TLV_TYPE_SNR_LOW (PROPRIETARY_TLV_BASE_ID + 5)
79
#define TLV_TYPE_FAILCOUNT (PROPRIETARY_TLV_BASE_ID + 6)
80
#define TLV_TYPE_BCNMISS (PROPRIETARY_TLV_BASE_ID + 7)
81
#define TLV_TYPE_LED_GPIO (PROPRIETARY_TLV_BASE_ID + 8)
82
#define TLV_TYPE_LEDBEHAVIOR (PROPRIETARY_TLV_BASE_ID + 9)
83
#define TLV_TYPE_PASSTHROUGH (PROPRIETARY_TLV_BASE_ID + 10)
84
#define TLV_TYPE_REASSOCAP (PROPRIETARY_TLV_BASE_ID + 11)
85
#define TLV_TYPE_POWER_TBL_2_4GHZ (PROPRIETARY_TLV_BASE_ID + 12)
86
#define TLV_TYPE_POWER_TBL_5GHZ (PROPRIETARY_TLV_BASE_ID + 13)
87
#define TLV_TYPE_BCASTPROBE (PROPRIETARY_TLV_BASE_ID + 14)
88
#define TLV_TYPE_NUMSSID_PROBE (PROPRIETARY_TLV_BASE_ID + 15)
89
#define TLV_TYPE_WMMQSTATUS (PROPRIETARY_TLV_BASE_ID + 16)
90
#define TLV_TYPE_CRYPTO_DATA (PROPRIETARY_TLV_BASE_ID + 17)
91
#define TLV_TYPE_WILDCARDSSID (PROPRIETARY_TLV_BASE_ID + 18)
92
#define TLV_TYPE_TSFTIMESTAMP (PROPRIETARY_TLV_BASE_ID + 19)
93
#define TLV_TYPE_RSSI_HIGH (PROPRIETARY_TLV_BASE_ID + 22)
94
#define TLV_TYPE_SNR_HIGH (PROPRIETARY_TLV_BASE_ID + 23)
95
#define TLV_TYPE_AUTH_TYPE (PROPRIETARY_TLV_BASE_ID + 31)
96
#define TLV_TYPE_MESH_ID (PROPRIETARY_TLV_BASE_ID + 37)
97
#define TLV_TYPE_OLD_MESH_ID (PROPRIETARY_TLV_BASE_ID + 291)
99
/* TLV related data structures */
100
struct mrvl_ie_header {
105
struct mrvl_ie_data {
106
struct mrvl_ie_header header;
110
struct mrvl_ie_rates_param_set {
111
struct mrvl_ie_header header;
115
struct mrvl_ie_ssid_param_set {
116
struct mrvl_ie_header header;
120
struct mrvl_ie_wildcard_ssid_param_set {
121
struct mrvl_ie_header header;
126
struct chanscanmode {
127
#ifdef __BIG_ENDIAN_BITFIELD
129
u8 disablechanfilt:1;
133
u8 disablechanfilt:1;
138
struct chanscanparamset {
141
struct chanscanmode chanscanmode;
146
struct mrvl_ie_chanlist_param_set {
147
struct mrvl_ie_header header;
148
struct chanscanparamset chanscanparam[1];
151
struct mrvl_ie_cf_param_set {
152
struct mrvl_ie_header header;
155
__le16 cfpmaxduration;
156
__le16 cfpdurationremaining;
159
struct mrvl_ie_ds_param_set {
160
struct mrvl_ie_header header;
164
struct mrvl_ie_rsn_param_set {
165
struct mrvl_ie_header header;
169
struct mrvl_ie_tsf_timestamp {
170
struct mrvl_ie_header header;
174
/* v9 and later firmware only */
175
struct mrvl_ie_auth_type {
176
struct mrvl_ie_header header;
180
/* Local Power capability */
181
struct mrvl_ie_power_capability {
182
struct mrvl_ie_header header;
187
/* used in CMD_802_11_SUBSCRIBE_EVENT for SNR, RSSI and Failure */
188
struct mrvl_ie_thresholds {
189
struct mrvl_ie_header header;
194
struct mrvl_ie_beacons_missed {
195
struct mrvl_ie_header header;
200
struct mrvl_ie_num_probes {
201
struct mrvl_ie_header header;
205
struct mrvl_ie_bcast_probe {
206
struct mrvl_ie_header header;
210
struct mrvl_ie_num_ssid_probe {
211
struct mrvl_ie_header header;
220
struct mrvl_ie_ledgpio {
221
struct mrvl_ie_header header;
222
struct led_pin ledpin[1];
226
uint8_t firmwarestate;
233
struct mrvl_ie_ledbhv {
234
struct mrvl_ie_header header;
235
struct led_bhv ledbhv[1];
239
* Meant to be packed as the value member of a struct ieee80211_info_element.
240
* Note that the len member of the ieee80211_info_element varies depending on
243
struct mrvl_meshie_val {
248
uint8_t active_protocol_id;
249
uint8_t active_metric_id;
250
uint8_t mesh_capability;
252
uint8_t mesh_id[IEEE80211_MAX_SSID_LEN];
257
struct mrvl_meshie_val val;
260
struct mrvl_mesh_defaults {
265
struct mrvl_meshie meshie;