blob: e4807aecd54aeddda3641b47463769a585608305 [file] [log] [blame]
Leo Kimd4cebe42015-09-22 14:34:45 +09001/* ///////////////////////////////////////////////////////////////////////// */
Johnny Kimc5c77ba2015-05-11 14:30:56 +09002/* */
3/* Copyright (c) Atmel Corporation. All rights reserved. */
4/* */
5/* Module Name: wilc_wlan_if.h */
6/* */
7/* */
8/* ///////////////////////////////////////////////////////////////////////// */
9
Johnny Kimc5c77ba2015-05-11 14:30:56 +090010#ifndef WILC_WLAN_IF_H
11#define WILC_WLAN_IF_H
12
Johnny Kimc5c77ba2015-05-11 14:30:56 +090013/* #define MEMORY_STATIC */
Johnny Kimc5c77ba2015-05-11 14:30:56 +090014/* #define USE_OLD_SPI_SW */
15
Chaehyun Lime215a872015-09-30 08:15:41 +090016#include <linux/semaphore.h>
Greg Kroah-Hartman36a24b42015-08-14 19:26:20 -070017#include "wilc_oswrapper.h"
Johnny Kimc5c77ba2015-05-11 14:30:56 +090018#include "linux_wlan_common.h"
19
Johnny Kimc5c77ba2015-05-11 14:30:56 +090020/********************************************
21 *
22 * Debug Flags
23 *
24 ********************************************/
25
Leo Kim531c7ce2015-09-22 14:34:46 +090026#define N_INIT 0x00000001
27#define N_ERR 0x00000002
28#define N_TXQ 0x00000004
29#define N_INTR 0x00000008
30#define N_RXQ 0x00000010
Johnny Kimc5c77ba2015-05-11 14:30:56 +090031
32/********************************************
33 *
34 * Host Interface Defines
35 *
36 ********************************************/
37
Leo Kim531c7ce2015-09-22 14:34:46 +090038#define HIF_SDIO (0)
39#define HIF_SPI BIT(0)
40#define HIF_SDIO_GPIO_IRQ BIT(2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090041
Johnny Kimc5c77ba2015-05-11 14:30:56 +090042/********************************************
43 *
44 * Tx/Rx Buffer Size Defines
45 *
46 ********************************************/
47
Leo Kim531c7ce2015-09-22 14:34:46 +090048#define CE_TX_BUFFER_SIZE (64 * 1024)
49#define CE_RX_BUFFER_SIZE (384 * 1024)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090050
51/********************************************
52 *
53 * Wlan Interface Defines
54 *
55 ********************************************/
56
57typedef struct {
Leo Kim531c7ce2015-09-22 14:34:46 +090058 u32 read_write: 1;
59 u32 function: 3;
60 u32 raw: 1;
61 u32 address: 17;
62 u32 data: 8;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090063} sdio_cmd52_t;
64
65typedef struct {
66 /* struct { */
Leo Kim531c7ce2015-09-22 14:34:46 +090067 u32 read_write: 1;
68 u32 function: 3;
69 u32 block_mode: 1;
70 u32 increment: 1;
71 u32 address: 17;
72 u32 count: 9;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090073 /* } bit; */
Chaehyun Lim51e825f2015-09-15 14:06:14 +090074 u8 *buffer;
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090075 u32 block_size;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090076} sdio_cmd53_t;
77
78typedef struct {
Johnny Kimc5c77ba2015-05-11 14:30:56 +090079 int io_type;
80 int (*io_init)(void *);
81 void (*io_deinit)(void *);
82 union {
83 struct {
84 int (*sdio_cmd52)(sdio_cmd52_t *);
85 int (*sdio_cmd53)(sdio_cmd53_t *);
86 int (*sdio_set_max_speed)(void);
87 int (*sdio_set_default_speed)(void);
88 } sdio;
89 struct {
90 int (*spi_max_speed)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090091 int (*spi_tx)(u8 *, u32);
92 int (*spi_rx)(u8 *, u32);
93 int (*spi_trx)(u8 *, u8 *, u32);
Johnny Kimc5c77ba2015-05-11 14:30:56 +090094 } spi;
95 } u;
96} wilc_wlan_io_func_t;
97
Leo Kim531c7ce2015-09-22 14:34:46 +090098#define WILC_MAC_INDICATE_STATUS 0x1
99#define WILC_MAC_STATUS_INIT -1
100#define WILC_MAC_STATUS_READY 0
101#define WILC_MAC_STATUS_CONNECT 1
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900102
103#define WILC_MAC_INDICATE_SCAN 0x2
104
105typedef struct {
106 void *os_private;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900107} wilc_wlan_os_context_t;
108
109typedef struct {
110 wilc_wlan_os_context_t os_context;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900111 wilc_wlan_io_func_t io_func;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900112} wilc_wlan_inp_t;
113
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900114struct tx_complete_data {
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900115 int size;
116 void *buff;
Chaehyun Lim51e825f2015-09-15 14:06:14 +0900117 u8 *pBssid;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900118 struct sk_buff *skb;
119};
120
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900121typedef void (*wilc_tx_complete_func_t)(void *, int);
122
Leo Kim531c7ce2015-09-22 14:34:46 +0900123#define WILC_TX_ERR_NO_BUF (-2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900124
125typedef struct {
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900126 int (*wlan_firmware_download)(const u8 *, u32);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900127 int (*wlan_start)(void);
128 int (*wlan_stop)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900129 int (*wlan_add_to_tx_que)(void *, u8 *, u32, wilc_tx_complete_func_t);
130 int (*wlan_handle_tx_que)(u32 *);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900131 void (*wlan_handle_rx_isr)(void);
132 void (*wlan_cleanup)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900133 int (*wlan_cfg_set)(int, u32, u8 *, u32, int, u32);
134 int (*wlan_cfg_get)(int, u32, int, u32);
135 int (*wlan_cfg_get_value)(u32, u8 *, u32);
Leo Kimd4cebe42015-09-22 14:34:45 +0900136 int (*wlan_add_mgmt_to_tx_que)(void *, u8 *, u32,
137 wilc_tx_complete_func_t);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900138} wilc_wlan_oup_t;
139
140/********************************************
141 *
142 * Wlan Configuration ID
143 *
144 ********************************************/
145
146#define MAX_SSID_LEN 33
147#define MAX_RATES_SUPPORTED 12
148
Leo Kim531c7ce2015-09-22 14:34:46 +0900149#define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF)
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900150
151#ifdef WILC_PARSE_SCAN_IN_HOST
152typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900153 SUPP_RATES_IE = 1,
154 EXT_SUPP_RATES_IE = 50,
155 HT_CAPABILITY_IE = 45,
156 RSN_IE = 48,
157 WPA_IE = 221,
158 WMM_IE = 221,
159 P2P_IE = 221,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900160} BEACON_IE;
161#endif
162typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900163 INFRASTRUCTURE = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900164 INDEPENDENT,
165 AP,
166} BSSTYPE_T;
167
168typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900169 RATE_AUTO = 0,
170 RATE_1MB = 1,
171 RATE_2MB = 2,
172 RATE_5MB = 5,
173 RATE_6MB = 6,
174 RATE_9MB = 9,
175 RATE_11MB = 11,
176 RATE_12MB = 12,
177 RATE_18MB = 18,
178 RATE_24MB = 24,
179 RATE_26MB = 36,
180 RATE_48MB = 48,
181 RATE_54MB = 54
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900182} TX_RATE_T;
183
184typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900185 B_ONLY_MODE = 0, /* 1, 2 M, otherwise 5, 11 M */
186 G_ONLY_MODE, /* 6,12,24 otherwise 9,18,36,48,54 */
187 G_MIXED_11B_1_MODE, /* 1,2,5.5,11 otherwise all on */
188 G_MIXED_11B_2_MODE, /* 1,2,5,11,6,12,24 otherwise all on */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900189} G_OPERATING_MODE_T;
190
191typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900192 G_SHORT_PREAMBLE = 0, /* Short Preamble */
193 G_LONG_PREAMBLE = 1, /* Long Preamble */
194 G_AUTO_PREAMBLE = 2, /* Auto Preamble Selection */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900195} G_PREAMBLE_T;
196
Leo Kim531c7ce2015-09-22 14:34:46 +0900197#define MAC_CONNECTED 1
198#define MAC_DISCONNECTED 0
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900199
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900200#define SCAN_DONE TRUE
201typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900202 PASSIVE_SCAN = 0,
203 ACTIVE_SCAN = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900204} SCANTYPE_T;
205
206typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900207 NO_POWERSAVE = 0,
208 MIN_FAST_PS = 1,
209 MAX_FAST_PS = 2,
210 MIN_PSPOLL_PS = 3,
211 MAX_PSPOLL_PS = 4
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900212} USER_PS_MODE_T;
213
214typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900215 CHIP_WAKEDUP = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900216 CHIP_SLEEPING_AUTO = 1,
Leo Kim531c7ce2015-09-22 14:34:46 +0900217 CHIP_SLEEPING_MANUAL = 2
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900218} CHIP_PS_STATE_T;
219
220typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900221 ACQUIRE_ONLY = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900222 ACQUIRE_AND_WAKEUP = 1,
223} BUS_ACQUIRE_T;
224
225typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900226 RELEASE_ONLY = 0,
227 RELEASE_ALLOW_SLEEP = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900228} BUS_RELEASE_T;
229
230typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900231 NO_SECURITY = 0,
232 WEP_40 = 0x3,
233 WEP_104 = 0x7,
234 WPA_AES = 0x29,
235 WPA_TKIP = 0x49,
236 WPA_AES_TKIP = 0x69, /* Aes or Tkip */
237 WPA2_AES = 0x31,
238 WPA2_TKIP = 0x51,
239 WPA2_AES_TKIP = 0x71, /* Aes or Tkip */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900240} SECURITY_T;
241
242typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900243 OPEN_SYSTEM = 1,
244 SHARED_KEY = 2,
245 ANY = 3,
246 IEEE8021 = 5
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900247} AUTHTYPE_T;
248
249typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900250 SITE_SURVEY_1CH = 0,
251 SITE_SURVEY_ALL_CH = 1,
252 SITE_SURVEY_OFF = 2
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900253} SITE_SURVEY_T;
254
255typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900256 NORMAL_ACK = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900257 NO_ACK,
258} ACK_POLICY_T;
259
260typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900261 DONT_RESET = 0,
262 DO_RESET = 1,
263 NO_REQUEST = 2,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900264} RESET_REQ_T;
265
266typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900267 REKEY_DISABLE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900268 REKEY_TIME_BASE,
269 REKEY_PKT_BASE,
270 REKEY_TIME_PKT_BASE
271} RSNA_REKEY_POLICY_T;
272
273typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900274 FILTER_NO = 0x00,
275 FILTER_AP_ONLY = 0x01,
276 FILTER_STA_ONLY = 0x02
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900277} SCAN_CLASS_FITLER_T;
278
279typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900280 PRI_HIGH_RSSI = 0x00,
281 PRI_LOW_RSSI = 0x04,
282 PRI_DETECT = 0x08
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900283} SCAN_PRI_T;
284
285typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900286 CH_FILTER_OFF = 0x00,
287 CH_FILTER_ON = 0x10
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900288} CH_FILTER_T;
289
290typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900291 AUTO_PROT = 0, /* Auto */
292 NO_PROT, /* Do not use any protection */
293 ERP_PROT, /* Protect all ERP frame exchanges */
294 HT_PROT, /* Protect all HT frame exchanges */
295 GF_PROT, /* Protect all GF frame exchanges */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900296} N_PROTECTION_MODE_T;
297
298typedef enum {
299 G_SELF_CTS_PROT,
300 G_RTS_CTS_PROT,
301} G_PROTECTION_MODE_T;
302
303typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900304 HT_MIXED_MODE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900305 HT_ONLY_20MHZ_MODE,
306 HT_ONLY_20_40MHZ_MODE,
307} N_OPERATING_MODE_T;
308
309typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900310 NO_DETECT = 0,
311 DETECT_ONLY = 1,
312 DETECT_PROTECT = 2,
313 DETECT_PROTECT_REPORT = 3,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900314} N_OBSS_DETECTION_T;
315
316typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900317 RTS_CTS_NONHT_PROT = 0, /* RTS-CTS at non-HT rate */
318 FIRST_FRAME_NONHT_PROT, /* First frame at non-HT rate */
319 LSIG_TXOP_PROT, /* LSIG TXOP Protection */
320 FIRST_FRAME_MIXED_PROT, /* First frame at Mixed format */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900321} N_PROTECTION_TYPE_T;
322
323typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900324 STATIC_MODE = 1,
325 DYNAMIC_MODE = 2,
326 MIMO_MODE = 3, /* power save disable */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900327} N_SMPS_MODE_T;
328
329typedef enum {
330 DISABLE_SELF_CTS,
331 ENABLE_SELF_CTS,
332 DISABLE_TX_ABORT,
333 ENABLE_TX_ABORT,
334 HW_TRIGGER_ABORT,
335 SW_TRIGGER_ABORT,
336} TX_ABORT_OPTION_T;
337
338typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900339 WID_CHAR = 0,
340 WID_SHORT = 1,
341 WID_INT = 2,
342 WID_STR = 3,
343 WID_BIN_DATA = 4,
344 WID_BIN = 5,
345 WID_IP = 6,
346 WID_ADR = 7,
347 WID_UNDEF = 8,
348 WID_TYPE_FORCE_32BIT = 0xFFFFFFFF
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900349
350} WID_TYPE_T, tenuWIDtype;
351
352typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900353 WID_NIL = 0xffff,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900354
Leo Kimd4cebe42015-09-22 14:34:45 +0900355 /*
356 * BSS Type
357 * -----------------------------------------------------------
358 * Configuration : Infrastructure Independent Access Point
359 * Values to set : 0 1 2
360 * -----------------------------------------------------------
361 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900362 WID_BSS_TYPE = 0x0000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900363
Leo Kimd4cebe42015-09-22 14:34:45 +0900364 /*
365 * Transmit Rate
366 * -----------------------------------------------------------
367 * Configuration : 1 2 5.5 11 6 9 12 18 24 36 48 54
368 * Values to set : 1 2 5 11 6 9 12 18 24 36 48 54
369 * -----------------------------------------------------------
370 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900371 WID_CURRENT_TX_RATE = 0x0001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900372
Leo Kimd4cebe42015-09-22 14:34:45 +0900373 /*
374 * Channel
375 * -----------------------------------------------------------
376 * Configuration(g) : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
377 * Values to set : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
378 * -----------------------------------------------------------
379 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900380 WID_CURRENT_CHANNEL = 0x0002,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900381
Leo Kimd4cebe42015-09-22 14:34:45 +0900382 /*
383 * Preamble
384 * -----------------------------------------------------------
385 * Configuration : short long Auto
386 * Values to set : 0 1 2
387 * -----------------------------------------------------------
388 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900389 WID_PREAMBLE = 0x0003,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900390
Leo Kimd4cebe42015-09-22 14:34:45 +0900391 /*
392 * 11g operating mode (ignored if 11g not present)
393 * -----------------------------------------------------------
394 * Configuration : HighPerf Compat(RSet #1) Compat(RSet #2)
395 * Values to set : 1 2 3
396 * -----------------------------------------------------------
397 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900398 WID_11G_OPERATING_MODE = 0x0004,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900399
Leo Kimd4cebe42015-09-22 14:34:45 +0900400 /*
401 * Mac status (response only)
402 * -----------------------------------------------------------
403 * Configuration : disconnect connect
404 * Values to get : 0 1
405 * -----------------------------------------------------------
406 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900407 WID_STATUS = 0x0005,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900408
Leo Kimd4cebe42015-09-22 14:34:45 +0900409 /*
410 * Scan type
411 * -----------------------------------------------------------
412 * Configuration : Passive Scanning Active Scanning
413 * Values to set : 0 1
414 * -----------------------------------------------------------
415 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900416 WID_SCAN_TYPE = 0x0007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900417
Leo Kimd4cebe42015-09-22 14:34:45 +0900418 /*
419 * Key Id (WEP default key Id)
420 * -----------------------------------------------------------
421 * Configuration : Any value between 0 to 3
422 * Values to set : Same value. Default is 0
423 * -----------------------------------------------------------
424 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900425 WID_KEY_ID = 0x0009,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900426
Leo Kimd4cebe42015-09-22 14:34:45 +0900427 /*
428 * QoS Enable
429 * -----------------------------------------------------------
430 * Configuration : QoS Disable WMM Enable
431 * Values to set : 0 1
432 * -----------------------------------------------------------
433 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900434 WID_QOS_ENABLE = 0x000A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900435
Leo Kimd4cebe42015-09-22 14:34:45 +0900436 /*
437 * Power Management
438 * -----------------------------------------------------------
439 * Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE
440 * Values to set : 0 1 2
441 * -----------------------------------------------------------
442 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900443 WID_POWER_MANAGEMENT = 0x000B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900444
Leo Kimd4cebe42015-09-22 14:34:45 +0900445 /*
446 * WEP/802 11I Configuration
447 * -----------------------------------------------------------
448 * Configuration:Disable WP40 WP104 WPA-AES WPA-TKIP RSN-AES RSN-TKIP
449 * Values (0x) : 00 03 07 29 49 31 51
450 * Configuration:WPA-AES+TKIP RSN-AES+TKIP
451 * Values (0x) : 69 71
452 * -----------------------------------------------------------
453 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900454 WID_11I_MODE = 0x000C,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900455
Leo Kimd4cebe42015-09-22 14:34:45 +0900456 /*
457 * WEP Configuration: Used in BSS STA mode only when WEP is enabled
458 * -----------------------------------------------------------
459 * Configuration : Open System Shared Key Any Type | 802.1x Auth
460 * Values (0x) : 01 02 03 | BIT2
461 * -----------------------------------------------------------
462 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900463 WID_AUTH_TYPE = 0x000D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900464
Leo Kimd4cebe42015-09-22 14:34:45 +0900465 /*
466 * Site Survey Type
467 * -----------------------------------------------------------
468 * Configuration : Values to set
469 * Survey 1 Channel : 0
470 * survey all Channels : 1
471 * Disable Site Survey : 2
472 * -----------------------------------------------------------
473 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900474 WID_SITE_SURVEY = 0x000E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900475
Leo Kimd4cebe42015-09-22 14:34:45 +0900476 /*
477 * Listen Interval
478 * -----------------------------------------------------------
479 * Configuration : Any value between 1 to 255
480 * Values to set : Same value. Default is 3
481 * -----------------------------------------------------------
482 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900483 WID_LISTEN_INTERVAL = 0x000F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900484
Leo Kimd4cebe42015-09-22 14:34:45 +0900485 /*
486 * DTIM Period
487 * -----------------------------------------------------------
488 * Configuration : Any value between 1 to 255
489 * Values to set : Same value. Default is 3
490 * -----------------------------------------------------------
491 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900492 WID_DTIM_PERIOD = 0x0010,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900493
Leo Kimd4cebe42015-09-22 14:34:45 +0900494 /*
495 * ACK Policy
496 * -----------------------------------------------------------
497 * Configuration : Normal Ack No Ack
498 * Values to set : 0 1
499 * -----------------------------------------------------------
500 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900501 WID_ACK_POLICY = 0x0011,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900502
Leo Kimd4cebe42015-09-22 14:34:45 +0900503 /*
504 * Reset MAC (Set only)
505 * -----------------------------------------------------------
506 * Configuration : Don't Reset Reset No Request
507 * Values to set : 0 1 2
508 * -----------------------------------------------------------
509 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900510 WID_RESET = 0x0012,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900511
Leo Kimd4cebe42015-09-22 14:34:45 +0900512 /*
513 * Broadcast SSID Option: Setting this will adhere to "" SSID element
514 * -----------------------------------------------------------
515 * Configuration : Enable Disable
516 * Values to set : 1 0
517 * -----------------------------------------------------------
518 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900519 WID_BCAST_SSID = 0x0015,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900520
Leo Kimd4cebe42015-09-22 14:34:45 +0900521 /*
522 * Disconnect (Station)
523 * -----------------------------------------------------------
524 * Configuration : Association ID
525 * Values to set : Association ID
526 * -----------------------------------------------------------
527 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900528 WID_DISCONNECT = 0x0016,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900529
Leo Kimd4cebe42015-09-22 14:34:45 +0900530 /*
531 * 11a Tx Power Level
532 * -----------------------------------------------------------
533 * Configuration : Sets TX Power (Higher the value greater the power)
534 * Values to set : Any value between 0 and 63 (inclusive Default 48)
535 * -----------------------------------------------------------
536 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900537 WID_TX_POWER_LEVEL_11A = 0x0018,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900538
Leo Kimd4cebe42015-09-22 14:34:45 +0900539 /*
540 * Group Key Update Policy Selection
541 * -----------------------------------------------------------
542 * Configuration : Disabled timeBased packetBased timePacketBased
543 * Values to set : 1 2 3 4
544 * -----------------------------------------------------------
545 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900546 WID_REKEY_POLICY = 0x0019,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900547
Leo Kimd4cebe42015-09-22 14:34:45 +0900548 /*
549 * Allow Short Slot
550 * -----------------------------------------------------------
551 * Configuration : Disallow Short Slot Allow Short Slot
552 * (Enable Only Long Slot) (Enable Short Slot if applicable)
553 * Values to set : 0 1
554 * -----------------------------------------------------------
555 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900556 WID_SHORT_SLOT_ALLOWED = 0x001A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900557
Leo Kim531c7ce2015-09-22 14:34:46 +0900558 WID_PHY_ACTIVE_REG = 0x001B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900559
Leo Kimd4cebe42015-09-22 14:34:45 +0900560 /*
561 * 11b Tx Power Level
562 * -----------------------------------------------------------
563 * Configuration : Sets TX Power (Higher the value greater the power)
564 * Values to set : Any value between 0 and 63 (inclusive Default 48)
565 * -----------------------------------------------------------
566 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900567 WID_TX_POWER_LEVEL_11B = 0x001D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900568
Leo Kimd4cebe42015-09-22 14:34:45 +0900569 /*
570 * Scan Request
571 * -----------------------------------------------------------
572 * Configuration : Request default scan
573 * Values to set : 0
574 * -----------------------------------------------------------
575 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900576 WID_START_SCAN_REQ = 0x001E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900577
Leo Kimd4cebe42015-09-22 14:34:45 +0900578 /*
579 * Rssi (get only)
580 * -----------------------------------------------------------
581 * Configuration :
582 * Values to get : Rssi value
583 * -----------------------------------------------------------
584 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900585 WID_RSSI = 0x001F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900586
Leo Kimd4cebe42015-09-22 14:34:45 +0900587 /*
588 * Join Request
589 * -----------------------------------------------------------
590 * Configuration : Request to join
591 * Values to set : index of scan result
592 * -----------------------------------------------------------
593 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900594 WID_JOIN_REQ = 0x0020,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900595
Leo Kimd4cebe42015-09-22 14:34:45 +0900596 WID_LINKSPEED = 0x0026,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900597
Leo Kimd4cebe42015-09-22 14:34:45 +0900598 /*
599 * Enable User Control of TX Power
600 * -----------------------------------------------------------
601 * Configuration : Disable Enable
602 * Values to set : 0 1
603 * -----------------------------------------------------------
604 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900605 WID_USER_CONTROL_ON_TX_POWER = 0x0027,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900606
Leo Kim531c7ce2015-09-22 14:34:46 +0900607 WID_MEMORY_ACCESS_8BIT = 0x0029,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900608
Leo Kimd4cebe42015-09-22 14:34:45 +0900609 /*
610 * Enable Auto RX Sensitivity feature
611 * -----------------------------------------------------------
612 * Configuration : Disable Enable
613 * Values to set : 0 1
614 * -----------------------------------------------------------
615 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900616 WID_AUTO_RX_SENSITIVITY = 0x0032,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900617
Leo Kimd4cebe42015-09-22 14:34:45 +0900618 /*
619 * Receive Buffer Based Ack
620 * -----------------------------------------------------------
621 * Configuration : Disable Enable
622 * Values to set : 0 1
623 * -----------------------------------------------------------
624 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900625 WID_DATAFLOW_CONTROL = 0x0033,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900626
Leo Kimd4cebe42015-09-22 14:34:45 +0900627 /*
628 * Scan Filter
629 * -----------------------------------------------------------
630 * Configuration : Class No filter AP only Station Only
631 * Values to set : 0 1 2
632 * Configuration : Priority High Rssi Low Rssi Detect
633 * Values to set : 0 0x4 0x0
634 * Configuration : Channel filter off filter on
635 * Values to set : 0 0x10
636 * -----------------------------------------------------------
637 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900638 WID_SCAN_FILTER = 0x0036,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900639
Leo Kimd4cebe42015-09-22 14:34:45 +0900640 /*
641 * Link Loss Threshold (measure in the beacon period)
642 * -----------------------------------------------------------
643 * Configuration : Any value between 10 and 254(Set to 255 disable)
644 * Values to set : Same value. Default is 10
645 * -----------------------------------------------------------
646 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900647 WID_LINK_LOSS_THRESHOLD = 0x0037,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900648
Leo Kim531c7ce2015-09-22 14:34:46 +0900649 WID_ABORT_RUNNING_SCAN = 0x003E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900650
651 /* NMAC Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900652 WID_WPS_START = 0x0043,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900653
Leo Kimd4cebe42015-09-22 14:34:45 +0900654 /*
655 * Protection mode for MAC
656 * -----------------------------------------------------------
657 * Configuration : Auto No protection ERP HT GF
658 * Values to set : 0 1 2 3 4
659 * -----------------------------------------------------------
660 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900661 WID_11N_PROT_MECH = 0x0080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900662
Leo Kimd4cebe42015-09-22 14:34:45 +0900663 /*
664 * ERP Protection type for MAC
665 * -----------------------------------------------------------
666 * Configuration : Self-CTS RTS-CTS
667 * Values to set : 0 1
668 * -----------------------------------------------------------
669 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900670 WID_11N_ERP_PROT_TYPE = 0x0081,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900671
Leo Kimd4cebe42015-09-22 14:34:45 +0900672 /*
673 * HT Option Enable
674 * -----------------------------------------------------------
675 * Configuration : HT Enable HT Disable
676 * Values to set : 1 0
677 * -----------------------------------------------------------
678 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900679 WID_11N_ENABLE = 0x0082,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900680
Leo Kimd4cebe42015-09-22 14:34:45 +0900681 /*
682 * 11n Operating mode (Note that 11g operating mode will also be
683 * used in addition to this, if this is set to HT Mixed mode)
684 * -----------------------------------------------------------
685 * Configuration : HT Mixed HT Only-20MHz HT Only-20/40MHz
686 * Values to set : 1 2 3
687 * -----------------------------------------------------------
688 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900689 WID_11N_OPERATING_MODE = 0x0083,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900690
Leo Kimd4cebe42015-09-22 14:34:45 +0900691 /*
692 * 11n OBSS non-HT STA Detection flag
693 * -----------------------------------------------------------
694 * Configuration : Do not detect
695 * Values to set : 0
696 * Configuration : Detect, do not protect or report
697 * Values to set : 1
698 * Configuration : Detect, protect and do not report
699 * Values to set : 2
700 * Configuration : Detect, protect and report to other BSS
701 * Values to set : 3
702 * -----------------------------------------------------------
703 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900704 WID_11N_OBSS_NONHT_DETECTION = 0x0084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900705
Leo Kimd4cebe42015-09-22 14:34:45 +0900706 /*
707 * 11n HT Protection Type
708 * -----------------------------------------------------------
709 * Configuration : RTS-CTS First Frame Exchange at non-HT-rate
710 * Values to set : 0 1
711 * Configuration : LSIG TXOP First Frame Exchange in Mixed Fmt
712 * Values to set : 2 3
713 * -----------------------------------------------------------
714 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900715 WID_11N_HT_PROT_TYPE = 0x0085,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900716
Leo Kimd4cebe42015-09-22 14:34:45 +0900717 /*
718 * 11n RIFS Protection Enable Flag
719 * -----------------------------------------------------------
720 * Configuration : Disable Enable
721 * Values to set : 0 1
722 * -----------------------------------------------------------
723 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900724 WID_11N_RIFS_PROT_ENABLE = 0x0086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900725
Leo Kimd4cebe42015-09-22 14:34:45 +0900726 /*
727 * SMPS Mode
728 * -----------------------------------------------------------
729 * Configuration : Static Dynamic MIMO (Power Save Disabled)
730 * Values to set : 1 2 3
731 * -----------------------------------------------------------
732 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900733 WID_11N_SMPS_MODE = 0x0087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900734
Leo Kimd4cebe42015-09-22 14:34:45 +0900735 /*
736 * Current transmit MCS
737 * -----------------------------------------------------------
738 * Configuration : MCS Index for data rate
739 * Values to set : 0 to 7
740 * -----------------------------------------------------------
741 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900742 WID_11N_CURRENT_TX_MCS = 0x0088,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900743
Leo Kim531c7ce2015-09-22 14:34:46 +0900744 WID_11N_PRINT_STATS = 0x0089,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900745
Leo Kimd4cebe42015-09-22 14:34:45 +0900746 /*
747 * 11n Short GI Enable Flag
748 * -----------------------------------------------------------
749 * Configuration : Disable Enable
750 * Values to set : 0 1
751 * -----------------------------------------------------------
752 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900753 WID_11N_SHORT_GI_ENABLE = 0x008D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900754
Leo Kimd4cebe42015-09-22 14:34:45 +0900755 /*
756 * 11n RIFS Enable Flag
757 * -----------------------------------------------------------
758 * Configuration : Disable Enable
759 * Values to set : 0 1
760 * -----------------------------------------------------------
761 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900762 WID_RIFS_MODE = 0x0094,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900763
Leo Kimd4cebe42015-09-22 14:34:45 +0900764 /*
765 * TX Abort Feature
766 * -----------------------------------------------------------
767 * Configuration : Disable Self CTS Enable Self CTS
768 * Values to set : 0 1
769 * Configuration : Disable TX Abort Enable TX Abort
770 * Values to set : 2 3
771 * Configuration : Enable HW TX Abort Enable SW TX Abort
772 * Values to set : 4 5
773 * -----------------------------------------------------------
774 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900775 WID_TX_ABORT_CONFIG = 0x00A1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900776
Leo Kim531c7ce2015-09-22 14:34:46 +0900777 WID_REG_TSSI_11B_VALUE = 0x00A6,
778 WID_REG_TSSI_11G_VALUE = 0x00A7,
779 WID_REG_TSSI_11N_VALUE = 0x00A8,
780 WID_TX_CALIBRATION = 0x00A9,
781 WID_DSCR_TSSI_11B_VALUE = 0x00AA,
782 WID_DSCR_TSSI_11G_VALUE = 0x00AB,
783 WID_DSCR_TSSI_11N_VALUE = 0x00AC,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900784
Leo Kimd4cebe42015-09-22 14:34:45 +0900785 /*
786 * Immediate Block-Ack Support
787 * -----------------------------------------------------------
788 * Configuration : Disable Enable
789 * Values to set : 0 1
790 * -----------------------------------------------------------
791 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900792 WID_11N_IMMEDIATE_BA_ENABLED = 0x00AF,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900793
Leo Kimd4cebe42015-09-22 14:34:45 +0900794 /*
795 * TXOP Disable Flag
796 * -----------------------------------------------------------
797 * Configuration : Disable Enable
798 * Values to set : 1 0
799 * -----------------------------------------------------------
800 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900801 WID_11N_TXOP_PROT_DISABLE = 0x00B0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900802
Leo Kim531c7ce2015-09-22 14:34:46 +0900803 WID_TX_POWER_LEVEL_11N = 0x00B1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900804
805 /* Custom Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900806 WID_PC_TEST_MODE = 0x00C8,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900807 /* SCAN Complete notification WID*/
808 WID_SCAN_COMPLETE = 0x00C9,
809
Leo Kim531c7ce2015-09-22 14:34:46 +0900810 WID_DEL_BEACON = 0x00CA,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900811
Leo Kim531c7ce2015-09-22 14:34:46 +0900812 WID_LOGTerminal_Switch = 0x00CD,
Leo Kimd4cebe42015-09-22 14:34:45 +0900813 /* EMAC Short WID list */
814 /* RTS Threshold */
815 /*
816 * -----------------------------------------------------------
817 * Configuration : Any value between 256 to 2347
818 * Values to set : Same value. Default is 2347
819 * -----------------------------------------------------------
820 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900821 WID_RTS_THRESHOLD = 0x1000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900822
Leo Kimd4cebe42015-09-22 14:34:45 +0900823 /*
824 * Fragmentation Threshold
825 * -----------------------------------------------------------
826 * Configuration : Any value between 256 to 2346
827 * Values to set : Same value. Default is 2346
828 * -----------------------------------------------------------
829 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900830 WID_FRAG_THRESHOLD = 0x1001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900831
Leo Kim531c7ce2015-09-22 14:34:46 +0900832 WID_SHORT_RETRY_LIMIT = 0x1002,
833 WID_LONG_RETRY_LIMIT = 0x1003,
834 WID_BEACON_INTERVAL = 0x1006,
835 WID_MEMORY_ACCESS_16BIT = 0x1008,
836 WID_RX_SENSE = 0x100B,
837 WID_ACTIVE_SCAN_TIME = 0x100C,
838 WID_PASSIVE_SCAN_TIME = 0x100D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900839
Leo Kim531c7ce2015-09-22 14:34:46 +0900840 WID_SITE_SURVEY_SCAN_TIME = 0x100E,
841 WID_JOIN_START_TIMEOUT = 0x100F,
842 WID_AUTH_TIMEOUT = 0x1010,
843 WID_ASOC_TIMEOUT = 0x1011,
844 WID_11I_PROTOCOL_TIMEOUT = 0x1012,
845 WID_EAPOL_RESPONSE_TIMEOUT = 0x1013,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900846
847 /* NMAC Short WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900848 WID_11N_SIG_QUAL_VAL = 0x1085,
849 WID_CCA_THRESHOLD = 0x1087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900850
851 /* Custom Short WID list */
852
853 /* EMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900854 WID_FAILED_COUNT = 0x2000,
855 WID_RETRY_COUNT = 0x2001,
856 WID_MULTIPLE_RETRY_COUNT = 0x2002,
857 WID_FRAME_DUPLICATE_COUNT = 0x2003,
858 WID_ACK_FAILURE_COUNT = 0x2004,
859 WID_RECEIVED_FRAGMENT_COUNT = 0x2005,
860 WID_MCAST_RECEIVED_FRAME_COUNT = 0x2006,
861 WID_FCS_ERROR_COUNT = 0x2007,
862 WID_SUCCESS_FRAME_COUNT = 0x2008,
863 WID_HUT_TX_COUNT = 0x200A,
864 WID_TX_FRAGMENT_COUNT = 0x200B,
865 WID_TX_MULTICAST_FRAME_COUNT = 0x200C,
866 WID_RTS_SUCCESS_COUNT = 0x200D,
867 WID_RTS_FAILURE_COUNT = 0x200E,
868 WID_WEP_UNDECRYPTABLE_COUNT = 0x200F,
869 WID_REKEY_PERIOD = 0x2010,
870 WID_REKEY_PACKET_COUNT = 0x2011,
871 WID_1X_SERV_ADDR = 0x2012,
872 WID_STACK_IP_ADDR = 0x2013,
873 WID_STACK_NETMASK_ADDR = 0x2014,
874 WID_HW_RX_COUNT = 0x2015,
875 WID_MEMORY_ADDRESS = 0x201E,
876 WID_MEMORY_ACCESS_32BIT = 0x201F,
877 WID_RF_REG_VAL = 0x2021,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900878
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900879 /* NMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900880 WID_11N_PHY_ACTIVE_REG_VAL = 0x2080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900881
882 /* Custom Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900883 WID_GET_INACTIVE_TIME = 0x2084,
884 WID_SET_DRV_HANDLER = 0X2085,
885 WID_SET_OPERATION_MODE = 0X2086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900886 /* EMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900887 WID_SSID = 0x3000,
888 WID_FIRMWARE_VERSION = 0x3001,
889 WID_OPERATIONAL_RATE_SET = 0x3002,
890 WID_BSSID = 0x3003,
891 WID_WEP_KEY_VALUE = 0x3004,
892 WID_11I_PSK = 0x3008,
893 WID_11E_P_ACTION_REQ = 0x3009,
894 WID_1X_KEY = 0x300A,
895 WID_HARDWARE_VERSION = 0x300B,
896 WID_MAC_ADDR = 0x300C,
897 WID_HUT_DEST_ADDR = 0x300D,
898 WID_PHY_VERSION = 0x300F,
899 WID_SUPP_USERNAME = 0x3010,
900 WID_SUPP_PASSWORD = 0x3011,
901 WID_SITE_SURVEY_RESULTS = 0x3012,
902 WID_RX_POWER_LEVEL = 0x3013,
903 WID_DEL_ALL_RX_BA = 0x3014,
904 WID_SET_STA_MAC_INACTIVE_TIME = 0x3017,
905 WID_ADD_WEP_KEY = 0x3019,
906 WID_REMOVE_WEP_KEY = 0x301A,
907 WID_ADD_PTK = 0x301B,
908 WID_ADD_RX_GTK = 0x301C,
909 WID_ADD_TX_GTK = 0x301D,
910 WID_REMOVE_KEY = 0x301E,
911 WID_ASSOC_REQ_INFO = 0x301F,
912 WID_ASSOC_RES_INFO = 0x3020,
913 WID_MANUFACTURER = 0x3026, /*Added for CAPI tool */
914 WID_MODEL_NAME = 0x3027, /*Added for CAPI tool */
915 WID_MODEL_NUM = 0x3028, /*Added for CAPI tool */
916 WID_DEVICE_NAME = 0x3029, /*Added for CAPI tool */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900917
918 /* NMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900919 WID_11N_P_ACTION_REQ = 0x3080,
920 WID_HUT_TEST_ID = 0x3081,
921 WID_PMKID_INFO = 0x3082,
922 WID_FIRMWARE_INFO = 0x3083,
923 WID_REGISTER_FRAME = 0x3084,
924 WID_DEL_ALL_STA = 0x3085,
925 WID_REMAIN_ON_CHAN = 0x3996,
926 WID_SSID_PROBE_REQ = 0x3997,
927 WID_JOIN_REQ_EXTENDED = 0x3998,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900928
Leo Kim531c7ce2015-09-22 14:34:46 +0900929 WID_IP_ADDRESS = 0x3999,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900930
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900931 /* Custom String WID list */
932
933 /* EMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900934 WID_UAPSD_CONFIG = 0x4001,
935 WID_UAPSD_STATUS = 0x4002,
936 WID_WMM_AP_AC_PARAMS = 0x4003,
937 WID_WMM_STA_AC_PARAMS = 0x4004,
938 WID_NETWORK_INFO = 0x4005,
939 WID_STA_JOIN_INFO = 0x4006,
940 WID_CONNECTED_STA_LIST = 0x4007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900941
942 /* NMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900943 WID_11N_AUTORATE_TABLE = 0x4080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900944
Leo Kim531c7ce2015-09-22 14:34:46 +0900945 WID_SCAN_CHANNEL_LIST = 0x4084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900946
Leo Kim531c7ce2015-09-22 14:34:46 +0900947 WID_INFO_ELEMENT_PROBE = 0x4085,
948 WID_INFO_ELEMENT_ASSOCIATE = 0x4086,
949 WID_ADD_STA = 0X4087,
950 WID_REMOVE_STA = 0X4088,
951 WID_EDIT_STA = 0X4089,
952 WID_ADD_BEACON = 0x408a,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900953
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900954 WID_SETUP_MULTICAST_FILTER = 0x408b,
955
956 /* Miscellaneous WIDs */
Leo Kim531c7ce2015-09-22 14:34:46 +0900957 WID_ALL = 0x7FFE,
958 WID_MAX = 0xFFFF
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900959} WID_T;
960
961int wilc_wlan_init(wilc_wlan_inp_t *inp, wilc_wlan_oup_t *oup);
962
963void wilc_bus_set_max_speed(void);
964void wilc_bus_set_default_speed(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900965u32 wilc_get_chipid(u8 update);
Chaehyun Limdd322572015-09-22 22:47:43 +0900966extern wilc_wlan_oup_t *gpstrWlanOps;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900967
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900968#endif