cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

wlan_if.h (23900B)


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