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