Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 1 | /* ///////////////////////////////////////////////////////////////////////// */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 2 | /* */ |
| 3 | /* Copyright (c) Atmel Corporation. All rights reserved. */ |
| 4 | /* */ |
| 5 | /* Module Name: wilc_wlan_if.h */ |
| 6 | /* */ |
| 7 | /* */ |
| 8 | /* ///////////////////////////////////////////////////////////////////////// */ |
| 9 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 10 | #ifndef WILC_WLAN_IF_H |
| 11 | #define WILC_WLAN_IF_H |
| 12 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 13 | /* #define MEMORY_STATIC */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 14 | /* #define USE_OLD_SPI_SW */ |
| 15 | |
Chaehyun Lim | e215a87 | 2015-09-30 08:15:41 +0900 | [diff] [blame^] | 16 | #include <linux/semaphore.h> |
Greg Kroah-Hartman | 36a24b4 | 2015-08-14 19:26:20 -0700 | [diff] [blame] | 17 | #include "wilc_oswrapper.h" |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 18 | #include "linux_wlan_common.h" |
| 19 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 20 | /******************************************** |
| 21 | * |
| 22 | * Debug Flags |
| 23 | * |
| 24 | ********************************************/ |
| 25 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 26 | #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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 31 | |
| 32 | /******************************************** |
| 33 | * |
| 34 | * Host Interface Defines |
| 35 | * |
| 36 | ********************************************/ |
| 37 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 38 | #define HIF_SDIO (0) |
| 39 | #define HIF_SPI BIT(0) |
| 40 | #define HIF_SDIO_GPIO_IRQ BIT(2) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 41 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 42 | /******************************************** |
| 43 | * |
| 44 | * Tx/Rx Buffer Size Defines |
| 45 | * |
| 46 | ********************************************/ |
| 47 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 48 | #define CE_TX_BUFFER_SIZE (64 * 1024) |
| 49 | #define CE_RX_BUFFER_SIZE (384 * 1024) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 50 | |
| 51 | /******************************************** |
| 52 | * |
| 53 | * Wlan Interface Defines |
| 54 | * |
| 55 | ********************************************/ |
| 56 | |
| 57 | typedef struct { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 58 | u32 read_write: 1; |
| 59 | u32 function: 3; |
| 60 | u32 raw: 1; |
| 61 | u32 address: 17; |
| 62 | u32 data: 8; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 63 | } sdio_cmd52_t; |
| 64 | |
| 65 | typedef struct { |
| 66 | /* struct { */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 67 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 73 | /* } bit; */ |
Chaehyun Lim | 51e825f | 2015-09-15 14:06:14 +0900 | [diff] [blame] | 74 | u8 *buffer; |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 75 | u32 block_size; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 76 | } sdio_cmd53_t; |
| 77 | |
| 78 | typedef struct { |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 79 | 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 Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 91 | int (*spi_tx)(u8 *, u32); |
| 92 | int (*spi_rx)(u8 *, u32); |
| 93 | int (*spi_trx)(u8 *, u8 *, u32); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 94 | } spi; |
| 95 | } u; |
| 96 | } wilc_wlan_io_func_t; |
| 97 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 98 | #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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 102 | |
| 103 | #define WILC_MAC_INDICATE_SCAN 0x2 |
| 104 | |
| 105 | typedef struct { |
| 106 | void *os_private; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 107 | } wilc_wlan_os_context_t; |
| 108 | |
| 109 | typedef struct { |
| 110 | wilc_wlan_os_context_t os_context; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 111 | wilc_wlan_io_func_t io_func; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 112 | } wilc_wlan_inp_t; |
| 113 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 114 | struct tx_complete_data { |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 115 | int size; |
| 116 | void *buff; |
Chaehyun Lim | 51e825f | 2015-09-15 14:06:14 +0900 | [diff] [blame] | 117 | u8 *pBssid; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 118 | struct sk_buff *skb; |
| 119 | }; |
| 120 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 121 | typedef void (*wilc_tx_complete_func_t)(void *, int); |
| 122 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 123 | #define WILC_TX_ERR_NO_BUF (-2) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 124 | |
| 125 | typedef struct { |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 126 | int (*wlan_firmware_download)(const u8 *, u32); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 127 | int (*wlan_start)(void); |
| 128 | int (*wlan_stop)(void); |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 129 | int (*wlan_add_to_tx_que)(void *, u8 *, u32, wilc_tx_complete_func_t); |
| 130 | int (*wlan_handle_tx_que)(u32 *); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 131 | void (*wlan_handle_rx_isr)(void); |
| 132 | void (*wlan_cleanup)(void); |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 133 | 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 Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 136 | int (*wlan_add_mgmt_to_tx_que)(void *, u8 *, u32, |
| 137 | wilc_tx_complete_func_t); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 138 | } 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 149 | #define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 150 | |
| 151 | #ifdef WILC_PARSE_SCAN_IN_HOST |
| 152 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 153 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 160 | } BEACON_IE; |
| 161 | #endif |
| 162 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 163 | INFRASTRUCTURE = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 164 | INDEPENDENT, |
| 165 | AP, |
| 166 | } BSSTYPE_T; |
| 167 | |
| 168 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 169 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 182 | } TX_RATE_T; |
| 183 | |
| 184 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 185 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 189 | } G_OPERATING_MODE_T; |
| 190 | |
| 191 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 192 | G_SHORT_PREAMBLE = 0, /* Short Preamble */ |
| 193 | G_LONG_PREAMBLE = 1, /* Long Preamble */ |
| 194 | G_AUTO_PREAMBLE = 2, /* Auto Preamble Selection */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 195 | } G_PREAMBLE_T; |
| 196 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 197 | #define MAC_CONNECTED 1 |
| 198 | #define MAC_DISCONNECTED 0 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 199 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 200 | #define SCAN_DONE TRUE |
| 201 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 202 | PASSIVE_SCAN = 0, |
| 203 | ACTIVE_SCAN = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 204 | } SCANTYPE_T; |
| 205 | |
| 206 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 207 | NO_POWERSAVE = 0, |
| 208 | MIN_FAST_PS = 1, |
| 209 | MAX_FAST_PS = 2, |
| 210 | MIN_PSPOLL_PS = 3, |
| 211 | MAX_PSPOLL_PS = 4 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 212 | } USER_PS_MODE_T; |
| 213 | |
| 214 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 215 | CHIP_WAKEDUP = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 216 | CHIP_SLEEPING_AUTO = 1, |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 217 | CHIP_SLEEPING_MANUAL = 2 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 218 | } CHIP_PS_STATE_T; |
| 219 | |
| 220 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 221 | ACQUIRE_ONLY = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 222 | ACQUIRE_AND_WAKEUP = 1, |
| 223 | } BUS_ACQUIRE_T; |
| 224 | |
| 225 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 226 | RELEASE_ONLY = 0, |
| 227 | RELEASE_ALLOW_SLEEP = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 228 | } BUS_RELEASE_T; |
| 229 | |
| 230 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 231 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 240 | } SECURITY_T; |
| 241 | |
| 242 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 243 | OPEN_SYSTEM = 1, |
| 244 | SHARED_KEY = 2, |
| 245 | ANY = 3, |
| 246 | IEEE8021 = 5 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 247 | } AUTHTYPE_T; |
| 248 | |
| 249 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 250 | SITE_SURVEY_1CH = 0, |
| 251 | SITE_SURVEY_ALL_CH = 1, |
| 252 | SITE_SURVEY_OFF = 2 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 253 | } SITE_SURVEY_T; |
| 254 | |
| 255 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 256 | NORMAL_ACK = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 257 | NO_ACK, |
| 258 | } ACK_POLICY_T; |
| 259 | |
| 260 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 261 | DONT_RESET = 0, |
| 262 | DO_RESET = 1, |
| 263 | NO_REQUEST = 2, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 264 | } RESET_REQ_T; |
| 265 | |
| 266 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 267 | REKEY_DISABLE = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 268 | REKEY_TIME_BASE, |
| 269 | REKEY_PKT_BASE, |
| 270 | REKEY_TIME_PKT_BASE |
| 271 | } RSNA_REKEY_POLICY_T; |
| 272 | |
| 273 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 274 | FILTER_NO = 0x00, |
| 275 | FILTER_AP_ONLY = 0x01, |
| 276 | FILTER_STA_ONLY = 0x02 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 277 | } SCAN_CLASS_FITLER_T; |
| 278 | |
| 279 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 280 | PRI_HIGH_RSSI = 0x00, |
| 281 | PRI_LOW_RSSI = 0x04, |
| 282 | PRI_DETECT = 0x08 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 283 | } SCAN_PRI_T; |
| 284 | |
| 285 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 286 | CH_FILTER_OFF = 0x00, |
| 287 | CH_FILTER_ON = 0x10 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 288 | } CH_FILTER_T; |
| 289 | |
| 290 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 291 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 296 | } N_PROTECTION_MODE_T; |
| 297 | |
| 298 | typedef enum { |
| 299 | G_SELF_CTS_PROT, |
| 300 | G_RTS_CTS_PROT, |
| 301 | } G_PROTECTION_MODE_T; |
| 302 | |
| 303 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 304 | HT_MIXED_MODE = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 305 | HT_ONLY_20MHZ_MODE, |
| 306 | HT_ONLY_20_40MHZ_MODE, |
| 307 | } N_OPERATING_MODE_T; |
| 308 | |
| 309 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 310 | NO_DETECT = 0, |
| 311 | DETECT_ONLY = 1, |
| 312 | DETECT_PROTECT = 2, |
| 313 | DETECT_PROTECT_REPORT = 3, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 314 | } N_OBSS_DETECTION_T; |
| 315 | |
| 316 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 317 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 321 | } N_PROTECTION_TYPE_T; |
| 322 | |
| 323 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 324 | STATIC_MODE = 1, |
| 325 | DYNAMIC_MODE = 2, |
| 326 | MIMO_MODE = 3, /* power save disable */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 327 | } N_SMPS_MODE_T; |
| 328 | |
| 329 | typedef 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 | |
| 338 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 339 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 349 | |
| 350 | } WID_TYPE_T, tenuWIDtype; |
| 351 | |
| 352 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 353 | WID_NIL = 0xffff, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 354 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 355 | /* |
| 356 | * BSS Type |
| 357 | * ----------------------------------------------------------- |
| 358 | * Configuration : Infrastructure Independent Access Point |
| 359 | * Values to set : 0 1 2 |
| 360 | * ----------------------------------------------------------- |
| 361 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 362 | WID_BSS_TYPE = 0x0000, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 363 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 364 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 371 | WID_CURRENT_TX_RATE = 0x0001, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 372 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 373 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 380 | WID_CURRENT_CHANNEL = 0x0002, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 381 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 382 | /* |
| 383 | * Preamble |
| 384 | * ----------------------------------------------------------- |
| 385 | * Configuration : short long Auto |
| 386 | * Values to set : 0 1 2 |
| 387 | * ----------------------------------------------------------- |
| 388 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 389 | WID_PREAMBLE = 0x0003, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 390 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 391 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 398 | WID_11G_OPERATING_MODE = 0x0004, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 399 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 400 | /* |
| 401 | * Mac status (response only) |
| 402 | * ----------------------------------------------------------- |
| 403 | * Configuration : disconnect connect |
| 404 | * Values to get : 0 1 |
| 405 | * ----------------------------------------------------------- |
| 406 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 407 | WID_STATUS = 0x0005, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 408 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 409 | /* |
| 410 | * Scan type |
| 411 | * ----------------------------------------------------------- |
| 412 | * Configuration : Passive Scanning Active Scanning |
| 413 | * Values to set : 0 1 |
| 414 | * ----------------------------------------------------------- |
| 415 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 416 | WID_SCAN_TYPE = 0x0007, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 417 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 418 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 425 | WID_KEY_ID = 0x0009, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 426 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 427 | /* |
| 428 | * QoS Enable |
| 429 | * ----------------------------------------------------------- |
| 430 | * Configuration : QoS Disable WMM Enable |
| 431 | * Values to set : 0 1 |
| 432 | * ----------------------------------------------------------- |
| 433 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 434 | WID_QOS_ENABLE = 0x000A, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 435 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 436 | /* |
| 437 | * Power Management |
| 438 | * ----------------------------------------------------------- |
| 439 | * Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE |
| 440 | * Values to set : 0 1 2 |
| 441 | * ----------------------------------------------------------- |
| 442 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 443 | WID_POWER_MANAGEMENT = 0x000B, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 444 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 445 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 454 | WID_11I_MODE = 0x000C, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 455 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 456 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 463 | WID_AUTH_TYPE = 0x000D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 464 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 465 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 474 | WID_SITE_SURVEY = 0x000E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 475 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 476 | /* |
| 477 | * Listen Interval |
| 478 | * ----------------------------------------------------------- |
| 479 | * Configuration : Any value between 1 to 255 |
| 480 | * Values to set : Same value. Default is 3 |
| 481 | * ----------------------------------------------------------- |
| 482 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 483 | WID_LISTEN_INTERVAL = 0x000F, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 484 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 485 | /* |
| 486 | * DTIM Period |
| 487 | * ----------------------------------------------------------- |
| 488 | * Configuration : Any value between 1 to 255 |
| 489 | * Values to set : Same value. Default is 3 |
| 490 | * ----------------------------------------------------------- |
| 491 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 492 | WID_DTIM_PERIOD = 0x0010, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 493 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 494 | /* |
| 495 | * ACK Policy |
| 496 | * ----------------------------------------------------------- |
| 497 | * Configuration : Normal Ack No Ack |
| 498 | * Values to set : 0 1 |
| 499 | * ----------------------------------------------------------- |
| 500 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 501 | WID_ACK_POLICY = 0x0011, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 502 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 503 | /* |
| 504 | * Reset MAC (Set only) |
| 505 | * ----------------------------------------------------------- |
| 506 | * Configuration : Don't Reset Reset No Request |
| 507 | * Values to set : 0 1 2 |
| 508 | * ----------------------------------------------------------- |
| 509 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 510 | WID_RESET = 0x0012, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 511 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 512 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 519 | WID_BCAST_SSID = 0x0015, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 520 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 521 | /* |
| 522 | * Disconnect (Station) |
| 523 | * ----------------------------------------------------------- |
| 524 | * Configuration : Association ID |
| 525 | * Values to set : Association ID |
| 526 | * ----------------------------------------------------------- |
| 527 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 528 | WID_DISCONNECT = 0x0016, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 529 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 530 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 537 | WID_TX_POWER_LEVEL_11A = 0x0018, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 538 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 539 | /* |
| 540 | * Group Key Update Policy Selection |
| 541 | * ----------------------------------------------------------- |
| 542 | * Configuration : Disabled timeBased packetBased timePacketBased |
| 543 | * Values to set : 1 2 3 4 |
| 544 | * ----------------------------------------------------------- |
| 545 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 546 | WID_REKEY_POLICY = 0x0019, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 547 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 548 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 556 | WID_SHORT_SLOT_ALLOWED = 0x001A, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 557 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 558 | WID_PHY_ACTIVE_REG = 0x001B, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 559 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 560 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 567 | WID_TX_POWER_LEVEL_11B = 0x001D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 568 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 569 | /* |
| 570 | * Scan Request |
| 571 | * ----------------------------------------------------------- |
| 572 | * Configuration : Request default scan |
| 573 | * Values to set : 0 |
| 574 | * ----------------------------------------------------------- |
| 575 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 576 | WID_START_SCAN_REQ = 0x001E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 577 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 578 | /* |
| 579 | * Rssi (get only) |
| 580 | * ----------------------------------------------------------- |
| 581 | * Configuration : |
| 582 | * Values to get : Rssi value |
| 583 | * ----------------------------------------------------------- |
| 584 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 585 | WID_RSSI = 0x001F, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 586 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 587 | /* |
| 588 | * Join Request |
| 589 | * ----------------------------------------------------------- |
| 590 | * Configuration : Request to join |
| 591 | * Values to set : index of scan result |
| 592 | * ----------------------------------------------------------- |
| 593 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 594 | WID_JOIN_REQ = 0x0020, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 595 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 596 | WID_LINKSPEED = 0x0026, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 597 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 598 | /* |
| 599 | * Enable User Control of TX Power |
| 600 | * ----------------------------------------------------------- |
| 601 | * Configuration : Disable Enable |
| 602 | * Values to set : 0 1 |
| 603 | * ----------------------------------------------------------- |
| 604 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 605 | WID_USER_CONTROL_ON_TX_POWER = 0x0027, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 606 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 607 | WID_MEMORY_ACCESS_8BIT = 0x0029, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 608 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 609 | /* |
| 610 | * Enable Auto RX Sensitivity feature |
| 611 | * ----------------------------------------------------------- |
| 612 | * Configuration : Disable Enable |
| 613 | * Values to set : 0 1 |
| 614 | * ----------------------------------------------------------- |
| 615 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 616 | WID_AUTO_RX_SENSITIVITY = 0x0032, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 617 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 618 | /* |
| 619 | * Receive Buffer Based Ack |
| 620 | * ----------------------------------------------------------- |
| 621 | * Configuration : Disable Enable |
| 622 | * Values to set : 0 1 |
| 623 | * ----------------------------------------------------------- |
| 624 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 625 | WID_DATAFLOW_CONTROL = 0x0033, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 626 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 627 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 638 | WID_SCAN_FILTER = 0x0036, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 639 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 640 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 647 | WID_LINK_LOSS_THRESHOLD = 0x0037, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 648 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 649 | WID_ABORT_RUNNING_SCAN = 0x003E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 650 | |
| 651 | /* NMAC Character WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 652 | WID_WPS_START = 0x0043, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 653 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 654 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 661 | WID_11N_PROT_MECH = 0x0080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 662 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 663 | /* |
| 664 | * ERP Protection type for MAC |
| 665 | * ----------------------------------------------------------- |
| 666 | * Configuration : Self-CTS RTS-CTS |
| 667 | * Values to set : 0 1 |
| 668 | * ----------------------------------------------------------- |
| 669 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 670 | WID_11N_ERP_PROT_TYPE = 0x0081, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 671 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 672 | /* |
| 673 | * HT Option Enable |
| 674 | * ----------------------------------------------------------- |
| 675 | * Configuration : HT Enable HT Disable |
| 676 | * Values to set : 1 0 |
| 677 | * ----------------------------------------------------------- |
| 678 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 679 | WID_11N_ENABLE = 0x0082, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 680 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 681 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 689 | WID_11N_OPERATING_MODE = 0x0083, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 690 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 691 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 704 | WID_11N_OBSS_NONHT_DETECTION = 0x0084, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 705 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 706 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 715 | WID_11N_HT_PROT_TYPE = 0x0085, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 716 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 717 | /* |
| 718 | * 11n RIFS Protection Enable Flag |
| 719 | * ----------------------------------------------------------- |
| 720 | * Configuration : Disable Enable |
| 721 | * Values to set : 0 1 |
| 722 | * ----------------------------------------------------------- |
| 723 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 724 | WID_11N_RIFS_PROT_ENABLE = 0x0086, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 725 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 726 | /* |
| 727 | * SMPS Mode |
| 728 | * ----------------------------------------------------------- |
| 729 | * Configuration : Static Dynamic MIMO (Power Save Disabled) |
| 730 | * Values to set : 1 2 3 |
| 731 | * ----------------------------------------------------------- |
| 732 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 733 | WID_11N_SMPS_MODE = 0x0087, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 734 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 735 | /* |
| 736 | * Current transmit MCS |
| 737 | * ----------------------------------------------------------- |
| 738 | * Configuration : MCS Index for data rate |
| 739 | * Values to set : 0 to 7 |
| 740 | * ----------------------------------------------------------- |
| 741 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 742 | WID_11N_CURRENT_TX_MCS = 0x0088, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 743 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 744 | WID_11N_PRINT_STATS = 0x0089, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 745 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 746 | /* |
| 747 | * 11n Short GI Enable Flag |
| 748 | * ----------------------------------------------------------- |
| 749 | * Configuration : Disable Enable |
| 750 | * Values to set : 0 1 |
| 751 | * ----------------------------------------------------------- |
| 752 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 753 | WID_11N_SHORT_GI_ENABLE = 0x008D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 754 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 755 | /* |
| 756 | * 11n RIFS Enable Flag |
| 757 | * ----------------------------------------------------------- |
| 758 | * Configuration : Disable Enable |
| 759 | * Values to set : 0 1 |
| 760 | * ----------------------------------------------------------- |
| 761 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 762 | WID_RIFS_MODE = 0x0094, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 763 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 764 | /* |
| 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 775 | WID_TX_ABORT_CONFIG = 0x00A1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 776 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 777 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 784 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 785 | /* |
| 786 | * Immediate Block-Ack Support |
| 787 | * ----------------------------------------------------------- |
| 788 | * Configuration : Disable Enable |
| 789 | * Values to set : 0 1 |
| 790 | * ----------------------------------------------------------- |
| 791 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 792 | WID_11N_IMMEDIATE_BA_ENABLED = 0x00AF, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 793 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 794 | /* |
| 795 | * TXOP Disable Flag |
| 796 | * ----------------------------------------------------------- |
| 797 | * Configuration : Disable Enable |
| 798 | * Values to set : 1 0 |
| 799 | * ----------------------------------------------------------- |
| 800 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 801 | WID_11N_TXOP_PROT_DISABLE = 0x00B0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 802 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 803 | WID_TX_POWER_LEVEL_11N = 0x00B1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 804 | |
| 805 | /* Custom Character WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 806 | WID_PC_TEST_MODE = 0x00C8, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 807 | /* SCAN Complete notification WID*/ |
| 808 | WID_SCAN_COMPLETE = 0x00C9, |
| 809 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 810 | WID_DEL_BEACON = 0x00CA, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 811 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 812 | WID_LOGTerminal_Switch = 0x00CD, |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 813 | /* 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 Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 821 | WID_RTS_THRESHOLD = 0x1000, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 822 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 823 | /* |
| 824 | * Fragmentation Threshold |
| 825 | * ----------------------------------------------------------- |
| 826 | * Configuration : Any value between 256 to 2346 |
| 827 | * Values to set : Same value. Default is 2346 |
| 828 | * ----------------------------------------------------------- |
| 829 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 830 | WID_FRAG_THRESHOLD = 0x1001, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 831 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 832 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 839 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 840 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 846 | |
| 847 | /* NMAC Short WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 848 | WID_11N_SIG_QUAL_VAL = 0x1085, |
| 849 | WID_CCA_THRESHOLD = 0x1087, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 850 | |
| 851 | /* Custom Short WID list */ |
| 852 | |
| 853 | /* EMAC Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 854 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 878 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 879 | /* NMAC Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 880 | WID_11N_PHY_ACTIVE_REG_VAL = 0x2080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 881 | |
| 882 | /* Custom Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 883 | WID_GET_INACTIVE_TIME = 0x2084, |
| 884 | WID_SET_DRV_HANDLER = 0X2085, |
| 885 | WID_SET_OPERATION_MODE = 0X2086, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 886 | /* EMAC String WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 887 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 917 | |
| 918 | /* NMAC String WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 919 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 928 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 929 | WID_IP_ADDRESS = 0x3999, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 930 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 931 | /* Custom String WID list */ |
| 932 | |
| 933 | /* EMAC Binary WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 934 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 941 | |
| 942 | /* NMAC Binary WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 943 | WID_11N_AUTORATE_TABLE = 0x4080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 944 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 945 | WID_SCAN_CHANNEL_LIST = 0x4084, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 946 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 947 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 953 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 954 | WID_SETUP_MULTICAST_FILTER = 0x408b, |
| 955 | |
| 956 | /* Miscellaneous WIDs */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 957 | WID_ALL = 0x7FFE, |
| 958 | WID_MAX = 0xFFFF |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 959 | } WID_T; |
| 960 | |
| 961 | int wilc_wlan_init(wilc_wlan_inp_t *inp, wilc_wlan_oup_t *oup); |
| 962 | |
| 963 | void wilc_bus_set_max_speed(void); |
| 964 | void wilc_bus_set_default_speed(void); |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 965 | u32 wilc_get_chipid(u8 update); |
Chaehyun Lim | dd32257 | 2015-09-22 22:47:43 +0900 | [diff] [blame] | 966 | extern wilc_wlan_oup_t *gpstrWlanOps; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 967 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 968 | #endif |