blob: 99aaec782090c72932d42d73f0ba9a6c7642b5b1 [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
Chaehyun Lime215a872015-09-30 08:15:41 +090013#include <linux/semaphore.h>
Glen Leeb22fa802015-11-05 16:12:08 +090014#include <linux/netdevice.h>
Johnny Kimc5c77ba2015-05-11 14:30:56 +090015
Johnny Kimc5c77ba2015-05-11 14:30:56 +090016/********************************************
17 *
18 * Debug Flags
19 *
20 ********************************************/
21
Leo Kim531c7ce2015-09-22 14:34:46 +090022#define N_INIT 0x00000001
23#define N_ERR 0x00000002
24#define N_TXQ 0x00000004
25#define N_INTR 0x00000008
26#define N_RXQ 0x00000010
Johnny Kimc5c77ba2015-05-11 14:30:56 +090027
28/********************************************
29 *
30 * Host Interface Defines
31 *
32 ********************************************/
33
Leo Kim531c7ce2015-09-22 14:34:46 +090034#define HIF_SDIO (0)
35#define HIF_SPI BIT(0)
36#define HIF_SDIO_GPIO_IRQ BIT(2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090037
Johnny Kimc5c77ba2015-05-11 14:30:56 +090038/********************************************
39 *
40 * Tx/Rx Buffer Size Defines
41 *
42 ********************************************/
43
Leo Kim531c7ce2015-09-22 14:34:46 +090044#define CE_TX_BUFFER_SIZE (64 * 1024)
45#define CE_RX_BUFFER_SIZE (384 * 1024)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090046
47/********************************************
48 *
49 * Wlan Interface Defines
50 *
51 ********************************************/
52
Chaehyun Lima91632f2016-03-03 14:28:20 +090053struct sdio_cmd52 {
Leo Kim531c7ce2015-09-22 14:34:46 +090054 u32 read_write: 1;
55 u32 function: 3;
56 u32 raw: 1;
57 u32 address: 17;
58 u32 data: 8;
Chaehyun Lima91632f2016-03-03 14:28:20 +090059};
Johnny Kimc5c77ba2015-05-11 14:30:56 +090060
61typedef struct {
62 /* struct { */
Leo Kim531c7ce2015-09-22 14:34:46 +090063 u32 read_write: 1;
64 u32 function: 3;
65 u32 block_mode: 1;
66 u32 increment: 1;
67 u32 address: 17;
68 u32 count: 9;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090069 /* } bit; */
Chaehyun Lim51e825f2015-09-15 14:06:14 +090070 u8 *buffer;
Chaehyun Limfbc2fe12015-09-15 14:06:16 +090071 u32 block_size;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090072} sdio_cmd53_t;
73
Leo Kim531c7ce2015-09-22 14:34:46 +090074#define WILC_MAC_INDICATE_STATUS 0x1
75#define WILC_MAC_STATUS_INIT -1
76#define WILC_MAC_STATUS_READY 0
77#define WILC_MAC_STATUS_CONNECT 1
Johnny Kimc5c77ba2015-05-11 14:30:56 +090078
79#define WILC_MAC_INDICATE_SCAN 0x2
80
Johnny Kimc5c77ba2015-05-11 14:30:56 +090081struct tx_complete_data {
Johnny Kimc5c77ba2015-05-11 14:30:56 +090082 int size;
83 void *buff;
Leo Kim5b9f5262016-02-04 18:15:34 +090084 u8 *bssid;
Johnny Kimc5c77ba2015-05-11 14:30:56 +090085 struct sk_buff *skb;
86};
87
Johnny Kimc5c77ba2015-05-11 14:30:56 +090088typedef void (*wilc_tx_complete_func_t)(void *, int);
89
Leo Kim531c7ce2015-09-22 14:34:46 +090090#define WILC_TX_ERR_NO_BUF (-2)
Johnny Kimc5c77ba2015-05-11 14:30:56 +090091
Johnny Kimc5c77ba2015-05-11 14:30:56 +090092/********************************************
93 *
94 * Wlan Configuration ID
95 *
96 ********************************************/
Chris Parka3f29652016-02-22 13:41:16 +090097#define WILC_MULTICAST_TABLE_SIZE 8
Johnny Kimc5c77ba2015-05-11 14:30:56 +090098#define MAX_SSID_LEN 33
99#define MAX_RATES_SUPPORTED 12
100
Leo Kim531c7ce2015-09-22 14:34:46 +0900101#define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF)
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900102
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900103typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900104 SUPP_RATES_IE = 1,
105 EXT_SUPP_RATES_IE = 50,
106 HT_CAPABILITY_IE = 45,
107 RSN_IE = 48,
108 WPA_IE = 221,
109 WMM_IE = 221,
110 P2P_IE = 221,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900111} BEACON_IE;
Glen Lee438b2932015-09-30 11:59:23 +0900112
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900113typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900114 INFRASTRUCTURE = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900115 INDEPENDENT,
116 AP,
117} BSSTYPE_T;
118
119typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900120 RATE_AUTO = 0,
121 RATE_1MB = 1,
122 RATE_2MB = 2,
123 RATE_5MB = 5,
124 RATE_6MB = 6,
125 RATE_9MB = 9,
126 RATE_11MB = 11,
127 RATE_12MB = 12,
128 RATE_18MB = 18,
129 RATE_24MB = 24,
130 RATE_26MB = 36,
131 RATE_48MB = 48,
132 RATE_54MB = 54
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900133} TX_RATE_T;
134
135typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900136 B_ONLY_MODE = 0, /* 1, 2 M, otherwise 5, 11 M */
137 G_ONLY_MODE, /* 6,12,24 otherwise 9,18,36,48,54 */
138 G_MIXED_11B_1_MODE, /* 1,2,5.5,11 otherwise all on */
139 G_MIXED_11B_2_MODE, /* 1,2,5,11,6,12,24 otherwise all on */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900140} G_OPERATING_MODE_T;
141
142typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900143 G_SHORT_PREAMBLE = 0, /* Short Preamble */
144 G_LONG_PREAMBLE = 1, /* Long Preamble */
145 G_AUTO_PREAMBLE = 2, /* Auto Preamble Selection */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900146} G_PREAMBLE_T;
147
Leo Kim531c7ce2015-09-22 14:34:46 +0900148#define MAC_CONNECTED 1
149#define MAC_DISCONNECTED 0
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900150
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900151#define SCAN_DONE TRUE
152typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900153 PASSIVE_SCAN = 0,
154 ACTIVE_SCAN = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900155} SCANTYPE_T;
156
157typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900158 NO_POWERSAVE = 0,
159 MIN_FAST_PS = 1,
160 MAX_FAST_PS = 2,
161 MIN_PSPOLL_PS = 3,
162 MAX_PSPOLL_PS = 4
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900163} USER_PS_MODE_T;
164
165typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900166 CHIP_WAKEDUP = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900167 CHIP_SLEEPING_AUTO = 1,
Leo Kim531c7ce2015-09-22 14:34:46 +0900168 CHIP_SLEEPING_MANUAL = 2
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900169} CHIP_PS_STATE_T;
170
171typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900172 ACQUIRE_ONLY = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900173 ACQUIRE_AND_WAKEUP = 1,
174} BUS_ACQUIRE_T;
175
176typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900177 RELEASE_ONLY = 0,
178 RELEASE_ALLOW_SLEEP = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900179} BUS_RELEASE_T;
180
181typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900182 NO_SECURITY = 0,
183 WEP_40 = 0x3,
184 WEP_104 = 0x7,
185 WPA_AES = 0x29,
186 WPA_TKIP = 0x49,
187 WPA_AES_TKIP = 0x69, /* Aes or Tkip */
188 WPA2_AES = 0x31,
189 WPA2_TKIP = 0x51,
190 WPA2_AES_TKIP = 0x71, /* Aes or Tkip */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900191} SECURITY_T;
192
Leo Kim841dfc42015-10-05 15:25:39 +0900193enum AUTHTYPE {
Leo Kim531c7ce2015-09-22 14:34:46 +0900194 OPEN_SYSTEM = 1,
195 SHARED_KEY = 2,
196 ANY = 3,
197 IEEE8021 = 5
Leo Kim841dfc42015-10-05 15:25:39 +0900198};
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900199
Leo Kim073b8d02015-10-05 15:25:47 +0900200enum SITESURVEY {
Leo Kim531c7ce2015-09-22 14:34:46 +0900201 SITE_SURVEY_1CH = 0,
202 SITE_SURVEY_ALL_CH = 1,
203 SITE_SURVEY_OFF = 2
Leo Kim073b8d02015-10-05 15:25:47 +0900204};
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900205
206typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900207 NORMAL_ACK = 0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900208 NO_ACK,
209} ACK_POLICY_T;
210
211typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900212 DONT_RESET = 0,
213 DO_RESET = 1,
214 NO_REQUEST = 2,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900215} RESET_REQ_T;
216
217typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900218 REKEY_DISABLE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900219 REKEY_TIME_BASE,
220 REKEY_PKT_BASE,
221 REKEY_TIME_PKT_BASE
222} RSNA_REKEY_POLICY_T;
223
224typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900225 FILTER_NO = 0x00,
226 FILTER_AP_ONLY = 0x01,
227 FILTER_STA_ONLY = 0x02
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900228} SCAN_CLASS_FITLER_T;
229
230typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900231 PRI_HIGH_RSSI = 0x00,
232 PRI_LOW_RSSI = 0x04,
233 PRI_DETECT = 0x08
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900234} SCAN_PRI_T;
235
236typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900237 CH_FILTER_OFF = 0x00,
238 CH_FILTER_ON = 0x10
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900239} CH_FILTER_T;
240
241typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900242 AUTO_PROT = 0, /* Auto */
243 NO_PROT, /* Do not use any protection */
244 ERP_PROT, /* Protect all ERP frame exchanges */
245 HT_PROT, /* Protect all HT frame exchanges */
246 GF_PROT, /* Protect all GF frame exchanges */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900247} N_PROTECTION_MODE_T;
248
249typedef enum {
250 G_SELF_CTS_PROT,
251 G_RTS_CTS_PROT,
252} G_PROTECTION_MODE_T;
253
254typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900255 HT_MIXED_MODE = 1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900256 HT_ONLY_20MHZ_MODE,
257 HT_ONLY_20_40MHZ_MODE,
258} N_OPERATING_MODE_T;
259
260typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900261 NO_DETECT = 0,
262 DETECT_ONLY = 1,
263 DETECT_PROTECT = 2,
264 DETECT_PROTECT_REPORT = 3,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900265} N_OBSS_DETECTION_T;
266
267typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900268 RTS_CTS_NONHT_PROT = 0, /* RTS-CTS at non-HT rate */
269 FIRST_FRAME_NONHT_PROT, /* First frame at non-HT rate */
270 LSIG_TXOP_PROT, /* LSIG TXOP Protection */
271 FIRST_FRAME_MIXED_PROT, /* First frame at Mixed format */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900272} N_PROTECTION_TYPE_T;
273
274typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900275 STATIC_MODE = 1,
276 DYNAMIC_MODE = 2,
277 MIMO_MODE = 3, /* power save disable */
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900278} N_SMPS_MODE_T;
279
280typedef enum {
281 DISABLE_SELF_CTS,
282 ENABLE_SELF_CTS,
283 DISABLE_TX_ABORT,
284 ENABLE_TX_ABORT,
285 HW_TRIGGER_ABORT,
286 SW_TRIGGER_ABORT,
287} TX_ABORT_OPTION_T;
288
Glen Lee50327db2015-11-03 16:20:58 +0900289enum wid_type {
Leo Kim531c7ce2015-09-22 14:34:46 +0900290 WID_CHAR = 0,
291 WID_SHORT = 1,
292 WID_INT = 2,
293 WID_STR = 3,
294 WID_BIN_DATA = 4,
295 WID_BIN = 5,
296 WID_IP = 6,
297 WID_ADR = 7,
298 WID_UNDEF = 8,
299 WID_TYPE_FORCE_32BIT = 0xFFFFFFFF
Leo Kim20212c02015-10-12 16:55:42 +0900300};
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900301
Glen Leeef7e0122016-02-04 18:15:30 +0900302struct wid {
303 u16 id;
304 enum wid_type type;
305 s32 size;
306 s8 *val;
307};
308
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900309typedef enum {
Leo Kim531c7ce2015-09-22 14:34:46 +0900310 WID_NIL = 0xffff,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900311
Leo Kimd4cebe42015-09-22 14:34:45 +0900312 /*
313 * BSS Type
314 * -----------------------------------------------------------
315 * Configuration : Infrastructure Independent Access Point
316 * Values to set : 0 1 2
317 * -----------------------------------------------------------
318 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900319 WID_BSS_TYPE = 0x0000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900320
Leo Kimd4cebe42015-09-22 14:34:45 +0900321 /*
322 * Transmit Rate
323 * -----------------------------------------------------------
324 * Configuration : 1 2 5.5 11 6 9 12 18 24 36 48 54
325 * Values to set : 1 2 5 11 6 9 12 18 24 36 48 54
326 * -----------------------------------------------------------
327 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900328 WID_CURRENT_TX_RATE = 0x0001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900329
Leo Kimd4cebe42015-09-22 14:34:45 +0900330 /*
331 * Channel
332 * -----------------------------------------------------------
333 * Configuration(g) : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
334 * Values to set : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
335 * -----------------------------------------------------------
336 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900337 WID_CURRENT_CHANNEL = 0x0002,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900338
Leo Kimd4cebe42015-09-22 14:34:45 +0900339 /*
340 * Preamble
341 * -----------------------------------------------------------
342 * Configuration : short long Auto
343 * Values to set : 0 1 2
344 * -----------------------------------------------------------
345 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900346 WID_PREAMBLE = 0x0003,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900347
Leo Kimd4cebe42015-09-22 14:34:45 +0900348 /*
349 * 11g operating mode (ignored if 11g not present)
350 * -----------------------------------------------------------
351 * Configuration : HighPerf Compat(RSet #1) Compat(RSet #2)
352 * Values to set : 1 2 3
353 * -----------------------------------------------------------
354 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900355 WID_11G_OPERATING_MODE = 0x0004,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900356
Leo Kimd4cebe42015-09-22 14:34:45 +0900357 /*
358 * Mac status (response only)
359 * -----------------------------------------------------------
360 * Configuration : disconnect connect
361 * Values to get : 0 1
362 * -----------------------------------------------------------
363 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900364 WID_STATUS = 0x0005,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900365
Leo Kimd4cebe42015-09-22 14:34:45 +0900366 /*
367 * Scan type
368 * -----------------------------------------------------------
369 * Configuration : Passive Scanning Active Scanning
370 * Values to set : 0 1
371 * -----------------------------------------------------------
372 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900373 WID_SCAN_TYPE = 0x0007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900374
Leo Kimd4cebe42015-09-22 14:34:45 +0900375 /*
376 * Key Id (WEP default key Id)
377 * -----------------------------------------------------------
378 * Configuration : Any value between 0 to 3
379 * Values to set : Same value. Default is 0
380 * -----------------------------------------------------------
381 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900382 WID_KEY_ID = 0x0009,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900383
Leo Kimd4cebe42015-09-22 14:34:45 +0900384 /*
385 * QoS Enable
386 * -----------------------------------------------------------
387 * Configuration : QoS Disable WMM Enable
388 * Values to set : 0 1
389 * -----------------------------------------------------------
390 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900391 WID_QOS_ENABLE = 0x000A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900392
Leo Kimd4cebe42015-09-22 14:34:45 +0900393 /*
394 * Power Management
395 * -----------------------------------------------------------
396 * Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE
397 * Values to set : 0 1 2
398 * -----------------------------------------------------------
399 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900400 WID_POWER_MANAGEMENT = 0x000B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900401
Leo Kimd4cebe42015-09-22 14:34:45 +0900402 /*
403 * WEP/802 11I Configuration
404 * -----------------------------------------------------------
405 * Configuration:Disable WP40 WP104 WPA-AES WPA-TKIP RSN-AES RSN-TKIP
406 * Values (0x) : 00 03 07 29 49 31 51
407 * Configuration:WPA-AES+TKIP RSN-AES+TKIP
408 * Values (0x) : 69 71
409 * -----------------------------------------------------------
410 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900411 WID_11I_MODE = 0x000C,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900412
Leo Kimd4cebe42015-09-22 14:34:45 +0900413 /*
414 * WEP Configuration: Used in BSS STA mode only when WEP is enabled
415 * -----------------------------------------------------------
416 * Configuration : Open System Shared Key Any Type | 802.1x Auth
417 * Values (0x) : 01 02 03 | BIT2
418 * -----------------------------------------------------------
419 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900420 WID_AUTH_TYPE = 0x000D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900421
Leo Kimd4cebe42015-09-22 14:34:45 +0900422 /*
423 * Site Survey Type
424 * -----------------------------------------------------------
425 * Configuration : Values to set
426 * Survey 1 Channel : 0
427 * survey all Channels : 1
428 * Disable Site Survey : 2
429 * -----------------------------------------------------------
430 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900431 WID_SITE_SURVEY = 0x000E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900432
Leo Kimd4cebe42015-09-22 14:34:45 +0900433 /*
434 * Listen Interval
435 * -----------------------------------------------------------
436 * Configuration : Any value between 1 to 255
437 * Values to set : Same value. Default is 3
438 * -----------------------------------------------------------
439 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900440 WID_LISTEN_INTERVAL = 0x000F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900441
Leo Kimd4cebe42015-09-22 14:34:45 +0900442 /*
443 * DTIM Period
444 * -----------------------------------------------------------
445 * Configuration : Any value between 1 to 255
446 * Values to set : Same value. Default is 3
447 * -----------------------------------------------------------
448 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900449 WID_DTIM_PERIOD = 0x0010,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900450
Leo Kimd4cebe42015-09-22 14:34:45 +0900451 /*
452 * ACK Policy
453 * -----------------------------------------------------------
454 * Configuration : Normal Ack No Ack
455 * Values to set : 0 1
456 * -----------------------------------------------------------
457 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900458 WID_ACK_POLICY = 0x0011,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900459
Leo Kimd4cebe42015-09-22 14:34:45 +0900460 /*
461 * Reset MAC (Set only)
462 * -----------------------------------------------------------
463 * Configuration : Don't Reset Reset No Request
464 * Values to set : 0 1 2
465 * -----------------------------------------------------------
466 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900467 WID_RESET = 0x0012,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900468
Leo Kimd4cebe42015-09-22 14:34:45 +0900469 /*
470 * Broadcast SSID Option: Setting this will adhere to "" SSID element
471 * -----------------------------------------------------------
472 * Configuration : Enable Disable
473 * Values to set : 1 0
474 * -----------------------------------------------------------
475 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900476 WID_BCAST_SSID = 0x0015,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900477
Leo Kimd4cebe42015-09-22 14:34:45 +0900478 /*
479 * Disconnect (Station)
480 * -----------------------------------------------------------
481 * Configuration : Association ID
482 * Values to set : Association ID
483 * -----------------------------------------------------------
484 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900485 WID_DISCONNECT = 0x0016,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900486
Leo Kimd4cebe42015-09-22 14:34:45 +0900487 /*
488 * 11a Tx Power Level
489 * -----------------------------------------------------------
490 * Configuration : Sets TX Power (Higher the value greater the power)
491 * Values to set : Any value between 0 and 63 (inclusive Default 48)
492 * -----------------------------------------------------------
493 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900494 WID_TX_POWER_LEVEL_11A = 0x0018,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900495
Leo Kimd4cebe42015-09-22 14:34:45 +0900496 /*
497 * Group Key Update Policy Selection
498 * -----------------------------------------------------------
499 * Configuration : Disabled timeBased packetBased timePacketBased
500 * Values to set : 1 2 3 4
501 * -----------------------------------------------------------
502 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900503 WID_REKEY_POLICY = 0x0019,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900504
Leo Kimd4cebe42015-09-22 14:34:45 +0900505 /*
506 * Allow Short Slot
507 * -----------------------------------------------------------
508 * Configuration : Disallow Short Slot Allow Short Slot
509 * (Enable Only Long Slot) (Enable Short Slot if applicable)
510 * Values to set : 0 1
511 * -----------------------------------------------------------
512 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900513 WID_SHORT_SLOT_ALLOWED = 0x001A,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900514
Leo Kim531c7ce2015-09-22 14:34:46 +0900515 WID_PHY_ACTIVE_REG = 0x001B,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900516
Leo Kimd4cebe42015-09-22 14:34:45 +0900517 /*
518 * 11b Tx Power Level
519 * -----------------------------------------------------------
520 * Configuration : Sets TX Power (Higher the value greater the power)
521 * Values to set : Any value between 0 and 63 (inclusive Default 48)
522 * -----------------------------------------------------------
523 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900524 WID_TX_POWER_LEVEL_11B = 0x001D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900525
Leo Kimd4cebe42015-09-22 14:34:45 +0900526 /*
527 * Scan Request
528 * -----------------------------------------------------------
529 * Configuration : Request default scan
530 * Values to set : 0
531 * -----------------------------------------------------------
532 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900533 WID_START_SCAN_REQ = 0x001E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900534
Leo Kimd4cebe42015-09-22 14:34:45 +0900535 /*
536 * Rssi (get only)
537 * -----------------------------------------------------------
538 * Configuration :
539 * Values to get : Rssi value
540 * -----------------------------------------------------------
541 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900542 WID_RSSI = 0x001F,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900543
Leo Kimd4cebe42015-09-22 14:34:45 +0900544 /*
545 * Join Request
546 * -----------------------------------------------------------
547 * Configuration : Request to join
548 * Values to set : index of scan result
549 * -----------------------------------------------------------
550 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900551 WID_JOIN_REQ = 0x0020,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900552
Leo Kimd4cebe42015-09-22 14:34:45 +0900553 WID_LINKSPEED = 0x0026,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900554
Leo Kimd4cebe42015-09-22 14:34:45 +0900555 /*
556 * Enable User Control of TX Power
557 * -----------------------------------------------------------
558 * Configuration : Disable Enable
559 * Values to set : 0 1
560 * -----------------------------------------------------------
561 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900562 WID_USER_CONTROL_ON_TX_POWER = 0x0027,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900563
Leo Kim531c7ce2015-09-22 14:34:46 +0900564 WID_MEMORY_ACCESS_8BIT = 0x0029,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900565
Leo Kimd4cebe42015-09-22 14:34:45 +0900566 /*
567 * Enable Auto RX Sensitivity feature
568 * -----------------------------------------------------------
569 * Configuration : Disable Enable
570 * Values to set : 0 1
571 * -----------------------------------------------------------
572 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900573 WID_AUTO_RX_SENSITIVITY = 0x0032,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900574
Leo Kimd4cebe42015-09-22 14:34:45 +0900575 /*
576 * Receive Buffer Based Ack
577 * -----------------------------------------------------------
578 * Configuration : Disable Enable
579 * Values to set : 0 1
580 * -----------------------------------------------------------
581 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900582 WID_DATAFLOW_CONTROL = 0x0033,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900583
Leo Kimd4cebe42015-09-22 14:34:45 +0900584 /*
585 * Scan Filter
586 * -----------------------------------------------------------
587 * Configuration : Class No filter AP only Station Only
588 * Values to set : 0 1 2
589 * Configuration : Priority High Rssi Low Rssi Detect
590 * Values to set : 0 0x4 0x0
591 * Configuration : Channel filter off filter on
592 * Values to set : 0 0x10
593 * -----------------------------------------------------------
594 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900595 WID_SCAN_FILTER = 0x0036,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900596
Leo Kimd4cebe42015-09-22 14:34:45 +0900597 /*
598 * Link Loss Threshold (measure in the beacon period)
599 * -----------------------------------------------------------
600 * Configuration : Any value between 10 and 254(Set to 255 disable)
601 * Values to set : Same value. Default is 10
602 * -----------------------------------------------------------
603 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900604 WID_LINK_LOSS_THRESHOLD = 0x0037,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900605
Leo Kim531c7ce2015-09-22 14:34:46 +0900606 WID_ABORT_RUNNING_SCAN = 0x003E,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900607
608 /* NMAC Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900609 WID_WPS_START = 0x0043,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900610
Leo Kimd4cebe42015-09-22 14:34:45 +0900611 /*
612 * Protection mode for MAC
613 * -----------------------------------------------------------
614 * Configuration : Auto No protection ERP HT GF
615 * Values to set : 0 1 2 3 4
616 * -----------------------------------------------------------
617 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900618 WID_11N_PROT_MECH = 0x0080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900619
Leo Kimd4cebe42015-09-22 14:34:45 +0900620 /*
621 * ERP Protection type for MAC
622 * -----------------------------------------------------------
623 * Configuration : Self-CTS RTS-CTS
624 * Values to set : 0 1
625 * -----------------------------------------------------------
626 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900627 WID_11N_ERP_PROT_TYPE = 0x0081,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900628
Leo Kimd4cebe42015-09-22 14:34:45 +0900629 /*
630 * HT Option Enable
631 * -----------------------------------------------------------
632 * Configuration : HT Enable HT Disable
633 * Values to set : 1 0
634 * -----------------------------------------------------------
635 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900636 WID_11N_ENABLE = 0x0082,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900637
Leo Kimd4cebe42015-09-22 14:34:45 +0900638 /*
639 * 11n Operating mode (Note that 11g operating mode will also be
640 * used in addition to this, if this is set to HT Mixed mode)
641 * -----------------------------------------------------------
642 * Configuration : HT Mixed HT Only-20MHz HT Only-20/40MHz
643 * Values to set : 1 2 3
644 * -----------------------------------------------------------
645 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900646 WID_11N_OPERATING_MODE = 0x0083,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900647
Leo Kimd4cebe42015-09-22 14:34:45 +0900648 /*
649 * 11n OBSS non-HT STA Detection flag
650 * -----------------------------------------------------------
651 * Configuration : Do not detect
652 * Values to set : 0
653 * Configuration : Detect, do not protect or report
654 * Values to set : 1
655 * Configuration : Detect, protect and do not report
656 * Values to set : 2
657 * Configuration : Detect, protect and report to other BSS
658 * Values to set : 3
659 * -----------------------------------------------------------
660 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900661 WID_11N_OBSS_NONHT_DETECTION = 0x0084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900662
Leo Kimd4cebe42015-09-22 14:34:45 +0900663 /*
664 * 11n HT Protection Type
665 * -----------------------------------------------------------
666 * Configuration : RTS-CTS First Frame Exchange at non-HT-rate
667 * Values to set : 0 1
668 * Configuration : LSIG TXOP First Frame Exchange in Mixed Fmt
669 * Values to set : 2 3
670 * -----------------------------------------------------------
671 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900672 WID_11N_HT_PROT_TYPE = 0x0085,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900673
Leo Kimd4cebe42015-09-22 14:34:45 +0900674 /*
675 * 11n RIFS Protection Enable Flag
676 * -----------------------------------------------------------
677 * Configuration : Disable Enable
678 * Values to set : 0 1
679 * -----------------------------------------------------------
680 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900681 WID_11N_RIFS_PROT_ENABLE = 0x0086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900682
Leo Kimd4cebe42015-09-22 14:34:45 +0900683 /*
684 * SMPS Mode
685 * -----------------------------------------------------------
686 * Configuration : Static Dynamic MIMO (Power Save Disabled)
687 * Values to set : 1 2 3
688 * -----------------------------------------------------------
689 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900690 WID_11N_SMPS_MODE = 0x0087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900691
Leo Kimd4cebe42015-09-22 14:34:45 +0900692 /*
693 * Current transmit MCS
694 * -----------------------------------------------------------
695 * Configuration : MCS Index for data rate
696 * Values to set : 0 to 7
697 * -----------------------------------------------------------
698 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900699 WID_11N_CURRENT_TX_MCS = 0x0088,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900700
Leo Kim531c7ce2015-09-22 14:34:46 +0900701 WID_11N_PRINT_STATS = 0x0089,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900702
Leo Kimd4cebe42015-09-22 14:34:45 +0900703 /*
704 * 11n Short GI Enable Flag
705 * -----------------------------------------------------------
706 * Configuration : Disable Enable
707 * Values to set : 0 1
708 * -----------------------------------------------------------
709 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900710 WID_11N_SHORT_GI_ENABLE = 0x008D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900711
Leo Kimd4cebe42015-09-22 14:34:45 +0900712 /*
713 * 11n RIFS Enable Flag
714 * -----------------------------------------------------------
715 * Configuration : Disable Enable
716 * Values to set : 0 1
717 * -----------------------------------------------------------
718 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900719 WID_RIFS_MODE = 0x0094,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900720
Leo Kimd4cebe42015-09-22 14:34:45 +0900721 /*
722 * TX Abort Feature
723 * -----------------------------------------------------------
724 * Configuration : Disable Self CTS Enable Self CTS
725 * Values to set : 0 1
726 * Configuration : Disable TX Abort Enable TX Abort
727 * Values to set : 2 3
728 * Configuration : Enable HW TX Abort Enable SW TX Abort
729 * Values to set : 4 5
730 * -----------------------------------------------------------
731 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900732 WID_TX_ABORT_CONFIG = 0x00A1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900733
Leo Kim531c7ce2015-09-22 14:34:46 +0900734 WID_REG_TSSI_11B_VALUE = 0x00A6,
735 WID_REG_TSSI_11G_VALUE = 0x00A7,
736 WID_REG_TSSI_11N_VALUE = 0x00A8,
737 WID_TX_CALIBRATION = 0x00A9,
738 WID_DSCR_TSSI_11B_VALUE = 0x00AA,
739 WID_DSCR_TSSI_11G_VALUE = 0x00AB,
740 WID_DSCR_TSSI_11N_VALUE = 0x00AC,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900741
Leo Kimd4cebe42015-09-22 14:34:45 +0900742 /*
743 * Immediate Block-Ack Support
744 * -----------------------------------------------------------
745 * Configuration : Disable Enable
746 * Values to set : 0 1
747 * -----------------------------------------------------------
748 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900749 WID_11N_IMMEDIATE_BA_ENABLED = 0x00AF,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900750
Leo Kimd4cebe42015-09-22 14:34:45 +0900751 /*
752 * TXOP Disable Flag
753 * -----------------------------------------------------------
754 * Configuration : Disable Enable
755 * Values to set : 1 0
756 * -----------------------------------------------------------
757 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900758 WID_11N_TXOP_PROT_DISABLE = 0x00B0,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900759
Leo Kim531c7ce2015-09-22 14:34:46 +0900760 WID_TX_POWER_LEVEL_11N = 0x00B1,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900761
762 /* Custom Character WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900763 WID_PC_TEST_MODE = 0x00C8,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900764 /* SCAN Complete notification WID*/
765 WID_SCAN_COMPLETE = 0x00C9,
766
Leo Kim531c7ce2015-09-22 14:34:46 +0900767 WID_DEL_BEACON = 0x00CA,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900768
Leo Kim531c7ce2015-09-22 14:34:46 +0900769 WID_LOGTerminal_Switch = 0x00CD,
Glen Lee70418792016-02-04 18:15:27 +0900770 WID_TX_POWER = 0x00CE,
Leo Kimd4cebe42015-09-22 14:34:45 +0900771 /* EMAC Short WID list */
772 /* RTS Threshold */
773 /*
774 * -----------------------------------------------------------
775 * Configuration : Any value between 256 to 2347
776 * Values to set : Same value. Default is 2347
777 * -----------------------------------------------------------
778 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900779 WID_RTS_THRESHOLD = 0x1000,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900780
Leo Kimd4cebe42015-09-22 14:34:45 +0900781 /*
782 * Fragmentation Threshold
783 * -----------------------------------------------------------
784 * Configuration : Any value between 256 to 2346
785 * Values to set : Same value. Default is 2346
786 * -----------------------------------------------------------
787 */
Leo Kim531c7ce2015-09-22 14:34:46 +0900788 WID_FRAG_THRESHOLD = 0x1001,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900789
Leo Kim531c7ce2015-09-22 14:34:46 +0900790 WID_SHORT_RETRY_LIMIT = 0x1002,
791 WID_LONG_RETRY_LIMIT = 0x1003,
792 WID_BEACON_INTERVAL = 0x1006,
793 WID_MEMORY_ACCESS_16BIT = 0x1008,
794 WID_RX_SENSE = 0x100B,
795 WID_ACTIVE_SCAN_TIME = 0x100C,
796 WID_PASSIVE_SCAN_TIME = 0x100D,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900797
Leo Kim531c7ce2015-09-22 14:34:46 +0900798 WID_SITE_SURVEY_SCAN_TIME = 0x100E,
799 WID_JOIN_START_TIMEOUT = 0x100F,
800 WID_AUTH_TIMEOUT = 0x1010,
801 WID_ASOC_TIMEOUT = 0x1011,
802 WID_11I_PROTOCOL_TIMEOUT = 0x1012,
803 WID_EAPOL_RESPONSE_TIMEOUT = 0x1013,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900804
805 /* NMAC Short WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900806 WID_11N_SIG_QUAL_VAL = 0x1085,
807 WID_CCA_THRESHOLD = 0x1087,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900808
809 /* Custom Short WID list */
810
811 /* EMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900812 WID_FAILED_COUNT = 0x2000,
813 WID_RETRY_COUNT = 0x2001,
814 WID_MULTIPLE_RETRY_COUNT = 0x2002,
815 WID_FRAME_DUPLICATE_COUNT = 0x2003,
816 WID_ACK_FAILURE_COUNT = 0x2004,
817 WID_RECEIVED_FRAGMENT_COUNT = 0x2005,
818 WID_MCAST_RECEIVED_FRAME_COUNT = 0x2006,
819 WID_FCS_ERROR_COUNT = 0x2007,
820 WID_SUCCESS_FRAME_COUNT = 0x2008,
821 WID_HUT_TX_COUNT = 0x200A,
822 WID_TX_FRAGMENT_COUNT = 0x200B,
823 WID_TX_MULTICAST_FRAME_COUNT = 0x200C,
824 WID_RTS_SUCCESS_COUNT = 0x200D,
825 WID_RTS_FAILURE_COUNT = 0x200E,
826 WID_WEP_UNDECRYPTABLE_COUNT = 0x200F,
827 WID_REKEY_PERIOD = 0x2010,
828 WID_REKEY_PACKET_COUNT = 0x2011,
829 WID_1X_SERV_ADDR = 0x2012,
830 WID_STACK_IP_ADDR = 0x2013,
831 WID_STACK_NETMASK_ADDR = 0x2014,
832 WID_HW_RX_COUNT = 0x2015,
833 WID_MEMORY_ADDRESS = 0x201E,
834 WID_MEMORY_ACCESS_32BIT = 0x201F,
835 WID_RF_REG_VAL = 0x2021,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900836
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900837 /* NMAC Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900838 WID_11N_PHY_ACTIVE_REG_VAL = 0x2080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900839
840 /* Custom Integer WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900841 WID_GET_INACTIVE_TIME = 0x2084,
Leo Kim531c7ce2015-09-22 14:34:46 +0900842 WID_SET_OPERATION_MODE = 0X2086,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900843 /* EMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900844 WID_SSID = 0x3000,
845 WID_FIRMWARE_VERSION = 0x3001,
846 WID_OPERATIONAL_RATE_SET = 0x3002,
847 WID_BSSID = 0x3003,
848 WID_WEP_KEY_VALUE = 0x3004,
849 WID_11I_PSK = 0x3008,
850 WID_11E_P_ACTION_REQ = 0x3009,
851 WID_1X_KEY = 0x300A,
852 WID_HARDWARE_VERSION = 0x300B,
853 WID_MAC_ADDR = 0x300C,
854 WID_HUT_DEST_ADDR = 0x300D,
855 WID_PHY_VERSION = 0x300F,
856 WID_SUPP_USERNAME = 0x3010,
857 WID_SUPP_PASSWORD = 0x3011,
858 WID_SITE_SURVEY_RESULTS = 0x3012,
859 WID_RX_POWER_LEVEL = 0x3013,
860 WID_DEL_ALL_RX_BA = 0x3014,
861 WID_SET_STA_MAC_INACTIVE_TIME = 0x3017,
862 WID_ADD_WEP_KEY = 0x3019,
863 WID_REMOVE_WEP_KEY = 0x301A,
864 WID_ADD_PTK = 0x301B,
865 WID_ADD_RX_GTK = 0x301C,
866 WID_ADD_TX_GTK = 0x301D,
867 WID_REMOVE_KEY = 0x301E,
868 WID_ASSOC_REQ_INFO = 0x301F,
869 WID_ASSOC_RES_INFO = 0x3020,
870 WID_MANUFACTURER = 0x3026, /*Added for CAPI tool */
871 WID_MODEL_NAME = 0x3027, /*Added for CAPI tool */
872 WID_MODEL_NUM = 0x3028, /*Added for CAPI tool */
873 WID_DEVICE_NAME = 0x3029, /*Added for CAPI tool */
Glen Leeb3306862016-02-04 18:15:18 +0900874 WID_SET_DRV_HANDLER = 0x3030,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900875
876 /* NMAC String WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900877 WID_11N_P_ACTION_REQ = 0x3080,
878 WID_HUT_TEST_ID = 0x3081,
879 WID_PMKID_INFO = 0x3082,
880 WID_FIRMWARE_INFO = 0x3083,
881 WID_REGISTER_FRAME = 0x3084,
882 WID_DEL_ALL_STA = 0x3085,
883 WID_REMAIN_ON_CHAN = 0x3996,
884 WID_SSID_PROBE_REQ = 0x3997,
885 WID_JOIN_REQ_EXTENDED = 0x3998,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900886
Leo Kim531c7ce2015-09-22 14:34:46 +0900887 WID_IP_ADDRESS = 0x3999,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900888
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900889 /* Custom String WID list */
890
891 /* EMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900892 WID_UAPSD_CONFIG = 0x4001,
893 WID_UAPSD_STATUS = 0x4002,
894 WID_WMM_AP_AC_PARAMS = 0x4003,
895 WID_WMM_STA_AC_PARAMS = 0x4004,
896 WID_NETWORK_INFO = 0x4005,
897 WID_STA_JOIN_INFO = 0x4006,
898 WID_CONNECTED_STA_LIST = 0x4007,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900899
900 /* NMAC Binary WID list */
Leo Kim531c7ce2015-09-22 14:34:46 +0900901 WID_11N_AUTORATE_TABLE = 0x4080,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900902
Leo Kim531c7ce2015-09-22 14:34:46 +0900903 WID_SCAN_CHANNEL_LIST = 0x4084,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900904
Leo Kim531c7ce2015-09-22 14:34:46 +0900905 WID_INFO_ELEMENT_PROBE = 0x4085,
906 WID_INFO_ELEMENT_ASSOCIATE = 0x4086,
907 WID_ADD_STA = 0X4087,
908 WID_REMOVE_STA = 0X4088,
909 WID_EDIT_STA = 0X4089,
910 WID_ADD_BEACON = 0x408a,
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900911
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900912 WID_SETUP_MULTICAST_FILTER = 0x408b,
913
914 /* Miscellaneous WIDs */
Leo Kim531c7ce2015-09-22 14:34:46 +0900915 WID_ALL = 0x7FFE,
916 WID_MAX = 0xFFFF
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900917} WID_T;
918
Glen Lee00215dd2015-11-18 15:11:25 +0900919struct wilc;
Arnd Bergmann4bd7baf2015-11-16 15:04:59 +0100920int wilc_wlan_init(struct net_device *dev);
Chris Park65c3f002016-02-04 18:15:54 +0900921u32 wilc_get_chipid(struct wilc *wilc, bool update);
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900922
Johnny Kimc5c77ba2015-05-11 14:30:56 +0900923#endif