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> |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 17 | #include "linux_wlan_common.h" |
| 18 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 19 | /******************************************** |
| 20 | * |
| 21 | * Debug Flags |
| 22 | * |
| 23 | ********************************************/ |
| 24 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 25 | #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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 30 | |
| 31 | /******************************************** |
| 32 | * |
| 33 | * Host Interface Defines |
| 34 | * |
| 35 | ********************************************/ |
| 36 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 37 | #define HIF_SDIO (0) |
| 38 | #define HIF_SPI BIT(0) |
| 39 | #define HIF_SDIO_GPIO_IRQ BIT(2) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 40 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 41 | /******************************************** |
| 42 | * |
| 43 | * Tx/Rx Buffer Size Defines |
| 44 | * |
| 45 | ********************************************/ |
| 46 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 47 | #define CE_TX_BUFFER_SIZE (64 * 1024) |
| 48 | #define CE_RX_BUFFER_SIZE (384 * 1024) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 49 | |
| 50 | /******************************************** |
| 51 | * |
| 52 | * Wlan Interface Defines |
| 53 | * |
| 54 | ********************************************/ |
| 55 | |
| 56 | typedef struct { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 57 | u32 read_write: 1; |
| 58 | u32 function: 3; |
| 59 | u32 raw: 1; |
| 60 | u32 address: 17; |
| 61 | u32 data: 8; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 62 | } sdio_cmd52_t; |
| 63 | |
| 64 | typedef struct { |
| 65 | /* struct { */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 66 | 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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 72 | /* } bit; */ |
Chaehyun Lim | 51e825f | 2015-09-15 14:06:14 +0900 | [diff] [blame] | 73 | u8 *buffer; |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 74 | u32 block_size; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 75 | } sdio_cmd53_t; |
| 76 | |
| 77 | typedef struct { |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 78 | 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 Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 90 | int (*spi_tx)(u8 *, u32); |
| 91 | int (*spi_rx)(u8 *, u32); |
| 92 | int (*spi_trx)(u8 *, u8 *, u32); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 93 | } spi; |
| 94 | } u; |
| 95 | } wilc_wlan_io_func_t; |
| 96 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 97 | #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 Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 101 | |
| 102 | #define WILC_MAC_INDICATE_SCAN 0x2 |
| 103 | |
| 104 | typedef struct { |
| 105 | void *os_private; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 106 | } wilc_wlan_os_context_t; |
| 107 | |
| 108 | typedef struct { |
| 109 | wilc_wlan_os_context_t os_context; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 110 | wilc_wlan_io_func_t io_func; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 111 | } wilc_wlan_inp_t; |
| 112 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 113 | struct tx_complete_data { |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 114 | int size; |
| 115 | void *buff; |
Chaehyun Lim | 51e825f | 2015-09-15 14:06:14 +0900 | [diff] [blame] | 116 | u8 *pBssid; |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 117 | struct sk_buff *skb; |
| 118 | }; |
| 119 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 120 | typedef void (*wilc_tx_complete_func_t)(void *, int); |
| 121 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 122 | #define WILC_TX_ERR_NO_BUF (-2) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 123 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 124 | /******************************************** |
| 125 | * |
| 126 | * Wlan Configuration ID |
| 127 | * |
| 128 | ********************************************/ |
| 129 | |
| 130 | #define MAX_SSID_LEN 33 |
| 131 | #define MAX_RATES_SUPPORTED 12 |
| 132 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 133 | #define INFINITE_SLEEP_TIME ((u32)0xFFFFFFFF) |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 134 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 135 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 136 | SUPP_RATES_IE = 1, |
| 137 | EXT_SUPP_RATES_IE = 50, |
| 138 | HT_CAPABILITY_IE = 45, |
| 139 | RSN_IE = 48, |
| 140 | WPA_IE = 221, |
| 141 | WMM_IE = 221, |
| 142 | P2P_IE = 221, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 143 | } BEACON_IE; |
Glen Lee | 438b293 | 2015-09-30 11:59:23 +0900 | [diff] [blame] | 144 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 145 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 146 | INFRASTRUCTURE = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 147 | INDEPENDENT, |
| 148 | AP, |
| 149 | } BSSTYPE_T; |
| 150 | |
| 151 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 152 | RATE_AUTO = 0, |
| 153 | RATE_1MB = 1, |
| 154 | RATE_2MB = 2, |
| 155 | RATE_5MB = 5, |
| 156 | RATE_6MB = 6, |
| 157 | RATE_9MB = 9, |
| 158 | RATE_11MB = 11, |
| 159 | RATE_12MB = 12, |
| 160 | RATE_18MB = 18, |
| 161 | RATE_24MB = 24, |
| 162 | RATE_26MB = 36, |
| 163 | RATE_48MB = 48, |
| 164 | RATE_54MB = 54 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 165 | } TX_RATE_T; |
| 166 | |
| 167 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 168 | B_ONLY_MODE = 0, /* 1, 2 M, otherwise 5, 11 M */ |
| 169 | G_ONLY_MODE, /* 6,12,24 otherwise 9,18,36,48,54 */ |
| 170 | G_MIXED_11B_1_MODE, /* 1,2,5.5,11 otherwise all on */ |
| 171 | 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] | 172 | } G_OPERATING_MODE_T; |
| 173 | |
| 174 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 175 | G_SHORT_PREAMBLE = 0, /* Short Preamble */ |
| 176 | G_LONG_PREAMBLE = 1, /* Long Preamble */ |
| 177 | G_AUTO_PREAMBLE = 2, /* Auto Preamble Selection */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 178 | } G_PREAMBLE_T; |
| 179 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 180 | #define MAC_CONNECTED 1 |
| 181 | #define MAC_DISCONNECTED 0 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 182 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 183 | #define SCAN_DONE TRUE |
| 184 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 185 | PASSIVE_SCAN = 0, |
| 186 | ACTIVE_SCAN = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 187 | } SCANTYPE_T; |
| 188 | |
| 189 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 190 | NO_POWERSAVE = 0, |
| 191 | MIN_FAST_PS = 1, |
| 192 | MAX_FAST_PS = 2, |
| 193 | MIN_PSPOLL_PS = 3, |
| 194 | MAX_PSPOLL_PS = 4 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 195 | } USER_PS_MODE_T; |
| 196 | |
| 197 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 198 | CHIP_WAKEDUP = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 199 | CHIP_SLEEPING_AUTO = 1, |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 200 | CHIP_SLEEPING_MANUAL = 2 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 201 | } CHIP_PS_STATE_T; |
| 202 | |
| 203 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 204 | ACQUIRE_ONLY = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 205 | ACQUIRE_AND_WAKEUP = 1, |
| 206 | } BUS_ACQUIRE_T; |
| 207 | |
| 208 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 209 | RELEASE_ONLY = 0, |
| 210 | RELEASE_ALLOW_SLEEP = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 211 | } BUS_RELEASE_T; |
| 212 | |
| 213 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 214 | NO_SECURITY = 0, |
| 215 | WEP_40 = 0x3, |
| 216 | WEP_104 = 0x7, |
| 217 | WPA_AES = 0x29, |
| 218 | WPA_TKIP = 0x49, |
| 219 | WPA_AES_TKIP = 0x69, /* Aes or Tkip */ |
| 220 | WPA2_AES = 0x31, |
| 221 | WPA2_TKIP = 0x51, |
| 222 | WPA2_AES_TKIP = 0x71, /* Aes or Tkip */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 223 | } SECURITY_T; |
| 224 | |
| 225 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 226 | OPEN_SYSTEM = 1, |
| 227 | SHARED_KEY = 2, |
| 228 | ANY = 3, |
| 229 | IEEE8021 = 5 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 230 | } AUTHTYPE_T; |
| 231 | |
| 232 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 233 | SITE_SURVEY_1CH = 0, |
| 234 | SITE_SURVEY_ALL_CH = 1, |
| 235 | SITE_SURVEY_OFF = 2 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 236 | } SITE_SURVEY_T; |
| 237 | |
| 238 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 239 | NORMAL_ACK = 0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 240 | NO_ACK, |
| 241 | } ACK_POLICY_T; |
| 242 | |
| 243 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 244 | DONT_RESET = 0, |
| 245 | DO_RESET = 1, |
| 246 | NO_REQUEST = 2, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 247 | } RESET_REQ_T; |
| 248 | |
| 249 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 250 | REKEY_DISABLE = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 251 | REKEY_TIME_BASE, |
| 252 | REKEY_PKT_BASE, |
| 253 | REKEY_TIME_PKT_BASE |
| 254 | } RSNA_REKEY_POLICY_T; |
| 255 | |
| 256 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 257 | FILTER_NO = 0x00, |
| 258 | FILTER_AP_ONLY = 0x01, |
| 259 | FILTER_STA_ONLY = 0x02 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 260 | } SCAN_CLASS_FITLER_T; |
| 261 | |
| 262 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 263 | PRI_HIGH_RSSI = 0x00, |
| 264 | PRI_LOW_RSSI = 0x04, |
| 265 | PRI_DETECT = 0x08 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 266 | } SCAN_PRI_T; |
| 267 | |
| 268 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 269 | CH_FILTER_OFF = 0x00, |
| 270 | CH_FILTER_ON = 0x10 |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 271 | } CH_FILTER_T; |
| 272 | |
| 273 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 274 | AUTO_PROT = 0, /* Auto */ |
| 275 | NO_PROT, /* Do not use any protection */ |
| 276 | ERP_PROT, /* Protect all ERP frame exchanges */ |
| 277 | HT_PROT, /* Protect all HT frame exchanges */ |
| 278 | GF_PROT, /* Protect all GF frame exchanges */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 279 | } N_PROTECTION_MODE_T; |
| 280 | |
| 281 | typedef enum { |
| 282 | G_SELF_CTS_PROT, |
| 283 | G_RTS_CTS_PROT, |
| 284 | } G_PROTECTION_MODE_T; |
| 285 | |
| 286 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 287 | HT_MIXED_MODE = 1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 288 | HT_ONLY_20MHZ_MODE, |
| 289 | HT_ONLY_20_40MHZ_MODE, |
| 290 | } N_OPERATING_MODE_T; |
| 291 | |
| 292 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 293 | NO_DETECT = 0, |
| 294 | DETECT_ONLY = 1, |
| 295 | DETECT_PROTECT = 2, |
| 296 | DETECT_PROTECT_REPORT = 3, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 297 | } N_OBSS_DETECTION_T; |
| 298 | |
| 299 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 300 | RTS_CTS_NONHT_PROT = 0, /* RTS-CTS at non-HT rate */ |
| 301 | FIRST_FRAME_NONHT_PROT, /* First frame at non-HT rate */ |
| 302 | LSIG_TXOP_PROT, /* LSIG TXOP Protection */ |
| 303 | FIRST_FRAME_MIXED_PROT, /* First frame at Mixed format */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 304 | } N_PROTECTION_TYPE_T; |
| 305 | |
| 306 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 307 | STATIC_MODE = 1, |
| 308 | DYNAMIC_MODE = 2, |
| 309 | MIMO_MODE = 3, /* power save disable */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 310 | } N_SMPS_MODE_T; |
| 311 | |
| 312 | typedef enum { |
| 313 | DISABLE_SELF_CTS, |
| 314 | ENABLE_SELF_CTS, |
| 315 | DISABLE_TX_ABORT, |
| 316 | ENABLE_TX_ABORT, |
| 317 | HW_TRIGGER_ABORT, |
| 318 | SW_TRIGGER_ABORT, |
| 319 | } TX_ABORT_OPTION_T; |
| 320 | |
| 321 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 322 | WID_CHAR = 0, |
| 323 | WID_SHORT = 1, |
| 324 | WID_INT = 2, |
| 325 | WID_STR = 3, |
| 326 | WID_BIN_DATA = 4, |
| 327 | WID_BIN = 5, |
| 328 | WID_IP = 6, |
| 329 | WID_ADR = 7, |
| 330 | WID_UNDEF = 8, |
| 331 | WID_TYPE_FORCE_32BIT = 0xFFFFFFFF |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 332 | |
| 333 | } WID_TYPE_T, tenuWIDtype; |
| 334 | |
| 335 | typedef enum { |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 336 | WID_NIL = 0xffff, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 337 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 338 | /* |
| 339 | * BSS Type |
| 340 | * ----------------------------------------------------------- |
| 341 | * Configuration : Infrastructure Independent Access Point |
| 342 | * Values to set : 0 1 2 |
| 343 | * ----------------------------------------------------------- |
| 344 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 345 | WID_BSS_TYPE = 0x0000, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 346 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 347 | /* |
| 348 | * Transmit Rate |
| 349 | * ----------------------------------------------------------- |
| 350 | * Configuration : 1 2 5.5 11 6 9 12 18 24 36 48 54 |
| 351 | * Values to set : 1 2 5 11 6 9 12 18 24 36 48 54 |
| 352 | * ----------------------------------------------------------- |
| 353 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 354 | WID_CURRENT_TX_RATE = 0x0001, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 355 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 356 | /* |
| 357 | * Channel |
| 358 | * ----------------------------------------------------------- |
| 359 | * Configuration(g) : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
| 360 | * Values to set : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
| 361 | * ----------------------------------------------------------- |
| 362 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 363 | WID_CURRENT_CHANNEL = 0x0002, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 364 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 365 | /* |
| 366 | * Preamble |
| 367 | * ----------------------------------------------------------- |
| 368 | * Configuration : short long Auto |
| 369 | * Values to set : 0 1 2 |
| 370 | * ----------------------------------------------------------- |
| 371 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 372 | WID_PREAMBLE = 0x0003, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 373 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 374 | /* |
| 375 | * 11g operating mode (ignored if 11g not present) |
| 376 | * ----------------------------------------------------------- |
| 377 | * Configuration : HighPerf Compat(RSet #1) Compat(RSet #2) |
| 378 | * Values to set : 1 2 3 |
| 379 | * ----------------------------------------------------------- |
| 380 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 381 | WID_11G_OPERATING_MODE = 0x0004, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 382 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 383 | /* |
| 384 | * Mac status (response only) |
| 385 | * ----------------------------------------------------------- |
| 386 | * Configuration : disconnect connect |
| 387 | * Values to get : 0 1 |
| 388 | * ----------------------------------------------------------- |
| 389 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 390 | WID_STATUS = 0x0005, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 391 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 392 | /* |
| 393 | * Scan type |
| 394 | * ----------------------------------------------------------- |
| 395 | * Configuration : Passive Scanning Active Scanning |
| 396 | * Values to set : 0 1 |
| 397 | * ----------------------------------------------------------- |
| 398 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 399 | WID_SCAN_TYPE = 0x0007, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 400 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 401 | /* |
| 402 | * Key Id (WEP default key Id) |
| 403 | * ----------------------------------------------------------- |
| 404 | * Configuration : Any value between 0 to 3 |
| 405 | * Values to set : Same value. Default is 0 |
| 406 | * ----------------------------------------------------------- |
| 407 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 408 | WID_KEY_ID = 0x0009, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 409 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 410 | /* |
| 411 | * QoS Enable |
| 412 | * ----------------------------------------------------------- |
| 413 | * Configuration : QoS Disable WMM Enable |
| 414 | * Values to set : 0 1 |
| 415 | * ----------------------------------------------------------- |
| 416 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 417 | WID_QOS_ENABLE = 0x000A, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 418 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 419 | /* |
| 420 | * Power Management |
| 421 | * ----------------------------------------------------------- |
| 422 | * Configuration : NO_POWERSAVE MIN_POWERSAVE MAX_POWERSAVE |
| 423 | * Values to set : 0 1 2 |
| 424 | * ----------------------------------------------------------- |
| 425 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 426 | WID_POWER_MANAGEMENT = 0x000B, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 427 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 428 | /* |
| 429 | * WEP/802 11I Configuration |
| 430 | * ----------------------------------------------------------- |
| 431 | * Configuration:Disable WP40 WP104 WPA-AES WPA-TKIP RSN-AES RSN-TKIP |
| 432 | * Values (0x) : 00 03 07 29 49 31 51 |
| 433 | * Configuration:WPA-AES+TKIP RSN-AES+TKIP |
| 434 | * Values (0x) : 69 71 |
| 435 | * ----------------------------------------------------------- |
| 436 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 437 | WID_11I_MODE = 0x000C, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 438 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 439 | /* |
| 440 | * WEP Configuration: Used in BSS STA mode only when WEP is enabled |
| 441 | * ----------------------------------------------------------- |
| 442 | * Configuration : Open System Shared Key Any Type | 802.1x Auth |
| 443 | * Values (0x) : 01 02 03 | BIT2 |
| 444 | * ----------------------------------------------------------- |
| 445 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 446 | WID_AUTH_TYPE = 0x000D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 447 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 448 | /* |
| 449 | * Site Survey Type |
| 450 | * ----------------------------------------------------------- |
| 451 | * Configuration : Values to set |
| 452 | * Survey 1 Channel : 0 |
| 453 | * survey all Channels : 1 |
| 454 | * Disable Site Survey : 2 |
| 455 | * ----------------------------------------------------------- |
| 456 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 457 | WID_SITE_SURVEY = 0x000E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 458 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 459 | /* |
| 460 | * Listen Interval |
| 461 | * ----------------------------------------------------------- |
| 462 | * Configuration : Any value between 1 to 255 |
| 463 | * Values to set : Same value. Default is 3 |
| 464 | * ----------------------------------------------------------- |
| 465 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 466 | WID_LISTEN_INTERVAL = 0x000F, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 467 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 468 | /* |
| 469 | * DTIM Period |
| 470 | * ----------------------------------------------------------- |
| 471 | * Configuration : Any value between 1 to 255 |
| 472 | * Values to set : Same value. Default is 3 |
| 473 | * ----------------------------------------------------------- |
| 474 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 475 | WID_DTIM_PERIOD = 0x0010, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 476 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 477 | /* |
| 478 | * ACK Policy |
| 479 | * ----------------------------------------------------------- |
| 480 | * Configuration : Normal Ack No Ack |
| 481 | * Values to set : 0 1 |
| 482 | * ----------------------------------------------------------- |
| 483 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 484 | WID_ACK_POLICY = 0x0011, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 485 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 486 | /* |
| 487 | * Reset MAC (Set only) |
| 488 | * ----------------------------------------------------------- |
| 489 | * Configuration : Don't Reset Reset No Request |
| 490 | * Values to set : 0 1 2 |
| 491 | * ----------------------------------------------------------- |
| 492 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 493 | WID_RESET = 0x0012, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 494 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 495 | /* |
| 496 | * Broadcast SSID Option: Setting this will adhere to "" SSID element |
| 497 | * ----------------------------------------------------------- |
| 498 | * Configuration : Enable Disable |
| 499 | * Values to set : 1 0 |
| 500 | * ----------------------------------------------------------- |
| 501 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 502 | WID_BCAST_SSID = 0x0015, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 503 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 504 | /* |
| 505 | * Disconnect (Station) |
| 506 | * ----------------------------------------------------------- |
| 507 | * Configuration : Association ID |
| 508 | * Values to set : Association ID |
| 509 | * ----------------------------------------------------------- |
| 510 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 511 | WID_DISCONNECT = 0x0016, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 512 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 513 | /* |
| 514 | * 11a Tx Power Level |
| 515 | * ----------------------------------------------------------- |
| 516 | * Configuration : Sets TX Power (Higher the value greater the power) |
| 517 | * Values to set : Any value between 0 and 63 (inclusive Default 48) |
| 518 | * ----------------------------------------------------------- |
| 519 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 520 | WID_TX_POWER_LEVEL_11A = 0x0018, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 521 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 522 | /* |
| 523 | * Group Key Update Policy Selection |
| 524 | * ----------------------------------------------------------- |
| 525 | * Configuration : Disabled timeBased packetBased timePacketBased |
| 526 | * Values to set : 1 2 3 4 |
| 527 | * ----------------------------------------------------------- |
| 528 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 529 | WID_REKEY_POLICY = 0x0019, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 530 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 531 | /* |
| 532 | * Allow Short Slot |
| 533 | * ----------------------------------------------------------- |
| 534 | * Configuration : Disallow Short Slot Allow Short Slot |
| 535 | * (Enable Only Long Slot) (Enable Short Slot if applicable) |
| 536 | * Values to set : 0 1 |
| 537 | * ----------------------------------------------------------- |
| 538 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 539 | WID_SHORT_SLOT_ALLOWED = 0x001A, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 540 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 541 | WID_PHY_ACTIVE_REG = 0x001B, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 542 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 543 | /* |
| 544 | * 11b Tx Power Level |
| 545 | * ----------------------------------------------------------- |
| 546 | * Configuration : Sets TX Power (Higher the value greater the power) |
| 547 | * Values to set : Any value between 0 and 63 (inclusive Default 48) |
| 548 | * ----------------------------------------------------------- |
| 549 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 550 | WID_TX_POWER_LEVEL_11B = 0x001D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 551 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 552 | /* |
| 553 | * Scan Request |
| 554 | * ----------------------------------------------------------- |
| 555 | * Configuration : Request default scan |
| 556 | * Values to set : 0 |
| 557 | * ----------------------------------------------------------- |
| 558 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 559 | WID_START_SCAN_REQ = 0x001E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 560 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 561 | /* |
| 562 | * Rssi (get only) |
| 563 | * ----------------------------------------------------------- |
| 564 | * Configuration : |
| 565 | * Values to get : Rssi value |
| 566 | * ----------------------------------------------------------- |
| 567 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 568 | WID_RSSI = 0x001F, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 569 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 570 | /* |
| 571 | * Join Request |
| 572 | * ----------------------------------------------------------- |
| 573 | * Configuration : Request to join |
| 574 | * Values to set : index of scan result |
| 575 | * ----------------------------------------------------------- |
| 576 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 577 | WID_JOIN_REQ = 0x0020, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 578 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 579 | WID_LINKSPEED = 0x0026, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 580 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 581 | /* |
| 582 | * Enable User Control of TX Power |
| 583 | * ----------------------------------------------------------- |
| 584 | * Configuration : Disable Enable |
| 585 | * Values to set : 0 1 |
| 586 | * ----------------------------------------------------------- |
| 587 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 588 | WID_USER_CONTROL_ON_TX_POWER = 0x0027, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 589 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 590 | WID_MEMORY_ACCESS_8BIT = 0x0029, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 591 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 592 | /* |
| 593 | * Enable Auto RX Sensitivity feature |
| 594 | * ----------------------------------------------------------- |
| 595 | * Configuration : Disable Enable |
| 596 | * Values to set : 0 1 |
| 597 | * ----------------------------------------------------------- |
| 598 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 599 | WID_AUTO_RX_SENSITIVITY = 0x0032, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 600 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 601 | /* |
| 602 | * Receive Buffer Based Ack |
| 603 | * ----------------------------------------------------------- |
| 604 | * Configuration : Disable Enable |
| 605 | * Values to set : 0 1 |
| 606 | * ----------------------------------------------------------- |
| 607 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 608 | WID_DATAFLOW_CONTROL = 0x0033, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 609 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 610 | /* |
| 611 | * Scan Filter |
| 612 | * ----------------------------------------------------------- |
| 613 | * Configuration : Class No filter AP only Station Only |
| 614 | * Values to set : 0 1 2 |
| 615 | * Configuration : Priority High Rssi Low Rssi Detect |
| 616 | * Values to set : 0 0x4 0x0 |
| 617 | * Configuration : Channel filter off filter on |
| 618 | * Values to set : 0 0x10 |
| 619 | * ----------------------------------------------------------- |
| 620 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 621 | WID_SCAN_FILTER = 0x0036, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 622 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 623 | /* |
| 624 | * Link Loss Threshold (measure in the beacon period) |
| 625 | * ----------------------------------------------------------- |
| 626 | * Configuration : Any value between 10 and 254(Set to 255 disable) |
| 627 | * Values to set : Same value. Default is 10 |
| 628 | * ----------------------------------------------------------- |
| 629 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 630 | WID_LINK_LOSS_THRESHOLD = 0x0037, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 631 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 632 | WID_ABORT_RUNNING_SCAN = 0x003E, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 633 | |
| 634 | /* NMAC Character WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 635 | WID_WPS_START = 0x0043, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 636 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 637 | /* |
| 638 | * Protection mode for MAC |
| 639 | * ----------------------------------------------------------- |
| 640 | * Configuration : Auto No protection ERP HT GF |
| 641 | * Values to set : 0 1 2 3 4 |
| 642 | * ----------------------------------------------------------- |
| 643 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 644 | WID_11N_PROT_MECH = 0x0080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 645 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 646 | /* |
| 647 | * ERP Protection type for MAC |
| 648 | * ----------------------------------------------------------- |
| 649 | * Configuration : Self-CTS RTS-CTS |
| 650 | * Values to set : 0 1 |
| 651 | * ----------------------------------------------------------- |
| 652 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 653 | WID_11N_ERP_PROT_TYPE = 0x0081, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 654 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 655 | /* |
| 656 | * HT Option Enable |
| 657 | * ----------------------------------------------------------- |
| 658 | * Configuration : HT Enable HT Disable |
| 659 | * Values to set : 1 0 |
| 660 | * ----------------------------------------------------------- |
| 661 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 662 | WID_11N_ENABLE = 0x0082, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 663 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 664 | /* |
| 665 | * 11n Operating mode (Note that 11g operating mode will also be |
| 666 | * used in addition to this, if this is set to HT Mixed mode) |
| 667 | * ----------------------------------------------------------- |
| 668 | * Configuration : HT Mixed HT Only-20MHz HT Only-20/40MHz |
| 669 | * Values to set : 1 2 3 |
| 670 | * ----------------------------------------------------------- |
| 671 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 672 | WID_11N_OPERATING_MODE = 0x0083, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 673 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 674 | /* |
| 675 | * 11n OBSS non-HT STA Detection flag |
| 676 | * ----------------------------------------------------------- |
| 677 | * Configuration : Do not detect |
| 678 | * Values to set : 0 |
| 679 | * Configuration : Detect, do not protect or report |
| 680 | * Values to set : 1 |
| 681 | * Configuration : Detect, protect and do not report |
| 682 | * Values to set : 2 |
| 683 | * Configuration : Detect, protect and report to other BSS |
| 684 | * Values to set : 3 |
| 685 | * ----------------------------------------------------------- |
| 686 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 687 | WID_11N_OBSS_NONHT_DETECTION = 0x0084, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 688 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 689 | /* |
| 690 | * 11n HT Protection Type |
| 691 | * ----------------------------------------------------------- |
| 692 | * Configuration : RTS-CTS First Frame Exchange at non-HT-rate |
| 693 | * Values to set : 0 1 |
| 694 | * Configuration : LSIG TXOP First Frame Exchange in Mixed Fmt |
| 695 | * Values to set : 2 3 |
| 696 | * ----------------------------------------------------------- |
| 697 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 698 | WID_11N_HT_PROT_TYPE = 0x0085, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 699 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 700 | /* |
| 701 | * 11n RIFS Protection Enable Flag |
| 702 | * ----------------------------------------------------------- |
| 703 | * Configuration : Disable Enable |
| 704 | * Values to set : 0 1 |
| 705 | * ----------------------------------------------------------- |
| 706 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 707 | WID_11N_RIFS_PROT_ENABLE = 0x0086, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 708 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 709 | /* |
| 710 | * SMPS Mode |
| 711 | * ----------------------------------------------------------- |
| 712 | * Configuration : Static Dynamic MIMO (Power Save Disabled) |
| 713 | * Values to set : 1 2 3 |
| 714 | * ----------------------------------------------------------- |
| 715 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 716 | WID_11N_SMPS_MODE = 0x0087, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 717 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 718 | /* |
| 719 | * Current transmit MCS |
| 720 | * ----------------------------------------------------------- |
| 721 | * Configuration : MCS Index for data rate |
| 722 | * Values to set : 0 to 7 |
| 723 | * ----------------------------------------------------------- |
| 724 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 725 | WID_11N_CURRENT_TX_MCS = 0x0088, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 726 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 727 | WID_11N_PRINT_STATS = 0x0089, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 728 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 729 | /* |
| 730 | * 11n Short GI Enable Flag |
| 731 | * ----------------------------------------------------------- |
| 732 | * Configuration : Disable Enable |
| 733 | * Values to set : 0 1 |
| 734 | * ----------------------------------------------------------- |
| 735 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 736 | WID_11N_SHORT_GI_ENABLE = 0x008D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 737 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 738 | /* |
| 739 | * 11n RIFS Enable Flag |
| 740 | * ----------------------------------------------------------- |
| 741 | * Configuration : Disable Enable |
| 742 | * Values to set : 0 1 |
| 743 | * ----------------------------------------------------------- |
| 744 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 745 | WID_RIFS_MODE = 0x0094, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 746 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 747 | /* |
| 748 | * TX Abort Feature |
| 749 | * ----------------------------------------------------------- |
| 750 | * Configuration : Disable Self CTS Enable Self CTS |
| 751 | * Values to set : 0 1 |
| 752 | * Configuration : Disable TX Abort Enable TX Abort |
| 753 | * Values to set : 2 3 |
| 754 | * Configuration : Enable HW TX Abort Enable SW TX Abort |
| 755 | * Values to set : 4 5 |
| 756 | * ----------------------------------------------------------- |
| 757 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 758 | WID_TX_ABORT_CONFIG = 0x00A1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 759 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 760 | WID_REG_TSSI_11B_VALUE = 0x00A6, |
| 761 | WID_REG_TSSI_11G_VALUE = 0x00A7, |
| 762 | WID_REG_TSSI_11N_VALUE = 0x00A8, |
| 763 | WID_TX_CALIBRATION = 0x00A9, |
| 764 | WID_DSCR_TSSI_11B_VALUE = 0x00AA, |
| 765 | WID_DSCR_TSSI_11G_VALUE = 0x00AB, |
| 766 | WID_DSCR_TSSI_11N_VALUE = 0x00AC, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 767 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 768 | /* |
| 769 | * Immediate Block-Ack Support |
| 770 | * ----------------------------------------------------------- |
| 771 | * Configuration : Disable Enable |
| 772 | * Values to set : 0 1 |
| 773 | * ----------------------------------------------------------- |
| 774 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 775 | WID_11N_IMMEDIATE_BA_ENABLED = 0x00AF, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 776 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 777 | /* |
| 778 | * TXOP Disable Flag |
| 779 | * ----------------------------------------------------------- |
| 780 | * Configuration : Disable Enable |
| 781 | * Values to set : 1 0 |
| 782 | * ----------------------------------------------------------- |
| 783 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 784 | WID_11N_TXOP_PROT_DISABLE = 0x00B0, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 785 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 786 | WID_TX_POWER_LEVEL_11N = 0x00B1, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 787 | |
| 788 | /* Custom Character WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 789 | WID_PC_TEST_MODE = 0x00C8, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 790 | /* SCAN Complete notification WID*/ |
| 791 | WID_SCAN_COMPLETE = 0x00C9, |
| 792 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 793 | WID_DEL_BEACON = 0x00CA, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 794 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 795 | WID_LOGTerminal_Switch = 0x00CD, |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 796 | /* EMAC Short WID list */ |
| 797 | /* RTS Threshold */ |
| 798 | /* |
| 799 | * ----------------------------------------------------------- |
| 800 | * Configuration : Any value between 256 to 2347 |
| 801 | * Values to set : Same value. Default is 2347 |
| 802 | * ----------------------------------------------------------- |
| 803 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 804 | WID_RTS_THRESHOLD = 0x1000, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 805 | |
Leo Kim | d4cebe4 | 2015-09-22 14:34:45 +0900 | [diff] [blame] | 806 | /* |
| 807 | * Fragmentation Threshold |
| 808 | * ----------------------------------------------------------- |
| 809 | * Configuration : Any value between 256 to 2346 |
| 810 | * Values to set : Same value. Default is 2346 |
| 811 | * ----------------------------------------------------------- |
| 812 | */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 813 | WID_FRAG_THRESHOLD = 0x1001, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 814 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 815 | WID_SHORT_RETRY_LIMIT = 0x1002, |
| 816 | WID_LONG_RETRY_LIMIT = 0x1003, |
| 817 | WID_BEACON_INTERVAL = 0x1006, |
| 818 | WID_MEMORY_ACCESS_16BIT = 0x1008, |
| 819 | WID_RX_SENSE = 0x100B, |
| 820 | WID_ACTIVE_SCAN_TIME = 0x100C, |
| 821 | WID_PASSIVE_SCAN_TIME = 0x100D, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 822 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 823 | WID_SITE_SURVEY_SCAN_TIME = 0x100E, |
| 824 | WID_JOIN_START_TIMEOUT = 0x100F, |
| 825 | WID_AUTH_TIMEOUT = 0x1010, |
| 826 | WID_ASOC_TIMEOUT = 0x1011, |
| 827 | WID_11I_PROTOCOL_TIMEOUT = 0x1012, |
| 828 | WID_EAPOL_RESPONSE_TIMEOUT = 0x1013, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 829 | |
| 830 | /* NMAC Short WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 831 | WID_11N_SIG_QUAL_VAL = 0x1085, |
| 832 | WID_CCA_THRESHOLD = 0x1087, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 833 | |
| 834 | /* Custom Short WID list */ |
| 835 | |
| 836 | /* EMAC Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 837 | WID_FAILED_COUNT = 0x2000, |
| 838 | WID_RETRY_COUNT = 0x2001, |
| 839 | WID_MULTIPLE_RETRY_COUNT = 0x2002, |
| 840 | WID_FRAME_DUPLICATE_COUNT = 0x2003, |
| 841 | WID_ACK_FAILURE_COUNT = 0x2004, |
| 842 | WID_RECEIVED_FRAGMENT_COUNT = 0x2005, |
| 843 | WID_MCAST_RECEIVED_FRAME_COUNT = 0x2006, |
| 844 | WID_FCS_ERROR_COUNT = 0x2007, |
| 845 | WID_SUCCESS_FRAME_COUNT = 0x2008, |
| 846 | WID_HUT_TX_COUNT = 0x200A, |
| 847 | WID_TX_FRAGMENT_COUNT = 0x200B, |
| 848 | WID_TX_MULTICAST_FRAME_COUNT = 0x200C, |
| 849 | WID_RTS_SUCCESS_COUNT = 0x200D, |
| 850 | WID_RTS_FAILURE_COUNT = 0x200E, |
| 851 | WID_WEP_UNDECRYPTABLE_COUNT = 0x200F, |
| 852 | WID_REKEY_PERIOD = 0x2010, |
| 853 | WID_REKEY_PACKET_COUNT = 0x2011, |
| 854 | WID_1X_SERV_ADDR = 0x2012, |
| 855 | WID_STACK_IP_ADDR = 0x2013, |
| 856 | WID_STACK_NETMASK_ADDR = 0x2014, |
| 857 | WID_HW_RX_COUNT = 0x2015, |
| 858 | WID_MEMORY_ADDRESS = 0x201E, |
| 859 | WID_MEMORY_ACCESS_32BIT = 0x201F, |
| 860 | WID_RF_REG_VAL = 0x2021, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 861 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 862 | /* NMAC Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 863 | WID_11N_PHY_ACTIVE_REG_VAL = 0x2080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 864 | |
| 865 | /* Custom Integer WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 866 | WID_GET_INACTIVE_TIME = 0x2084, |
| 867 | WID_SET_DRV_HANDLER = 0X2085, |
| 868 | WID_SET_OPERATION_MODE = 0X2086, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 869 | /* EMAC String WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 870 | WID_SSID = 0x3000, |
| 871 | WID_FIRMWARE_VERSION = 0x3001, |
| 872 | WID_OPERATIONAL_RATE_SET = 0x3002, |
| 873 | WID_BSSID = 0x3003, |
| 874 | WID_WEP_KEY_VALUE = 0x3004, |
| 875 | WID_11I_PSK = 0x3008, |
| 876 | WID_11E_P_ACTION_REQ = 0x3009, |
| 877 | WID_1X_KEY = 0x300A, |
| 878 | WID_HARDWARE_VERSION = 0x300B, |
| 879 | WID_MAC_ADDR = 0x300C, |
| 880 | WID_HUT_DEST_ADDR = 0x300D, |
| 881 | WID_PHY_VERSION = 0x300F, |
| 882 | WID_SUPP_USERNAME = 0x3010, |
| 883 | WID_SUPP_PASSWORD = 0x3011, |
| 884 | WID_SITE_SURVEY_RESULTS = 0x3012, |
| 885 | WID_RX_POWER_LEVEL = 0x3013, |
| 886 | WID_DEL_ALL_RX_BA = 0x3014, |
| 887 | WID_SET_STA_MAC_INACTIVE_TIME = 0x3017, |
| 888 | WID_ADD_WEP_KEY = 0x3019, |
| 889 | WID_REMOVE_WEP_KEY = 0x301A, |
| 890 | WID_ADD_PTK = 0x301B, |
| 891 | WID_ADD_RX_GTK = 0x301C, |
| 892 | WID_ADD_TX_GTK = 0x301D, |
| 893 | WID_REMOVE_KEY = 0x301E, |
| 894 | WID_ASSOC_REQ_INFO = 0x301F, |
| 895 | WID_ASSOC_RES_INFO = 0x3020, |
| 896 | WID_MANUFACTURER = 0x3026, /*Added for CAPI tool */ |
| 897 | WID_MODEL_NAME = 0x3027, /*Added for CAPI tool */ |
| 898 | WID_MODEL_NUM = 0x3028, /*Added for CAPI tool */ |
| 899 | WID_DEVICE_NAME = 0x3029, /*Added for CAPI tool */ |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 900 | |
| 901 | /* NMAC String WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 902 | WID_11N_P_ACTION_REQ = 0x3080, |
| 903 | WID_HUT_TEST_ID = 0x3081, |
| 904 | WID_PMKID_INFO = 0x3082, |
| 905 | WID_FIRMWARE_INFO = 0x3083, |
| 906 | WID_REGISTER_FRAME = 0x3084, |
| 907 | WID_DEL_ALL_STA = 0x3085, |
| 908 | WID_REMAIN_ON_CHAN = 0x3996, |
| 909 | WID_SSID_PROBE_REQ = 0x3997, |
| 910 | WID_JOIN_REQ_EXTENDED = 0x3998, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 911 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 912 | WID_IP_ADDRESS = 0x3999, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 913 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 914 | /* Custom String WID list */ |
| 915 | |
| 916 | /* EMAC Binary WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 917 | WID_UAPSD_CONFIG = 0x4001, |
| 918 | WID_UAPSD_STATUS = 0x4002, |
| 919 | WID_WMM_AP_AC_PARAMS = 0x4003, |
| 920 | WID_WMM_STA_AC_PARAMS = 0x4004, |
| 921 | WID_NETWORK_INFO = 0x4005, |
| 922 | WID_STA_JOIN_INFO = 0x4006, |
| 923 | WID_CONNECTED_STA_LIST = 0x4007, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 924 | |
| 925 | /* NMAC Binary WID list */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 926 | WID_11N_AUTORATE_TABLE = 0x4080, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 927 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 928 | WID_SCAN_CHANNEL_LIST = 0x4084, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 929 | |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 930 | WID_INFO_ELEMENT_PROBE = 0x4085, |
| 931 | WID_INFO_ELEMENT_ASSOCIATE = 0x4086, |
| 932 | WID_ADD_STA = 0X4087, |
| 933 | WID_REMOVE_STA = 0X4088, |
| 934 | WID_EDIT_STA = 0X4089, |
| 935 | WID_ADD_BEACON = 0x408a, |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 936 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 937 | WID_SETUP_MULTICAST_FILTER = 0x408b, |
| 938 | |
| 939 | /* Miscellaneous WIDs */ |
Leo Kim | 531c7ce | 2015-09-22 14:34:46 +0900 | [diff] [blame] | 940 | WID_ALL = 0x7FFE, |
| 941 | WID_MAX = 0xFFFF |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 942 | } WID_T; |
| 943 | |
Glen Lee | c9d4834 | 2015-10-01 16:03:43 +0900 | [diff] [blame^] | 944 | int wilc_wlan_init(wilc_wlan_inp_t *inp); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 945 | |
| 946 | void wilc_bus_set_max_speed(void); |
| 947 | void wilc_bus_set_default_speed(void); |
Chaehyun Lim | fbc2fe1 | 2015-09-15 14:06:16 +0900 | [diff] [blame] | 948 | u32 wilc_get_chipid(u8 update); |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 949 | |
Johnny Kim | c5c77ba | 2015-05-11 14:30:56 +0900 | [diff] [blame] | 950 | #endif |