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