1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries.
4  * All rights reserved.
5  */
6 
7 #ifndef WILC_WLAN_IF_H
8 #define WILC_WLAN_IF_H
9 
10 #include <linux/netdevice.h>
11 #include "fw.h"
12 
13 /********************************************
14  *
15  *      Wlan Configuration ID
16  *
17  ********************************************/
18 
19 enum bss_types {
20 	WILC_FW_BSS_TYPE_INFRA = 0,
21 	WILC_FW_BSS_TYPE_INDEPENDENT,
22 	WILC_FW_BSS_TYPE_AP,
23 };
24 
25 enum {
26 	WILC_FW_OPER_MODE_B_ONLY = 0,	 /* 1, 2 M, otherwise 5, 11 M */
27 	WILC_FW_OPER_MODE_G_ONLY,	 /* 6,12,24 otherwise 9,18,36,48,54 */
28 	WILC_FW_OPER_MODE_G_MIXED_11B_1, /* 1,2,5.5,11 otherwise all on */
29 	WILC_FW_OPER_MODE_G_MIXED_11B_2, /* 1,2,5,11,6,12,24 otherwise all on */
30 };
31 
32 enum {
33 	WILC_FW_PREAMBLE_SHORT = 0,	/* Short Preamble */
34 	WILC_FW_PREAMBLE_LONG = 1,	/* Long Preamble */
35 	WILC_FW_PREAMBLE_AUTO = 2,	/* Auto Preamble Selection */
36 };
37 
38 enum {
39 	WILC_FW_PASSIVE_SCAN = 0,
40 	WILC_FW_ACTIVE_SCAN = 1,
41 };
42 
43 enum {
44 	WILC_FW_NO_POWERSAVE = 0,
45 	WILC_FW_MIN_FAST_PS = 1,
46 	WILC_FW_MAX_FAST_PS = 2,
47 	WILC_FW_MIN_PSPOLL_PS = 3,
48 	WILC_FW_MAX_PSPOLL_PS = 4
49 };
50 
51 enum bus_acquire {
52 	WILC_BUS_ACQUIRE_ONLY = 0,
53 	WILC_BUS_ACQUIRE_AND_WAKEUP = 1,
54 };
55 
56 enum bus_release {
57 	WILC_BUS_RELEASE_ONLY = 0,
58 	WILC_BUS_RELEASE_ALLOW_SLEEP = 1,
59 };
60 
61 enum {
62 	WILC_FW_NO_ENCRYPT = 0,
63 	WILC_FW_ENCRYPT_ENABLED = BIT(0),
64 	WILC_FW_WEP = BIT(1),
65 	WILC_FW_WEP_EXTENDED = BIT(2),
66 	WILC_FW_WPA = BIT(3),
67 	WILC_FW_WPA2 = BIT(4),
68 	WILC_FW_AES = BIT(5),
69 	WILC_FW_TKIP = BIT(6)
70 };
71 
72 enum {
73 	WILC_FW_SEC_NO = WILC_FW_NO_ENCRYPT,
74 	WILC_FW_SEC_WEP = WILC_FW_WEP | WILC_FW_ENCRYPT_ENABLED,
75 	WILC_FW_SEC_WEP_EXTENDED = WILC_FW_WEP_EXTENDED | WILC_FW_SEC_WEP,
76 	WILC_FW_SEC_WPA = WILC_FW_WPA | WILC_FW_ENCRYPT_ENABLED,
77 	WILC_FW_SEC_WPA_AES = WILC_FW_AES | WILC_FW_SEC_WPA,
78 	WILC_FW_SEC_WPA_TKIP = WILC_FW_TKIP | WILC_FW_SEC_WPA,
79 	WILC_FW_SEC_WPA2 = WILC_FW_WPA2 | WILC_FW_ENCRYPT_ENABLED,
80 	WILC_FW_SEC_WPA2_AES = WILC_FW_AES | WILC_FW_SEC_WPA2,
81 	WILC_FW_SEC_WPA2_TKIP = WILC_FW_TKIP | WILC_FW_SEC_WPA2
82 };
83 
84 enum authtype {
85 	WILC_FW_AUTH_OPEN_SYSTEM = 1,
86 	WILC_FW_AUTH_SHARED_KEY = 2,
87 	WILC_FW_AUTH_ANY = 3,
88 	WILC_FW_AUTH_IEEE8021 = 5,
89 	WILC_FW_AUTH_SAE = 7,
90 	WILC_FW_AUTH_IEE8021X_SHA256 = 9,
91 	WILC_FW_AUTH_OPEN_SYSTEM_SHA256 = 13
92 };
93 
94 enum mfptype {
95 	WILC_FW_MFP_NONE = 0x0,
96 	WILC_FW_MFP_OPTIONAL = 0x1,
97 	WILC_FW_MFP_REQUIRED = 0x2
98 };
99 
100 enum site_survey {
101 	WILC_FW_SITE_SURVEY_1CH = 0,
102 	WILC_FW_SITE_SURVEY_ALL_CH = 1,
103 	WILC_FW_SITE_SURVEY_OFF = 2
104 };
105 
106 enum {
107 	WILC_FW_ACK_POLICY_NORMAL = 0,
108 	WILC_FW_ACK_NO_POLICY,
109 };
110 
111 enum {
112 	WILC_FW_REKEY_POLICY_DISABLE = 1,
113 	WILC_FW_REKEY_POLICY_TIME_BASE,
114 	WILC_FW_REKEY_POLICY_PKT_BASE,
115 	WILC_FW_REKEY_POLICY_TIME_PKT_BASE
116 };
117 
118 enum {
119 	WILC_FW_FILTER_NO = 0x00,
120 	WILC_FW_FILTER_AP_ONLY = 0x01,
121 	WILC_FW_FILTER_STA_ONLY = 0x02
122 };
123 
124 enum {
125 	WILC_FW_11N_PROT_AUTO = 0,	/* Auto */
126 	WILC_FW_11N_NO_PROT,		/* Do not use any protection */
127 	WILC_FW_11N_PROT_ERP,		/* Protect all ERP frame exchanges */
128 	WILC_FW_11N_PROT_HT,		/* Protect all HT frame exchanges  */
129 	WILC_FW_11N_PROT_GF		/* Protect all GF frame exchanges  */
130 };
131 
132 enum {
133 	WILC_FW_ERP_PROT_SELF_CTS,
134 	WILC_FW_ERP_PROT_RTS_CTS,
135 };
136 
137 enum {
138 	WILC_FW_11N_OP_MODE_HT_MIXED = 1,
139 	WILC_FW_11N_OP_MODE_HT_ONLY_20MHZ,
140 	WILC_FW_11N_OP_MODE_HT_ONLY_20_40MHZ,
141 };
142 
143 enum {
144 	WILC_FW_OBBS_NONHT_NO_DETECT = 0,
145 	WILC_FW_OBBS_NONHT_DETECT_ONLY = 1,
146 	WILC_FW_OBBS_NONHT_DETECT_PROTECT = 2,
147 	WILC_FW_OBBS_NONHT_DETECT_PROTECT_REPORT = 3,
148 };
149 
150 enum {
151 	WILC_FW_HT_PROT_RTS_CTS_NONHT = 0,  /* RTS-CTS at non-HT rate */
152 	WILC_FW_HT_PROT_FIRST_FRAME_NONHT,  /* First frame at non-HT rate */
153 	WILC_FW_HT_PROT_LSIG_TXOP,	    /* LSIG TXOP Protection */
154 	WILC_FW_HT_PROT_FIRST_FRAME_MIXED,  /* First frame at Mixed format */
155 };
156 
157 enum {
158 	WILC_FW_SMPS_MODE_STATIC = 1,
159 	WILC_FW_SMPS_MODE_DYNAMIC = 2,
160 	WILC_FW_SMPS_MODE_MIMO = 3,	/* power save disable */
161 };
162 
163 enum {
164 	WILC_FW_TX_RATE_AUTO = 0,
165 	WILC_FW_TX_RATE_MBPS_1 = 1,
166 	WILC_FW_TX_RATE_MBPS_2 = 2,
167 	WILC_FW_TX_RATE_MBPS_5_5 = 5,
168 	WILC_FW_TX_RATE_MBPS_11 = 11,
169 	WILC_FW_TX_RATE_MBPS_6 = 6,
170 	WILC_FW_TX_RATE_MBPS_9 = 9,
171 	WILC_FW_TX_RATE_MBPS_12 = 12,
172 	WILC_FW_TX_RATE_MBPS_18 = 18,
173 	WILC_FW_TX_RATE_MBPS_24 = 24,
174 	WILC_FW_TX_RATE_MBPS_36 = 36,
175 	WILC_FW_TX_RATE_MBPS_48 = 48,
176 	WILC_FW_TX_RATE_MBPS_54 = 54
177 };
178 
179 enum {
180 	WILC_FW_DEFAULT_SCAN = 0,
181 	WILC_FW_USER_SCAN = BIT(0),
182 	WILC_FW_OBSS_PERIODIC_SCAN = BIT(1),
183 	WILC_FW_OBSS_ONETIME_SCAN = BIT(2)
184 };
185 
186 enum {
187 	WILC_FW_ACTION_FRM_IDX = 0,
188 	WILC_FW_PROBE_REQ_IDX = 1,
189 	WILC_FW_AUTH_REQ_IDX = 2
190 };
191 
192 enum wid_type {
193 	WID_CHAR		= 0,
194 	WID_SHORT		= 1,
195 	WID_INT			= 2,
196 	WID_STR			= 3,
197 	WID_BIN_DATA		= 4,
198 	WID_BIN			= 5,
199 };
200 
201 struct wid {
202 	u16 id;
203 	enum wid_type type;
204 	s32 size;
205 	s8 *val;
206 };
207 
208 enum {
209 	WID_NIL				= 0xffff,
210 
211 	/*
212 	 *  BSS Type
213 	 *  -----------------------------------------------------------
214 	 *  Configuration : Infrastructure   Independent   Access Point
215 	 *  Values to set :         0               1            2
216 	 *  -----------------------------------------------------------
217 	 */
218 	WID_BSS_TYPE			= 0x0000,
219 
220 	/*
221 	 *  Transmit Rate
222 	 *  -----------------------------------------------------------
223 	 *  Configuration : 1  2  5.5  11  6  9  12  18  24  36  48  54
224 	 *  Values to set : 1  2    5  11  6  9  12  18  24  36  48  54
225 	 *  -----------------------------------------------------------
226 	 */
227 	WID_CURRENT_TX_RATE		= 0x0001,
228 
229 	/*
230 	 *  Channel
231 	 *  -----------------------------------------------------------
232 	 *  Configuration(g) : 1  2  3  4  5  6  7  8  9 10 11 12 13 14
233 	 *  Values to set    : 1  2  3  4  5  6  7  8  9 10 11 12 13 14
234 	 *  -----------------------------------------------------------
235 	 */
236 	WID_CURRENT_CHANNEL		= 0x0002,
237 
238 	/*
239 	 *  Preamble
240 	 *  -----------------------------------------------------------
241 	 *  Configuration :    short    long      Auto
242 	 *  Values to set :       0       1         2
243 	 *  -----------------------------------------------------------
244 	 */
245 	WID_PREAMBLE			= 0x0003,
246 
247 	/*
248 	 * 11g operating mode (ignored if 11g not present)
249 	 *  -----------------------------------------------------------
250 	 *  Configuration :   HighPerf  Compat(RSet #1) Compat(RSet #2)
251 	 *  Values to set :          1               2               3
252 	 *  -----------------------------------------------------------
253 	 */
254 	WID_11G_OPERATING_MODE		= 0x0004,
255 
256 	/*
257 	 *  Mac status (response only)
258 	 *  -----------------------------------------------------------
259 	 *  Configuration :   disconnect  connect
260 	 *  Values to get :          0       1
261 	 *  -----------------------------------------------------------
262 	 */
263 	WID_STATUS			= 0x0005,
264 
265 	/*
266 	 *  Scan type
267 	 *  -----------------------------------------------------------
268 	 *  Configuration :   Passive Scanning   Active Scanning
269 	 *  Values to set :                  0                 1
270 	 *  -----------------------------------------------------------
271 	 */
272 	WID_SCAN_TYPE			= 0x0007,
273 
274 	/*
275 	 *  Key Id (WEP default key Id)
276 	 *  -----------------------------------------------------------
277 	 *  Configuration :   Any value between 0 to 3
278 	 *  Values to set :   Same value. Default is 0
279 	 *  -----------------------------------------------------------
280 	 */
281 	WID_KEY_ID			= 0x0009,
282 
283 	/*
284 	 *  QoS Enable
285 	 *  -----------------------------------------------------------
286 	 *  Configuration :   QoS Disable   WMM Enable
287 	 *  Values to set :   0             1
288 	 *  -----------------------------------------------------------
289 	 */
290 	WID_QOS_ENABLE			= 0x000A,
291 
292 	/*
293 	 *  Power Management
294 	 *  -----------------------------------------------------------
295 	 *  Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE
296 	 *  Values to set : 0            1             2
297 	 *  -----------------------------------------------------------
298 	 */
299 	WID_POWER_MANAGEMENT		= 0x000B,
300 
301 	/*
302 	 *  WEP/802 11I Configuration
303 	 *  -----------------------------------------------------------
304 	 *  Configuration:Disable WP40 WP104 WPA-AES WPA-TKIP RSN-AES RSN-TKIP
305 	 *  Values (0x)  :   00     03   07     29       49       31      51
306 	 *  Configuration:WPA-AES+TKIP RSN-AES+TKIP
307 	 *  Values (0x)  :      69        71
308 	 *  -----------------------------------------------------------
309 	 */
310 	WID_11I_MODE			= 0x000C,
311 
312 	/*
313 	 *  WEP Configuration: Used in BSS STA mode only when WEP is enabled
314 	 *  -----------------------------------------------------------
315 	 *  Configuration : Open System Shared Key Any Type | 802.1x Auth
316 	 *  Values (0x)   :    01             02         03 |    BIT2
317 	 *  -----------------------------------------------------------
318 	 */
319 	WID_AUTH_TYPE			= 0x000D,
320 
321 	/*
322 	 *  Site Survey Type
323 	 *  -----------------------------------------------------------
324 	 *  Configuration       :  Values to set
325 	 *  Survey 1 Channel    :  0
326 	 *  survey all Channels :  1
327 	 *  Disable Site Survey :  2
328 	 *  -----------------------------------------------------------
329 	 */
330 	WID_SITE_SURVEY			= 0x000E,
331 
332 	/*
333 	 *  Listen Interval
334 	 *  -----------------------------------------------------------
335 	 *  Configuration :   Any value between 1 to 255
336 	 *  Values to set :   Same value. Default is 3
337 	 *  -----------------------------------------------------------
338 	 */
339 	WID_LISTEN_INTERVAL		= 0x000F,
340 
341 	/*
342 	 *  DTIM Period
343 	 *  -----------------------------------------------------------
344 	 *  Configuration :   Any value between 1 to 255
345 	 *  Values to set :   Same value. Default is 3
346 	 *  -----------------------------------------------------------
347 	 */
348 	WID_DTIM_PERIOD			= 0x0010,
349 
350 	/*
351 	 *  ACK Policy
352 	 *  -----------------------------------------------------------
353 	 *  Configuration :   Normal Ack            No Ack
354 	 *  Values to set :       0                   1
355 	 *  -----------------------------------------------------------
356 	 */
357 	WID_ACK_POLICY			= 0x0011,
358 
359 	/*
360 	 *  Reset MAC (Set only)
361 	 *  -----------------------------------------------------------
362 	 *  Configuration :   Don't Reset	Reset	No Request
363 	 *  Values to set :       0               1	    2
364 	 *  -----------------------------------------------------------
365 	 */
366 	WID_RESET			= 0x0012,
367 
368 	/*
369 	 *  Broadcast SSID Option: Setting this will adhere to "" SSID element
370 	 *  -----------------------------------------------------------
371 	 *  Configuration :   Enable             Disable
372 	 *  Values to set :   1                  0
373 	 *  -----------------------------------------------------------
374 	 */
375 	WID_BCAST_SSID			= 0x0015,
376 
377 	/*
378 	 *  Disconnect (Station)
379 	 *  -----------------------------------------------------------
380 	 *  Configuration :   Association ID
381 	 *  Values to set :   Association ID
382 	 *  -----------------------------------------------------------
383 	 */
384 	WID_DISCONNECT			= 0x0016,
385 
386 	/*
387 	 *  11a Tx Power Level
388 	 *  -----------------------------------------------------------
389 	 *  Configuration : Sets TX Power (Higher the value greater the power)
390 	 *  Values to set : Any value between 0 and 63 (inclusive Default 48)
391 	 *  -----------------------------------------------------------
392 	 */
393 	WID_TX_POWER_LEVEL_11A		= 0x0018,
394 
395 	/*
396 	 *  Group Key Update Policy Selection
397 	 *  -----------------------------------------------------------
398 	 *  Configuration : Disabled timeBased packetBased timePacketBased
399 	 *  Values to set :   1            2          3              4
400 	 *  -----------------------------------------------------------
401 	 */
402 	WID_REKEY_POLICY		= 0x0019,
403 
404 	/*
405 	 *  Allow Short Slot
406 	 *  -----------------------------------------------------------
407 	 *  Configuration : Disallow Short Slot      Allow Short Slot
408 	 *          (Enable Only Long Slot) (Enable Short Slot if applicable)
409 	 *  Values to set :    0         1
410 	 *  -----------------------------------------------------------
411 	 */
412 	WID_SHORT_SLOT_ALLOWED		= 0x001A,
413 
414 	WID_PHY_ACTIVE_REG		= 0x001B,
415 
416 	/*
417 	 *  11b Tx Power Level
418 	 *  -----------------------------------------------------------
419 	 *  Configuration : Sets TX Power (Higher the value greater the power)
420 	 *  Values to set : Any value between 0 and 63 (inclusive Default 48)
421 	 *  -----------------------------------------------------------
422 	 */
423 	WID_TX_POWER_LEVEL_11B		= 0x001D,
424 
425 	/*
426 	 *  Scan Request
427 	 *  -----------------------------------------------------------
428 	 *  Configuration : Request default scan
429 	 *  Values to set : 0
430 	 *  -----------------------------------------------------------
431 	 */
432 	WID_START_SCAN_REQ		= 0x001E,
433 
434 	/*
435 	 *  Rssi (get only)
436 	 *  -----------------------------------------------------------
437 	 *  Configuration :
438 	 *  Values to get : Rssi value
439 	 *  -----------------------------------------------------------
440 	 */
441 	WID_RSSI			= 0x001F,
442 
443 	/*
444 	 * Join Request
445 	 *  -----------------------------------------------------------
446 	 *  Configuration : Request to join
447 	 *  Values to set : index of scan result
448 	 *  -----------------------------------------------------------
449 	 */
450 	WID_JOIN_REQ			= 0x0020,
451 
452 	WID_LINKSPEED			= 0x0026,
453 
454 	/*
455 	 *  Enable User Control of TX Power
456 	 *  -----------------------------------------------------------
457 	 *  Configuration : Disable                  Enable
458 	 *  Values to set :    0                       1
459 	 *  -----------------------------------------------------------
460 	 */
461 	WID_USER_CONTROL_ON_TX_POWER	= 0x0027,
462 
463 	WID_MEMORY_ACCESS_8BIT		= 0x0029,
464 
465 	/*
466 	 *  Enable Auto RX Sensitivity feature
467 	 *  -----------------------------------------------------------
468 	 *  Configuration : Disable                  Enable
469 	 *  Values to set :    0                       1
470 	 *  -----------------------------------------------------------
471 	 */
472 	WID_AUTO_RX_SENSITIVITY		= 0x0032,
473 
474 	/*
475 	 *  Receive Buffer Based Ack
476 	 *  -----------------------------------------------------------
477 	 *  Configuration : Disable                  Enable
478 	 *  Values to set :    0                       1
479 	 *  -----------------------------------------------------------
480 	 */
481 	WID_DATAFLOW_CONTROL		= 0x0033,
482 
483 	/*
484 	 *  Scan Filter
485 	 *  -----------------------------------------------------------
486 	 *  Configuration : Class       No filter   AP only   Station Only
487 	 *  Values to set :                0           1           2
488 	 *  Configuration : Priority    High Rssi   Low Rssi     Detect
489 	 *  Values to set :                0          0x4         0x0
490 	 *  Configuration : Channel     filter off  filter on
491 	 *  Values to set :                0          0x10
492 	 *  -----------------------------------------------------------
493 	 */
494 	WID_SCAN_FILTER			= 0x0036,
495 
496 	/*
497 	 *  Link Loss Threshold (measure in the beacon period)
498 	 *  -----------------------------------------------------------
499 	 *  Configuration : Any value between 10 and 254(Set to 255 disable)
500 	 *  Values to set : Same value. Default is 10
501 	 *  -----------------------------------------------------------
502 	 */
503 	WID_LINK_LOSS_THRESHOLD		= 0x0037,
504 
505 	WID_ABORT_RUNNING_SCAN		= 0x003E,
506 
507 	/* NMAC Character WID list */
508 	WID_WPS_START			= 0x0043,
509 
510 	/*
511 	 *  Protection mode for MAC
512 	 *  -----------------------------------------------------------
513 	 *  Configuration :  Auto  No protection  ERP    HT    GF
514 	 *  Values to set :  0     1              2      3     4
515 	 *  -----------------------------------------------------------
516 	 */
517 	WID_11N_PROT_MECH		= 0x0080,
518 
519 	/*
520 	 *  ERP Protection type for MAC
521 	 *  -----------------------------------------------------------
522 	 *  Configuration :  Self-CTS   RTS-CTS
523 	 *  Values to set :  0          1
524 	 *  -----------------------------------------------------------
525 	 */
526 	WID_11N_ERP_PROT_TYPE		= 0x0081,
527 
528 	/*
529 	 *  HT Option Enable
530 	 *  -----------------------------------------------------------
531 	 *  Configuration :   HT Enable          HT Disable
532 	 *  Values to set :   1                  0
533 	 *  -----------------------------------------------------------
534 	 */
535 	WID_11N_ENABLE			= 0x0082,
536 
537 	/*
538 	 *  11n Operating mode (Note that 11g operating mode will also be
539 	 *  used in addition to this, if this is set to HT Mixed mode)
540 	 *  -----------------------------------------------------------
541 	 *   Configuration :  HT Mixed  HT Only-20MHz   HT Only-20/40MHz
542 	 *  Values to set :     1         2               3
543 	 *  -----------------------------------------------------------
544 	 */
545 	WID_11N_OPERATING_MODE		= 0x0083,
546 
547 	/*
548 	 *  11n OBSS non-HT STA Detection flag
549 	 *  -----------------------------------------------------------
550 	 *  Configuration :  Do not detect
551 	 *  Values to set :  0
552 	 *  Configuration :  Detect, do not protect or report
553 	 *  Values to set :  1
554 	 *  Configuration :  Detect, protect and do not report
555 	 *  Values to set :  2
556 	 *  Configuration :  Detect, protect and report to other BSS
557 	 *  Values to set :  3
558 	 *  -----------------------------------------------------------
559 	 */
560 	WID_11N_OBSS_NONHT_DETECTION	= 0x0084,
561 
562 	/*
563 	 *  11n HT Protection Type
564 	 *  -----------------------------------------------------------
565 	 *  Configuration :  RTS-CTS   First Frame Exchange at non-HT-rate
566 	 *  Values to set :  0         1
567 	 *  Configuration :  LSIG TXOP First Frame Exchange in Mixed Fmt
568 	 *  Values to set :  2         3
569 	 *  -----------------------------------------------------------
570 	 */
571 	WID_11N_HT_PROT_TYPE		= 0x0085,
572 
573 	/*
574 	 *  11n RIFS Protection Enable Flag
575 	 *  -----------------------------------------------------------
576 	 *  Configuration :  Disable    Enable
577 	 *  Values to set :  0          1
578 	 *  -----------------------------------------------------------
579 	 */
580 	WID_11N_RIFS_PROT_ENABLE	= 0x0086,
581 
582 	/*
583 	 *  SMPS Mode
584 	 *  -----------------------------------------------------------
585 	 *  Configuration :  Static   Dynamic   MIMO (Power Save Disabled)
586 	 *  Values to set :  1        2         3
587 	 *  -----------------------------------------------------------
588 	 */
589 	WID_11N_SMPS_MODE		= 0x0087,
590 
591 	/*
592 	 *  Current transmit MCS
593 	 *  -----------------------------------------------------------
594 	 *  Configuration :  MCS Index for data rate
595 	 *  Values to set :  0 to 7
596 	 *  -----------------------------------------------------------
597 	 */
598 	WID_11N_CURRENT_TX_MCS		= 0x0088,
599 
600 	WID_11N_PRINT_STATS		= 0x0089,
601 
602 	/*
603 	 *  11n Short GI Enable Flag
604 	 *  -----------------------------------------------------------
605 	 *  Configuration :  Disable    Enable
606 	 *  Values to set :  0          1
607 	 *  -----------------------------------------------------------
608 	 */
609 	WID_11N_SHORT_GI_ENABLE		= 0x008D,
610 
611 	/*
612 	 *  11n RIFS Enable Flag
613 	 *  -----------------------------------------------------------
614 	 *  Configuration :  Disable    Enable
615 	 *  Values to set :  0          1
616 	 *  -----------------------------------------------------------
617 	 */
618 	WID_RIFS_MODE			= 0x0094,
619 
620 	/*
621 	 *  TX Abort Feature
622 	 *  -----------------------------------------------------------
623 	 *  Configuration :  Disable Self CTS    Enable Self CTS
624 	 *  Values to set :             0                      1
625 	 *  Configuration :  Disable TX Abort    Enable TX Abort
626 	 *  Values to set :             2                      3
627 	 *  Configuration :  Enable HW TX Abort Enable SW TX Abort
628 	 *  Values to set :             4                      5
629 	 *  -----------------------------------------------------------
630 	 */
631 	WID_TX_ABORT_CONFIG		= 0x00A1,
632 
633 	WID_REG_TSSI_11B_VALUE		= 0x00A6,
634 	WID_REG_TSSI_11G_VALUE		= 0x00A7,
635 	WID_REG_TSSI_11N_VALUE		= 0x00A8,
636 	WID_TX_CALIBRATION		= 0x00A9,
637 	WID_DSCR_TSSI_11B_VALUE		= 0x00AA,
638 	WID_DSCR_TSSI_11G_VALUE		= 0x00AB,
639 	WID_DSCR_TSSI_11N_VALUE		= 0x00AC,
640 
641 	/*
642 	 *  Immediate Block-Ack Support
643 	 *  -----------------------------------------------------------
644 	 *  Configuration : Disable                  Enable
645 	 *  Values to set :    0                       1
646 	 *  -----------------------------------------------------------
647 	 */
648 	WID_11N_IMMEDIATE_BA_ENABLED	= 0x00AF,
649 
650 	/*
651 	 *  TXOP Disable Flag
652 	 *  -----------------------------------------------------------
653 	 *  Configuration : Disable                  Enable
654 	 *  Values to set :    1                        0
655 	 *  -----------------------------------------------------------
656 	 */
657 	WID_11N_TXOP_PROT_DISABLE	= 0x00B0,
658 
659 	WID_TX_POWER_LEVEL_11N		= 0x00B1,
660 
661 	/* Custom Character WID list */
662 	/* SCAN Complete notification WID*/
663 	WID_SCAN_COMPLETE		= 0x00C9,
664 
665 	WID_DEL_BEACON			= 0x00CA,
666 
667 	WID_LOG_TERMINAL_SWITCH		= 0x00CD,
668 	WID_TX_POWER			= 0x00CE,
669 	WID_WOWLAN_TRIGGER		= 0X00CF,
670 	WID_SET_MFP                     = 0x00D0,
671 
672 	WID_DEFAULT_MGMT_KEY_ID		= 0x00D2,
673 	/*  EMAC Short WID list */
674 	/*  RTS Threshold */
675 	/*
676 	 *  -----------------------------------------------------------
677 	 *  Configuration :   Any value between 256 to 2347
678 	 *  Values to set :   Same value. Default is 2347
679 	 *  -----------------------------------------------------------
680 	 */
681 	WID_RTS_THRESHOLD		= 0x1000,
682 
683 	/*
684 	 *  Fragmentation Threshold
685 	 *  -----------------------------------------------------------
686 	 *  Configuration :   Any value between 256 to 2346
687 	 *  Values to set :   Same value. Default is 2346
688 	 *  -----------------------------------------------------------
689 	 */
690 	WID_FRAG_THRESHOLD		= 0x1001,
691 
692 	WID_SHORT_RETRY_LIMIT		= 0x1002,
693 	WID_LONG_RETRY_LIMIT		= 0x1003,
694 	WID_BEACON_INTERVAL		= 0x1006,
695 	WID_MEMORY_ACCESS_16BIT		= 0x1008,
696 	WID_PASSIVE_SCAN_TIME           = 0x100D,
697 	WID_JOIN_START_TIMEOUT		= 0x100F,
698 	WID_ASOC_TIMEOUT		= 0x1011,
699 	WID_11I_PROTOCOL_TIMEOUT	= 0x1012,
700 	WID_EAPOL_RESPONSE_TIMEOUT	= 0x1013,
701 
702 	/* NMAC Short WID list */
703 	WID_11N_SIG_QUAL_VAL		= 0x1085,
704 	WID_CCA_THRESHOLD		= 0x1087,
705 
706 	/* Custom Short WID list */
707 
708 	/* EMAC Integer WID list */
709 	WID_FAILED_COUNT		= 0x2000,
710 	WID_RETRY_COUNT			= 0x2001,
711 	WID_MULTIPLE_RETRY_COUNT	= 0x2002,
712 	WID_FRAME_DUPLICATE_COUNT	= 0x2003,
713 	WID_ACK_FAILURE_COUNT		= 0x2004,
714 	WID_RECEIVED_FRAGMENT_COUNT	= 0x2005,
715 	WID_MCAST_RECEIVED_FRAME_COUNT	= 0x2006,
716 	WID_FCS_ERROR_COUNT		= 0x2007,
717 	WID_SUCCESS_FRAME_COUNT		= 0x2008,
718 	WID_HUT_TX_COUNT		= 0x200A,
719 	WID_TX_FRAGMENT_COUNT		= 0x200B,
720 	WID_TX_MULTICAST_FRAME_COUNT	= 0x200C,
721 	WID_RTS_SUCCESS_COUNT		= 0x200D,
722 	WID_RTS_FAILURE_COUNT		= 0x200E,
723 	WID_WEP_UNDECRYPTABLE_COUNT	= 0x200F,
724 	WID_REKEY_PERIOD		= 0x2010,
725 	WID_REKEY_PACKET_COUNT		= 0x2011,
726 	WID_1X_SERV_ADDR		= 0x2012,
727 	WID_STACK_IP_ADDR		= 0x2013,
728 	WID_STACK_NETMASK_ADDR		= 0x2014,
729 	WID_HW_RX_COUNT			= 0x2015,
730 	WID_MEMORY_ADDRESS		= 0x201E,
731 	WID_MEMORY_ACCESS_32BIT		= 0x201F,
732 
733 	/* NMAC Integer WID list */
734 	/* Custom Integer WID list */
735 	WID_GET_INACTIVE_TIME		= 0x2084,
736 	/* EMAC String WID list */
737 	WID_SSID			= 0x3000,
738 	WID_FIRMWARE_VERSION		= 0x3001,
739 	WID_OPERATIONAL_RATE_SET	= 0x3002,
740 	WID_BSSID			= 0x3003,
741 	WID_WEP_KEY_VALUE		= 0x3004,
742 	WID_11I_PSK			= 0x3008,
743 	WID_11E_P_ACTION_REQ		= 0x3009,
744 	WID_1X_KEY			= 0x300A,
745 	WID_HARDWARE_VERSION		= 0x300B,
746 	WID_MAC_ADDR			= 0x300C,
747 	WID_HUT_DEST_ADDR		= 0x300D,
748 	WID_PHY_VERSION			= 0x300F,
749 	WID_SUPP_USERNAME		= 0x3010,
750 	WID_SUPP_PASSWORD		= 0x3011,
751 	WID_SITE_SURVEY_RESULTS		= 0x3012,
752 	WID_RX_POWER_LEVEL		= 0x3013,
753 	WID_SET_STA_MAC_INACTIVE_TIME	= 0x3017,
754 	WID_ADD_WEP_KEY			= 0x3019,
755 	WID_REMOVE_WEP_KEY		= 0x301A,
756 	WID_ADD_PTK			= 0x301B,
757 	WID_ADD_RX_GTK			= 0x301C,
758 	WID_ADD_TX_GTK			= 0x301D,
759 	WID_REMOVE_KEY			= 0x301E,
760 	WID_ASSOC_REQ_INFO		= 0x301F,
761 	WID_ASSOC_RES_INFO		= 0x3020,
762 	WID_ADD_IGTK                    = 0x3022,
763 	WID_MANUFACTURER		= 0x3026, /* Added for CAPI tool */
764 	WID_MODEL_NAME			= 0x3027, /* Added for CAPI tool */
765 	WID_MODEL_NUM			= 0x3028, /* Added for CAPI tool */
766 	WID_DEVICE_NAME			= 0x3029, /* Added for CAPI tool */
767 
768 	/* NMAC String WID list */
769 	WID_SET_OPERATION_MODE		= 0x3079,
770 	WID_11N_P_ACTION_REQ		= 0x3080,
771 	WID_HUT_TEST_ID			= 0x3081,
772 	WID_PMKID_INFO			= 0x3082,
773 	WID_FIRMWARE_INFO		= 0x3083,
774 	WID_REGISTER_FRAME		= 0x3084,
775 	WID_DEL_ALL_STA			= 0x3085,
776 	WID_REMAIN_ON_CHAN		= 0x3996,
777 	WID_SSID_PROBE_REQ		= 0x3997,
778 	WID_JOIN_REQ_EXTENDED		= 0x3998,
779 
780 	WID_IP_ADDRESS			= 0x3999,
781 
782 	/* Custom String WID list */
783 
784 	/* EMAC Binary WID list */
785 	WID_UAPSD_CONFIG		= 0x4001,
786 	WID_UAPSD_STATUS		= 0x4002,
787 	WID_WMM_AP_AC_PARAMS		= 0x4003,
788 	WID_WMM_STA_AC_PARAMS		= 0x4004,
789 	WID_NETWORK_INFO		= 0x4005,
790 	WID_STA_JOIN_INFO		= 0x4006,
791 	WID_CONNECTED_STA_LIST		= 0x4007,
792 
793 	/* NMAC Binary WID list */
794 	WID_11N_AUTORATE_TABLE		= 0x4080,
795 
796 	WID_SCAN_CHANNEL_LIST		= 0x4084,
797 
798 	WID_INFO_ELEMENT_PROBE		= 0x4085,
799 	WID_INFO_ELEMENT_ASSOCIATE	= 0x4086,
800 	WID_ADD_STA			= 0X4087,
801 	WID_REMOVE_STA			= 0X4088,
802 	WID_EDIT_STA			= 0X4089,
803 	WID_ADD_BEACON			= 0x408a,
804 
805 	WID_SETUP_MULTICAST_FILTER	= 0x408b,
806 	WID_EXTERNAL_AUTH_PARAM		= 0x408d,
807 	/* Miscellaneous WIDs */
808 	WID_ALL				= 0x7FFE,
809 	WID_MAX				= 0xFFFF
810 };
811 
812 #endif
813