blob: 7aa317dfb18024261be3e50fd7b34e6a4919a9f8 [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>
Johnny Kimc5c77ba2015-05-11 14:30:56 +090017#include "linux_wlan_common.h"
18
Johnny Kimc5c77ba2015-05-11 14:30:56 +090019/********************************************
20 *
21 * Debug Flags
22 *
23 ********************************************/
24
Leo Kim531c7ce2015-09-22 14:34:46 +090025#define N_INIT 0x00000001
26#define N_ERR 0x00000002
27#define N_TXQ 0x00000004
28#define N_INTR 0x00000008
29#define N_RXQ 0x00000010
Johnny Kimc5c77ba2015-05-11 14:30:56 +090030
31/********************************************
32 *
33 * Host Interface Defines
34 *
35 ********************************************/
36
Leo Kim531c7ce2015-09-22 14:34:46 +090037#define HIF_SDIO (0)
38#define HIF_SPI BIT(0)
39#define HIF_SDIO_GPIO_IRQ BIT(2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090040
Johnny Kimc5c77ba2015-05-11 14:30:56 +090041/********************************************
42 *
43 * Tx/Rx Buffer Size Defines
44 *
45 ********************************************/
46
Leo Kim531c7ce2015-09-22 14:34:46 +090047#define CE_TX_BUFFER_SIZE (64 * 1024)
48#define CE_RX_BUFFER_SIZE (384 * 1024)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090049
50/********************************************
51 *
52 * Wlan Interface Defines
53 *
54 ********************************************/
55
56typedef struct {
Leo Kim531c7ce2015-09-22 14:34:46 +090057 u32 read_write: 1;
58 u32 function: 3;
59 u32 raw: 1;
60 u32 address: 17;
61 u32 data: 8;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090062} sdio_cmd52_t;
63
64typedef struct {
65 /* struct { */
Leo Kim531c7ce2015-09-22 14:34:46 +090066 u32 read_write: 1;
67 u32 function: 3;
68 u32 block_mode: 1;
69 u32 increment: 1;
70 u32 address: 17;
71 u32 count: 9;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090072 /* } bit; */
Chaehyun Lim51e825f2015-09-15 14:06:14 +090073 u8 *buffer;
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090074 u32 block_size;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090075} sdio_cmd53_t;
76
77typedef struct {
Johnny Kimc5c77ba2015-05-11 14:30:56 +090078 int io_type;
79 int (*io_init)(void *);
80 void (*io_deinit)(void *);
81 union {
82 struct {
83 int (*sdio_cmd52)(sdio_cmd52_t *);
84 int (*sdio_cmd53)(sdio_cmd53_t *);
85 int (*sdio_set_max_speed)(void);
86 int (*sdio_set_default_speed)(void);
87 } sdio;
88 struct {
89 int (*spi_max_speed)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090090 int (*spi_tx)(u8 *, u32);
91 int (*spi_rx)(u8 *, u32);
92 int (*spi_trx)(u8 *, u8 *, u32);
Johnny Kimc5c77ba2015-05-11 14:30:56 +090093 } spi;
94 } u;
95} wilc_wlan_io_func_t;
96
Leo Kim531c7ce2015-09-22 14:34:46 +090097#define WILC_MAC_INDICATE_STATUS 0x1
98#define WILC_MAC_STATUS_INIT -1
99#define WILC_MAC_STATUS_READY 0
100#define WILC_MAC_STATUS_CONNECT 1
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900101
102#define WILC_MAC_INDICATE_SCAN 0x2
103
104typedef struct {
105 void *os_private;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900106} wilc_wlan_os_context_t;
107
108typedef struct {
109 wilc_wlan_os_context_t os_context;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900110 wilc_wlan_io_func_t io_func;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900111} wilc_wlan_inp_t;
112
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900113struct tx_complete_data {
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900114 int size;
115 void *buff;
Chaehyun Lim51e825f2015-09-15 14:06:14 +0900116 u8 *pBssid;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900117 struct sk_buff *skb;
118};
119
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900120typedef void (*wilc_tx_complete_func_t)(void *, int);
121
Leo Kim531c7ce2015-09-22 14:34:46 +0900122#define WILC_TX_ERR_NO_BUF (-2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900123
124typedef struct {
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900125 int (*wlan_firmware_download)(const u8 *, u32);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900126 int (*wlan_start)(void);
127 int (*wlan_stop)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900128 int (*wlan_add_to_tx_que)(void *, u8 *, u32, wilc_tx_complete_func_t);
129 int (*wlan_handle_tx_que)(u32 *);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900130 void (*wlan_handle_rx_isr)(void);
131 void (*wlan_cleanup)(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900132 int (*wlan_cfg_set)(int, u32, u8 *, u32, int, u32);
133 int (*wlan_cfg_get)(int, u32, int, u32);
134 int (*wlan_cfg_get_value)(u32, u8 *, u32);
Leo Kimd4cebe42015-09-22 14:34:45 +0900135 int (*wlan_add_mgmt_to_tx_que)(void *, u8 *, u32,
136 wilc_tx_complete_func_t);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900137} wilc_wlan_oup_t;
138
139/********************************************
140 *
141 * Wlan Configuration ID
142 *
143 ********************************************/
144
145#define MAX_SSID_LEN 33
146#define MAX_RATES_SUPPORTED 12
147
Leo Kim531c7ce2015-09-22 14:34:46 +0900148#define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF)
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900149
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900150typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900151 SUPP_RATES_IE = 1,
152 EXT_SUPP_RATES_IE = 50,
153 HT_CAPABILITY_IE = 45,
154 RSN_IE = 48,
155 WPA_IE = 221,
156 WMM_IE = 221,
157 P2P_IE = 221,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900158} BEACON_IE;
Glen Lee438b2932015-09-30 11:59:23 +0900159
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900160typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900161 INFRASTRUCTURE = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900162 INDEPENDENT,
163 AP,
164} BSSTYPE_T;
165
166typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900167 RATE_AUTO = 0,
168 RATE_1MB = 1,
169 RATE_2MB = 2,
170 RATE_5MB = 5,
171 RATE_6MB = 6,
172 RATE_9MB = 9,
173 RATE_11MB = 11,
174 RATE_12MB = 12,
175 RATE_18MB = 18,
176 RATE_24MB = 24,
177 RATE_26MB = 36,
178 RATE_48MB = 48,
179 RATE_54MB = 54
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900180} TX_RATE_T;
181
182typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900183 B_ONLY_MODE = 0, /* 1, 2 M, otherwise 5, 11 M */
184 G_ONLY_MODE, /* 6,12,24 otherwise 9,18,36,48,54 */
185 G_MIXED_11B_1_MODE, /* 1,2,5.5,11 otherwise all on */
186 G_MIXED_11B_2_MODE, /* 1,2,5,11,6,12,24 otherwise all on */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900187} G_OPERATING_MODE_T;
188
189typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900190 G_SHORT_PREAMBLE = 0, /* Short Preamble */
191 G_LONG_PREAMBLE = 1, /* Long Preamble */
192 G_AUTO_PREAMBLE = 2, /* Auto Preamble Selection */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900193} G_PREAMBLE_T;
194
Leo Kim531c7ce2015-09-22 14:34:46 +0900195#define MAC_CONNECTED 1
196#define MAC_DISCONNECTED 0
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900197
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900198#define SCAN_DONE TRUE
199typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900200 PASSIVE_SCAN = 0,
201 ACTIVE_SCAN = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900202} SCANTYPE_T;
203
204typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900205 NO_POWERSAVE = 0,
206 MIN_FAST_PS = 1,
207 MAX_FAST_PS = 2,
208 MIN_PSPOLL_PS = 3,
209 MAX_PSPOLL_PS = 4
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900210} USER_PS_MODE_T;
211
212typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900213 CHIP_WAKEDUP = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900214 CHIP_SLEEPING_AUTO = 1,
Leo Kim531c7ce2015-09-22 14:34:46 +0900215 CHIP_SLEEPING_MANUAL = 2
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900216} CHIP_PS_STATE_T;
217
218typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900219 ACQUIRE_ONLY = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900220 ACQUIRE_AND_WAKEUP = 1,
221} BUS_ACQUIRE_T;
222
223typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900224 RELEASE_ONLY = 0,
225 RELEASE_ALLOW_SLEEP = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900226} BUS_RELEASE_T;
227
228typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900229 NO_SECURITY = 0,
230 WEP_40 = 0x3,
231 WEP_104 = 0x7,
232 WPA_AES = 0x29,
233 WPA_TKIP = 0x49,
234 WPA_AES_TKIP = 0x69, /* Aes or Tkip */
235 WPA2_AES = 0x31,
236 WPA2_TKIP = 0x51,
237 WPA2_AES_TKIP = 0x71, /* Aes or Tkip */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900238} SECURITY_T;
239
240typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900241 OPEN_SYSTEM = 1,
242 SHARED_KEY = 2,
243 ANY = 3,
244 IEEE8021 = 5
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900245} AUTHTYPE_T;
246
247typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900248 SITE_SURVEY_1CH = 0,
249 SITE_SURVEY_ALL_CH = 1,
250 SITE_SURVEY_OFF = 2
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900251} SITE_SURVEY_T;
252
253typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900254 NORMAL_ACK = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900255 NO_ACK,
256} ACK_POLICY_T;
257
258typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900259 DONT_RESET = 0,
260 DO_RESET = 1,
261 NO_REQUEST = 2,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900262} RESET_REQ_T;
263
264typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900265 REKEY_DISABLE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900266 REKEY_TIME_BASE,
267 REKEY_PKT_BASE,
268 REKEY_TIME_PKT_BASE
269} RSNA_REKEY_POLICY_T;
270
271typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900272 FILTER_NO = 0x00,
273 FILTER_AP_ONLY = 0x01,
274 FILTER_STA_ONLY = 0x02
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900275} SCAN_CLASS_FITLER_T;
276
277typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900278 PRI_HIGH_RSSI = 0x00,
279 PRI_LOW_RSSI = 0x04,
280 PRI_DETECT = 0x08
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900281} SCAN_PRI_T;
282
283typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900284 CH_FILTER_OFF = 0x00,
285 CH_FILTER_ON = 0x10
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900286} CH_FILTER_T;
287
288typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900289 AUTO_PROT = 0, /* Auto */
290 NO_PROT, /* Do not use any protection */
291 ERP_PROT, /* Protect all ERP frame exchanges */
292 HT_PROT, /* Protect all HT frame exchanges */
293 GF_PROT, /* Protect all GF frame exchanges */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900294} N_PROTECTION_MODE_T;
295
296typedef enum {
297 G_SELF_CTS_PROT,
298 G_RTS_CTS_PROT,
299} G_PROTECTION_MODE_T;
300
301typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900302 HT_MIXED_MODE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900303 HT_ONLY_20MHZ_MODE,
304 HT_ONLY_20_40MHZ_MODE,
305} N_OPERATING_MODE_T;
306
307typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900308 NO_DETECT = 0,
309 DETECT_ONLY = 1,
310 DETECT_PROTECT = 2,
311 DETECT_PROTECT_REPORT = 3,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900312} N_OBSS_DETECTION_T;
313
314typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900315 RTS_CTS_NONHT_PROT = 0, /* RTS-CTS at non-HT rate */
316 FIRST_FRAME_NONHT_PROT, /* First frame at non-HT rate */
317 LSIG_TXOP_PROT, /* LSIG TXOP Protection */
318 FIRST_FRAME_MIXED_PROT, /* First frame at Mixed format */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900319} N_PROTECTION_TYPE_T;
320
321typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900322 STATIC_MODE = 1,
323 DYNAMIC_MODE = 2,
324 MIMO_MODE = 3, /* power save disable */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900325} N_SMPS_MODE_T;
326
327typedef enum {
328 DISABLE_SELF_CTS,
329 ENABLE_SELF_CTS,
330 DISABLE_TX_ABORT,
331 ENABLE_TX_ABORT,
332 HW_TRIGGER_ABORT,
333 SW_TRIGGER_ABORT,
334} TX_ABORT_OPTION_T;
335
336typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900337 WID_CHAR = 0,
338 WID_SHORT = 1,
339 WID_INT = 2,
340 WID_STR = 3,
341 WID_BIN_DATA = 4,
342 WID_BIN = 5,
343 WID_IP = 6,
344 WID_ADR = 7,
345 WID_UNDEF = 8,
346 WID_TYPE_FORCE_32BIT = 0xFFFFFFFF
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900347
348} WID_TYPE_T, tenuWIDtype;
349
350typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900351 WID_NIL = 0xffff,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900352
Leo Kimd4cebe42015-09-22 14:34:45 +0900353 /*
354 * BSS Type
355 * -----------------------------------------------------------
356 * Configuration : Infrastructure Independent Access Point
357 * Values to set : 0 1 2
358 * -----------------------------------------------------------
359 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900360 WID_BSS_TYPE = 0x0000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900361
Leo Kimd4cebe42015-09-22 14:34:45 +0900362 /*
363 * Transmit Rate
364 * -----------------------------------------------------------
365 * Configuration : 1 2 5.5 11 6 9 12 18 24 36 48 54
366 * Values to set : 1 2 5 11 6 9 12 18 24 36 48 54
367 * -----------------------------------------------------------
368 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900369 WID_CURRENT_TX_RATE = 0x0001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900370
Leo Kimd4cebe42015-09-22 14:34:45 +0900371 /*
372 * Channel
373 * -----------------------------------------------------------
374 * Configuration(g) : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
375 * Values to set : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
376 * -----------------------------------------------------------
377 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900378 WID_CURRENT_CHANNEL = 0x0002,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900379
Leo Kimd4cebe42015-09-22 14:34:45 +0900380 /*
381 * Preamble
382 * -----------------------------------------------------------
383 * Configuration : short long Auto
384 * Values to set : 0 1 2
385 * -----------------------------------------------------------
386 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900387 WID_PREAMBLE = 0x0003,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900388
Leo Kimd4cebe42015-09-22 14:34:45 +0900389 /*
390 * 11g operating mode (ignored if 11g not present)
391 * -----------------------------------------------------------
392 * Configuration : HighPerf Compat(RSet #1) Compat(RSet #2)
393 * Values to set : 1 2 3
394 * -----------------------------------------------------------
395 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900396 WID_11G_OPERATING_MODE = 0x0004,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900397
Leo Kimd4cebe42015-09-22 14:34:45 +0900398 /*
399 * Mac status (response only)
400 * -----------------------------------------------------------
401 * Configuration : disconnect connect
402 * Values to get : 0 1
403 * -----------------------------------------------------------
404 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900405 WID_STATUS = 0x0005,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900406
Leo Kimd4cebe42015-09-22 14:34:45 +0900407 /*
408 * Scan type
409 * -----------------------------------------------------------
410 * Configuration : Passive Scanning Active Scanning
411 * Values to set : 0 1
412 * -----------------------------------------------------------
413 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900414 WID_SCAN_TYPE = 0x0007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900415
Leo Kimd4cebe42015-09-22 14:34:45 +0900416 /*
417 * Key Id (WEP default key Id)
418 * -----------------------------------------------------------
419 * Configuration : Any value between 0 to 3
420 * Values to set : Same value. Default is 0
421 * -----------------------------------------------------------
422 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900423 WID_KEY_ID = 0x0009,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900424
Leo Kimd4cebe42015-09-22 14:34:45 +0900425 /*
426 * QoS Enable
427 * -----------------------------------------------------------
428 * Configuration : QoS Disable WMM Enable
429 * Values to set : 0 1
430 * -----------------------------------------------------------
431 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900432 WID_QOS_ENABLE = 0x000A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900433
Leo Kimd4cebe42015-09-22 14:34:45 +0900434 /*
435 * Power Management
436 * -----------------------------------------------------------
437 * Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE
438 * Values to set : 0 1 2
439 * -----------------------------------------------------------
440 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900441 WID_POWER_MANAGEMENT = 0x000B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900442
Leo Kimd4cebe42015-09-22 14:34:45 +0900443 /*
444 * WEP/802 11I Configuration
445 * -----------------------------------------------------------
446 * Configuration:Disable WP40 WP104 WPA-AES WPA-TKIP RSN-AES RSN-TKIP
447 * Values (0x) : 00 03 07 29 49 31 51
448 * Configuration:WPA-AES+TKIP RSN-AES+TKIP
449 * Values (0x) : 69 71
450 * -----------------------------------------------------------
451 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900452 WID_11I_MODE = 0x000C,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900453
Leo Kimd4cebe42015-09-22 14:34:45 +0900454 /*
455 * WEP Configuration: Used in BSS STA mode only when WEP is enabled
456 * -----------------------------------------------------------
457 * Configuration : Open System Shared Key Any Type | 802.1x Auth
458 * Values (0x) : 01 02 03 | BIT2
459 * -----------------------------------------------------------
460 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900461 WID_AUTH_TYPE = 0x000D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900462
Leo Kimd4cebe42015-09-22 14:34:45 +0900463 /*
464 * Site Survey Type
465 * -----------------------------------------------------------
466 * Configuration : Values to set
467 * Survey 1 Channel : 0
468 * survey all Channels : 1
469 * Disable Site Survey : 2
470 * -----------------------------------------------------------
471 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900472 WID_SITE_SURVEY = 0x000E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900473
Leo Kimd4cebe42015-09-22 14:34:45 +0900474 /*
475 * Listen Interval
476 * -----------------------------------------------------------
477 * Configuration : Any value between 1 to 255
478 * Values to set : Same value. Default is 3
479 * -----------------------------------------------------------
480 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900481 WID_LISTEN_INTERVAL = 0x000F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900482
Leo Kimd4cebe42015-09-22 14:34:45 +0900483 /*
484 * DTIM Period
485 * -----------------------------------------------------------
486 * Configuration : Any value between 1 to 255
487 * Values to set : Same value. Default is 3
488 * -----------------------------------------------------------
489 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900490 WID_DTIM_PERIOD = 0x0010,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900491
Leo Kimd4cebe42015-09-22 14:34:45 +0900492 /*
493 * ACK Policy
494 * -----------------------------------------------------------
495 * Configuration : Normal Ack No Ack
496 * Values to set : 0 1
497 * -----------------------------------------------------------
498 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900499 WID_ACK_POLICY = 0x0011,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900500
Leo Kimd4cebe42015-09-22 14:34:45 +0900501 /*
502 * Reset MAC (Set only)
503 * -----------------------------------------------------------
504 * Configuration : Don't Reset Reset No Request
505 * Values to set : 0 1 2
506 * -----------------------------------------------------------
507 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900508 WID_RESET = 0x0012,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900509
Leo Kimd4cebe42015-09-22 14:34:45 +0900510 /*
511 * Broadcast SSID Option: Setting this will adhere to "" SSID element
512 * -----------------------------------------------------------
513 * Configuration : Enable Disable
514 * Values to set : 1 0
515 * -----------------------------------------------------------
516 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900517 WID_BCAST_SSID = 0x0015,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900518
Leo Kimd4cebe42015-09-22 14:34:45 +0900519 /*
520 * Disconnect (Station)
521 * -----------------------------------------------------------
522 * Configuration : Association ID
523 * Values to set : Association ID
524 * -----------------------------------------------------------
525 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900526 WID_DISCONNECT = 0x0016,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900527
Leo Kimd4cebe42015-09-22 14:34:45 +0900528 /*
529 * 11a Tx Power Level
530 * -----------------------------------------------------------
531 * Configuration : Sets TX Power (Higher the value greater the power)
532 * Values to set : Any value between 0 and 63 (inclusive Default 48)
533 * -----------------------------------------------------------
534 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900535 WID_TX_POWER_LEVEL_11A = 0x0018,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900536
Leo Kimd4cebe42015-09-22 14:34:45 +0900537 /*
538 * Group Key Update Policy Selection
539 * -----------------------------------------------------------
540 * Configuration : Disabled timeBased packetBased timePacketBased
541 * Values to set : 1 2 3 4
542 * -----------------------------------------------------------
543 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900544 WID_REKEY_POLICY = 0x0019,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900545
Leo Kimd4cebe42015-09-22 14:34:45 +0900546 /*
547 * Allow Short Slot
548 * -----------------------------------------------------------
549 * Configuration : Disallow Short Slot Allow Short Slot
550 * (Enable Only Long Slot) (Enable Short Slot if applicable)
551 * Values to set : 0 1
552 * -----------------------------------------------------------
553 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900554 WID_SHORT_SLOT_ALLOWED = 0x001A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900555
Leo Kim531c7ce2015-09-22 14:34:46 +0900556 WID_PHY_ACTIVE_REG = 0x001B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900557
Leo Kimd4cebe42015-09-22 14:34:45 +0900558 /*
559 * 11b Tx Power Level
560 * -----------------------------------------------------------
561 * Configuration : Sets TX Power (Higher the value greater the power)
562 * Values to set : Any value between 0 and 63 (inclusive Default 48)
563 * -----------------------------------------------------------
564 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900565 WID_TX_POWER_LEVEL_11B = 0x001D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900566
Leo Kimd4cebe42015-09-22 14:34:45 +0900567 /*
568 * Scan Request
569 * -----------------------------------------------------------
570 * Configuration : Request default scan
571 * Values to set : 0
572 * -----------------------------------------------------------
573 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900574 WID_START_SCAN_REQ = 0x001E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900575
Leo Kimd4cebe42015-09-22 14:34:45 +0900576 /*
577 * Rssi (get only)
578 * -----------------------------------------------------------
579 * Configuration :
580 * Values to get : Rssi value
581 * -----------------------------------------------------------
582 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900583 WID_RSSI = 0x001F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900584
Leo Kimd4cebe42015-09-22 14:34:45 +0900585 /*
586 * Join Request
587 * -----------------------------------------------------------
588 * Configuration : Request to join
589 * Values to set : index of scan result
590 * -----------------------------------------------------------
591 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900592 WID_JOIN_REQ = 0x0020,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900593
Leo Kimd4cebe42015-09-22 14:34:45 +0900594 WID_LINKSPEED = 0x0026,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900595
Leo Kimd4cebe42015-09-22 14:34:45 +0900596 /*
597 * Enable User Control of TX Power
598 * -----------------------------------------------------------
599 * Configuration : Disable Enable
600 * Values to set : 0 1
601 * -----------------------------------------------------------
602 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900603 WID_USER_CONTROL_ON_TX_POWER = 0x0027,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900604
Leo Kim531c7ce2015-09-22 14:34:46 +0900605 WID_MEMORY_ACCESS_8BIT = 0x0029,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900606
Leo Kimd4cebe42015-09-22 14:34:45 +0900607 /*
608 * Enable Auto RX Sensitivity feature
609 * -----------------------------------------------------------
610 * Configuration : Disable Enable
611 * Values to set : 0 1
612 * -----------------------------------------------------------
613 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900614 WID_AUTO_RX_SENSITIVITY = 0x0032,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900615
Leo Kimd4cebe42015-09-22 14:34:45 +0900616 /*
617 * Receive Buffer Based Ack
618 * -----------------------------------------------------------
619 * Configuration : Disable Enable
620 * Values to set : 0 1
621 * -----------------------------------------------------------
622 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900623 WID_DATAFLOW_CONTROL = 0x0033,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900624
Leo Kimd4cebe42015-09-22 14:34:45 +0900625 /*
626 * Scan Filter
627 * -----------------------------------------------------------
628 * Configuration : Class No filter AP only Station Only
629 * Values to set : 0 1 2
630 * Configuration : Priority High Rssi Low Rssi Detect
631 * Values to set : 0 0x4 0x0
632 * Configuration : Channel filter off filter on
633 * Values to set : 0 0x10
634 * -----------------------------------------------------------
635 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900636 WID_SCAN_FILTER = 0x0036,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900637
Leo Kimd4cebe42015-09-22 14:34:45 +0900638 /*
639 * Link Loss Threshold (measure in the beacon period)
640 * -----------------------------------------------------------
641 * Configuration : Any value between 10 and 254(Set to 255 disable)
642 * Values to set : Same value. Default is 10
643 * -----------------------------------------------------------
644 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900645 WID_LINK_LOSS_THRESHOLD = 0x0037,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900646
Leo Kim531c7ce2015-09-22 14:34:46 +0900647 WID_ABORT_RUNNING_SCAN = 0x003E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900648
649 /* NMAC Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900650 WID_WPS_START = 0x0043,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900651
Leo Kimd4cebe42015-09-22 14:34:45 +0900652 /*
653 * Protection mode for MAC
654 * -----------------------------------------------------------
655 * Configuration : Auto No protection ERP HT GF
656 * Values to set : 0 1 2 3 4
657 * -----------------------------------------------------------
658 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900659 WID_11N_PROT_MECH = 0x0080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900660
Leo Kimd4cebe42015-09-22 14:34:45 +0900661 /*
662 * ERP Protection type for MAC
663 * -----------------------------------------------------------
664 * Configuration : Self-CTS RTS-CTS
665 * Values to set : 0 1
666 * -----------------------------------------------------------
667 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900668 WID_11N_ERP_PROT_TYPE = 0x0081,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900669
Leo Kimd4cebe42015-09-22 14:34:45 +0900670 /*
671 * HT Option Enable
672 * -----------------------------------------------------------
673 * Configuration : HT Enable HT Disable
674 * Values to set : 1 0
675 * -----------------------------------------------------------
676 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900677 WID_11N_ENABLE = 0x0082,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900678
Leo Kimd4cebe42015-09-22 14:34:45 +0900679 /*
680 * 11n Operating mode (Note that 11g operating mode will also be
681 * used in addition to this, if this is set to HT Mixed mode)
682 * -----------------------------------------------------------
683 * Configuration : HT Mixed HT Only-20MHz HT Only-20/40MHz
684 * Values to set : 1 2 3
685 * -----------------------------------------------------------
686 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900687 WID_11N_OPERATING_MODE = 0x0083,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900688
Leo Kimd4cebe42015-09-22 14:34:45 +0900689 /*
690 * 11n OBSS non-HT STA Detection flag
691 * -----------------------------------------------------------
692 * Configuration : Do not detect
693 * Values to set : 0
694 * Configuration : Detect, do not protect or report
695 * Values to set : 1
696 * Configuration : Detect, protect and do not report
697 * Values to set : 2
698 * Configuration : Detect, protect and report to other BSS
699 * Values to set : 3
700 * -----------------------------------------------------------
701 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900702 WID_11N_OBSS_NONHT_DETECTION = 0x0084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900703
Leo Kimd4cebe42015-09-22 14:34:45 +0900704 /*
705 * 11n HT Protection Type
706 * -----------------------------------------------------------
707 * Configuration : RTS-CTS First Frame Exchange at non-HT-rate
708 * Values to set : 0 1
709 * Configuration : LSIG TXOP First Frame Exchange in Mixed Fmt
710 * Values to set : 2 3
711 * -----------------------------------------------------------
712 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900713 WID_11N_HT_PROT_TYPE = 0x0085,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900714
Leo Kimd4cebe42015-09-22 14:34:45 +0900715 /*
716 * 11n RIFS Protection Enable Flag
717 * -----------------------------------------------------------
718 * Configuration : Disable Enable
719 * Values to set : 0 1
720 * -----------------------------------------------------------
721 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900722 WID_11N_RIFS_PROT_ENABLE = 0x0086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900723
Leo Kimd4cebe42015-09-22 14:34:45 +0900724 /*
725 * SMPS Mode
726 * -----------------------------------------------------------
727 * Configuration : Static Dynamic MIMO (Power Save Disabled)
728 * Values to set : 1 2 3
729 * -----------------------------------------------------------
730 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900731 WID_11N_SMPS_MODE = 0x0087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900732
Leo Kimd4cebe42015-09-22 14:34:45 +0900733 /*
734 * Current transmit MCS
735 * -----------------------------------------------------------
736 * Configuration : MCS Index for data rate
737 * Values to set : 0 to 7
738 * -----------------------------------------------------------
739 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900740 WID_11N_CURRENT_TX_MCS = 0x0088,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900741
Leo Kim531c7ce2015-09-22 14:34:46 +0900742 WID_11N_PRINT_STATS = 0x0089,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900743
Leo Kimd4cebe42015-09-22 14:34:45 +0900744 /*
745 * 11n Short GI Enable Flag
746 * -----------------------------------------------------------
747 * Configuration : Disable Enable
748 * Values to set : 0 1
749 * -----------------------------------------------------------
750 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900751 WID_11N_SHORT_GI_ENABLE = 0x008D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900752
Leo Kimd4cebe42015-09-22 14:34:45 +0900753 /*
754 * 11n RIFS Enable Flag
755 * -----------------------------------------------------------
756 * Configuration : Disable Enable
757 * Values to set : 0 1
758 * -----------------------------------------------------------
759 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900760 WID_RIFS_MODE = 0x0094,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900761
Leo Kimd4cebe42015-09-22 14:34:45 +0900762 /*
763 * TX Abort Feature
764 * -----------------------------------------------------------
765 * Configuration : Disable Self CTS Enable Self CTS
766 * Values to set : 0 1
767 * Configuration : Disable TX Abort Enable TX Abort
768 * Values to set : 2 3
769 * Configuration : Enable HW TX Abort Enable SW TX Abort
770 * Values to set : 4 5
771 * -----------------------------------------------------------
772 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900773 WID_TX_ABORT_CONFIG = 0x00A1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900774
Leo Kim531c7ce2015-09-22 14:34:46 +0900775 WID_REG_TSSI_11B_VALUE = 0x00A6,
776 WID_REG_TSSI_11G_VALUE = 0x00A7,
777 WID_REG_TSSI_11N_VALUE = 0x00A8,
778 WID_TX_CALIBRATION = 0x00A9,
779 WID_DSCR_TSSI_11B_VALUE = 0x00AA,
780 WID_DSCR_TSSI_11G_VALUE = 0x00AB,
781 WID_DSCR_TSSI_11N_VALUE = 0x00AC,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900782
Leo Kimd4cebe42015-09-22 14:34:45 +0900783 /*
784 * Immediate Block-Ack Support
785 * -----------------------------------------------------------
786 * Configuration : Disable Enable
787 * Values to set : 0 1
788 * -----------------------------------------------------------
789 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900790 WID_11N_IMMEDIATE_BA_ENABLED = 0x00AF,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900791
Leo Kimd4cebe42015-09-22 14:34:45 +0900792 /*
793 * TXOP Disable Flag
794 * -----------------------------------------------------------
795 * Configuration : Disable Enable
796 * Values to set : 1 0
797 * -----------------------------------------------------------
798 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900799 WID_11N_TXOP_PROT_DISABLE = 0x00B0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900800
Leo Kim531c7ce2015-09-22 14:34:46 +0900801 WID_TX_POWER_LEVEL_11N = 0x00B1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900802
803 /* Custom Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900804 WID_PC_TEST_MODE = 0x00C8,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900805 /* SCAN Complete notification WID*/
806 WID_SCAN_COMPLETE = 0x00C9,
807
Leo Kim531c7ce2015-09-22 14:34:46 +0900808 WID_DEL_BEACON = 0x00CA,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900809
Leo Kim531c7ce2015-09-22 14:34:46 +0900810 WID_LOGTerminal_Switch = 0x00CD,
Leo Kimd4cebe42015-09-22 14:34:45 +0900811 /* EMAC Short WID list */
812 /* RTS Threshold */
813 /*
814 * -----------------------------------------------------------
815 * Configuration : Any value between 256 to 2347
816 * Values to set : Same value. Default is 2347
817 * -----------------------------------------------------------
818 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900819 WID_RTS_THRESHOLD = 0x1000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900820
Leo Kimd4cebe42015-09-22 14:34:45 +0900821 /*
822 * Fragmentation Threshold
823 * -----------------------------------------------------------
824 * Configuration : Any value between 256 to 2346
825 * Values to set : Same value. Default is 2346
826 * -----------------------------------------------------------
827 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900828 WID_FRAG_THRESHOLD = 0x1001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900829
Leo Kim531c7ce2015-09-22 14:34:46 +0900830 WID_SHORT_RETRY_LIMIT = 0x1002,
831 WID_LONG_RETRY_LIMIT = 0x1003,
832 WID_BEACON_INTERVAL = 0x1006,
833 WID_MEMORY_ACCESS_16BIT = 0x1008,
834 WID_RX_SENSE = 0x100B,
835 WID_ACTIVE_SCAN_TIME = 0x100C,
836 WID_PASSIVE_SCAN_TIME = 0x100D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900837
Leo Kim531c7ce2015-09-22 14:34:46 +0900838 WID_SITE_SURVEY_SCAN_TIME = 0x100E,
839 WID_JOIN_START_TIMEOUT = 0x100F,
840 WID_AUTH_TIMEOUT = 0x1010,
841 WID_ASOC_TIMEOUT = 0x1011,
842 WID_11I_PROTOCOL_TIMEOUT = 0x1012,
843 WID_EAPOL_RESPONSE_TIMEOUT = 0x1013,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900844
845 /* NMAC Short WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900846 WID_11N_SIG_QUAL_VAL = 0x1085,
847 WID_CCA_THRESHOLD = 0x1087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900848
849 /* Custom Short WID list */
850
851 /* EMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900852 WID_FAILED_COUNT = 0x2000,
853 WID_RETRY_COUNT = 0x2001,
854 WID_MULTIPLE_RETRY_COUNT = 0x2002,
855 WID_FRAME_DUPLICATE_COUNT = 0x2003,
856 WID_ACK_FAILURE_COUNT = 0x2004,
857 WID_RECEIVED_FRAGMENT_COUNT = 0x2005,
858 WID_MCAST_RECEIVED_FRAME_COUNT = 0x2006,
859 WID_FCS_ERROR_COUNT = 0x2007,
860 WID_SUCCESS_FRAME_COUNT = 0x2008,
861 WID_HUT_TX_COUNT = 0x200A,
862 WID_TX_FRAGMENT_COUNT = 0x200B,
863 WID_TX_MULTICAST_FRAME_COUNT = 0x200C,
864 WID_RTS_SUCCESS_COUNT = 0x200D,
865 WID_RTS_FAILURE_COUNT = 0x200E,
866 WID_WEP_UNDECRYPTABLE_COUNT = 0x200F,
867 WID_REKEY_PERIOD = 0x2010,
868 WID_REKEY_PACKET_COUNT = 0x2011,
869 WID_1X_SERV_ADDR = 0x2012,
870 WID_STACK_IP_ADDR = 0x2013,
871 WID_STACK_NETMASK_ADDR = 0x2014,
872 WID_HW_RX_COUNT = 0x2015,
873 WID_MEMORY_ADDRESS = 0x201E,
874 WID_MEMORY_ACCESS_32BIT = 0x201F,
875 WID_RF_REG_VAL = 0x2021,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900876
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900877 /* NMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900878 WID_11N_PHY_ACTIVE_REG_VAL = 0x2080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900879
880 /* Custom Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900881 WID_GET_INACTIVE_TIME = 0x2084,
882 WID_SET_DRV_HANDLER = 0X2085,
883 WID_SET_OPERATION_MODE = 0X2086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900884 /* EMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900885 WID_SSID = 0x3000,
886 WID_FIRMWARE_VERSION = 0x3001,
887 WID_OPERATIONAL_RATE_SET = 0x3002,
888 WID_BSSID = 0x3003,
889 WID_WEP_KEY_VALUE = 0x3004,
890 WID_11I_PSK = 0x3008,
891 WID_11E_P_ACTION_REQ = 0x3009,
892 WID_1X_KEY = 0x300A,
893 WID_HARDWARE_VERSION = 0x300B,
894 WID_MAC_ADDR = 0x300C,
895 WID_HUT_DEST_ADDR = 0x300D,
896 WID_PHY_VERSION = 0x300F,
897 WID_SUPP_USERNAME = 0x3010,
898 WID_SUPP_PASSWORD = 0x3011,
899 WID_SITE_SURVEY_RESULTS = 0x3012,
900 WID_RX_POWER_LEVEL = 0x3013,
901 WID_DEL_ALL_RX_BA = 0x3014,
902 WID_SET_STA_MAC_INACTIVE_TIME = 0x3017,
903 WID_ADD_WEP_KEY = 0x3019,
904 WID_REMOVE_WEP_KEY = 0x301A,
905 WID_ADD_PTK = 0x301B,
906 WID_ADD_RX_GTK = 0x301C,
907 WID_ADD_TX_GTK = 0x301D,
908 WID_REMOVE_KEY = 0x301E,
909 WID_ASSOC_REQ_INFO = 0x301F,
910 WID_ASSOC_RES_INFO = 0x3020,
911 WID_MANUFACTURER = 0x3026, /*Added for CAPI tool */
912 WID_MODEL_NAME = 0x3027, /*Added for CAPI tool */
913 WID_MODEL_NUM = 0x3028, /*Added for CAPI tool */
914 WID_DEVICE_NAME = 0x3029, /*Added for CAPI tool */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900915
916 /* NMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900917 WID_11N_P_ACTION_REQ = 0x3080,
918 WID_HUT_TEST_ID = 0x3081,
919 WID_PMKID_INFO = 0x3082,
920 WID_FIRMWARE_INFO = 0x3083,
921 WID_REGISTER_FRAME = 0x3084,
922 WID_DEL_ALL_STA = 0x3085,
923 WID_REMAIN_ON_CHAN = 0x3996,
924 WID_SSID_PROBE_REQ = 0x3997,
925 WID_JOIN_REQ_EXTENDED = 0x3998,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900926
Leo Kim531c7ce2015-09-22 14:34:46 +0900927 WID_IP_ADDRESS = 0x3999,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900928
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900929 /* Custom String WID list */
930
931 /* EMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900932 WID_UAPSD_CONFIG = 0x4001,
933 WID_UAPSD_STATUS = 0x4002,
934 WID_WMM_AP_AC_PARAMS = 0x4003,
935 WID_WMM_STA_AC_PARAMS = 0x4004,
936 WID_NETWORK_INFO = 0x4005,
937 WID_STA_JOIN_INFO = 0x4006,
938 WID_CONNECTED_STA_LIST = 0x4007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900939
940 /* NMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900941 WID_11N_AUTORATE_TABLE = 0x4080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900942
Leo Kim531c7ce2015-09-22 14:34:46 +0900943 WID_SCAN_CHANNEL_LIST = 0x4084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900944
Leo Kim531c7ce2015-09-22 14:34:46 +0900945 WID_INFO_ELEMENT_PROBE = 0x4085,
946 WID_INFO_ELEMENT_ASSOCIATE = 0x4086,
947 WID_ADD_STA = 0X4087,
948 WID_REMOVE_STA = 0X4088,
949 WID_EDIT_STA = 0X4089,
950 WID_ADD_BEACON = 0x408a,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900951
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900952 WID_SETUP_MULTICAST_FILTER = 0x408b,
953
954 /* Miscellaneous WIDs */
Leo Kim531c7ce2015-09-22 14:34:46 +0900955 WID_ALL = 0x7FFE,
956 WID_MAX = 0xFFFF
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900957} WID_T;
958
959int wilc_wlan_init(wilc_wlan_inp_t *inp, wilc_wlan_oup_t *oup);
960
961void wilc_bus_set_max_speed(void);
962void wilc_bus_set_default_speed(void);
Chaehyun Limfbc2fe12015-09-15 14:06:16 +0900963u32 wilc_get_chipid(u8 update);
Chaehyun Limdd322572015-09-22 22:47:43 +0900964extern wilc_wlan_oup_t *gpstrWlanOps;
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900965
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900966#endif