Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 1 | /* |
| 2 | ************************************************************************* |
| 3 | * Ralink Tech Inc. |
| 4 | * 5F., No.36, Taiyuan St., Jhubei City, |
| 5 | * Hsinchu County 302, |
| 6 | * Taiwan, R.O.C. |
| 7 | * |
| 8 | * (c) Copyright 2002-2007, Ralink Technology, Inc. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify * |
| 11 | * it under the terms of the GNU General Public License as published by * |
| 12 | * the Free Software Foundation; either version 2 of the License, or * |
| 13 | * (at your option) any later version. * |
| 14 | * * |
| 15 | * This program is distributed in the hope that it will be useful, * |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 18 | * GNU General Public License for more details. * |
| 19 | * * |
| 20 | * You should have received a copy of the GNU General Public License * |
| 21 | * along with this program; if not, write to the * |
| 22 | * Free Software Foundation, Inc., * |
| 23 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 24 | * * |
| 25 | ************************************************************************* |
| 26 | |
| 27 | Module Name: |
| 28 | oid.h |
| 29 | |
| 30 | Abstract: |
| 31 | |
| 32 | Revision History: |
| 33 | Who When What |
| 34 | -------- ---------- ---------------------------------------------- |
| 35 | Name Date Modification logs |
| 36 | */ |
| 37 | #ifndef _OID_H_ |
| 38 | #define _OID_H_ |
| 39 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 40 | /*#include <linux/wireless.h> */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 41 | |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 42 | #ifndef TRUE |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 43 | #define TRUE 1 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 44 | #endif |
| 45 | #ifndef FALSE |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 46 | #define FALSE 0 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 47 | #endif |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 48 | /* */ |
| 49 | /* IEEE 802.11 Structures and definitions */ |
| 50 | /* */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 51 | #define MAX_TX_POWER_LEVEL 100 /* mW */ |
| 52 | #define MAX_RSSI_TRIGGER -10 /* dBm */ |
| 53 | #define MIN_RSSI_TRIGGER -200 /* dBm */ |
| 54 | #define MAX_FRAG_THRESHOLD 2346 /* byte count */ |
| 55 | #define MIN_FRAG_THRESHOLD 256 /* byte count */ |
| 56 | #define MAX_RTS_THRESHOLD 2347 /* byte count */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 57 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 58 | /* new types for Media Specific Indications */ |
| 59 | /* Extension channel offset */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 60 | #define EXTCHA_NONE 0 |
| 61 | #define EXTCHA_ABOVE 0x1 |
| 62 | #define EXTCHA_BELOW 0x3 |
| 63 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 64 | /* BW */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 65 | #define BAND_WIDTH_20 0 |
| 66 | #define BAND_WIDTH_40 1 |
| 67 | #define BAND_WIDTH_BOTH 2 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 68 | #define BAND_WIDTH_10 3 /* 802.11j has 10MHz. This definition is for internal usage. doesn't fill in the IE or other field. */ |
| 69 | /* SHORTGI */ |
| 70 | #define GAP_INTERVAL_400 1 /* only support in HT mode */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 71 | #define GAP_INTERVAL_800 0 |
| 72 | #define GAP_INTERVAL_BOTH 2 |
| 73 | |
| 74 | #define NdisMediaStateConnected 1 |
| 75 | #define NdisMediaStateDisconnected 0 |
| 76 | |
| 77 | #define NDIS_802_11_LENGTH_SSID 32 |
| 78 | #define NDIS_802_11_LENGTH_RATES 8 |
| 79 | #define NDIS_802_11_LENGTH_RATES_EX 16 |
| 80 | #define MAC_ADDR_LENGTH 6 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 81 | /*#define MAX_NUM_OF_CHS 49 // 14 channels @2.4G + 12@UNII + 4 @MMAC + 11 @HiperLAN2 + 7 @Japan + 1 as NULL terminationc */ |
| 82 | #define MAX_NUM_OF_CHS 54 /* 14 channels @2.4G + 12@UNII(lower/middle) + 16@HiperLAN2 + 11@UNII(upper) + 0 @Japan + 1 as NULL termination */ |
| 83 | #define MAX_NUMBER_OF_EVENT 10 /* entry # in EVENT table */ |
| 84 | #define MAX_NUMBER_OF_MAC 32 /* if MAX_MBSSID_NUM is 8, this value can't be larger than 211 */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 85 | #define MAX_NUMBER_OF_ACL 64 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 86 | #define MAX_LENGTH_OF_SUPPORT_RATES 12 /* 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54 */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 87 | #define MAX_NUMBER_OF_DLS_ENTRY 4 |
| 88 | |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 89 | #define RT_QUERY_SIGNAL_CONTEXT 0x0402 |
| 90 | #define RT_SET_IAPP_PID 0x0404 |
| 91 | #define RT_SET_APD_PID 0x0405 |
| 92 | #define RT_SET_DEL_MAC_ENTRY 0x0406 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 93 | #define RT_QUERY_EVENT_TABLE 0x0407 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 94 | /* */ |
| 95 | /* IEEE 802.11 OIDs */ |
| 96 | /* */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 97 | #define OID_GET_SET_TOGGLE 0x8000 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 98 | #define OID_GET_SET_FROM_UI 0x4000 |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 99 | |
Bartlomiej Zolnierkiewicz | 881abc9 | 2009-08-16 21:32:02 +0200 | [diff] [blame] | 100 | #define OID_802_11_ADD_WEP 0x0112 |
| 101 | #define OID_802_11_DISASSOCIATE 0x0114 |
| 102 | #define OID_802_11_BSSID_LIST_SCAN 0x0508 |
| 103 | #define OID_802_11_SSID 0x0509 |
| 104 | #define OID_802_11_BSSID 0x050A |
| 105 | #define OID_802_11_MIC_FAILURE_REPORT_FRAME 0x0528 |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 106 | |
| 107 | #define RT_OID_DEVICE_NAME 0x0607 |
| 108 | #define RT_OID_VERSION_INFO 0x0608 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 109 | #define OID_802_11_BSSID_LIST 0x0609 |
| 110 | #define OID_802_3_CURRENT_ADDRESS 0x060A |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 111 | #define OID_GEN_MEDIA_CONNECT_STATUS 0x060B |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 112 | #define RT_OID_802_11_QUERY_LINK_STATUS 0x060C |
| 113 | #define OID_802_11_RSSI 0x060D |
| 114 | #define OID_802_11_STATISTICS 0x060E |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 115 | #define OID_GEN_RCV_OK 0x060F |
| 116 | #define OID_GEN_RCV_NO_BUFFER 0x0610 |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 117 | #define RT_OID_802_11_QUERY_EEPROM_VERSION 0x0611 |
| 118 | #define RT_OID_802_11_QUERY_FIRMWARE_VERSION 0x0612 |
| 119 | #define RT_OID_802_11_QUERY_LAST_RX_RATE 0x0613 |
| 120 | #define RT_OID_802_11_TX_POWER_LEVEL_1 0x0614 |
| 121 | #define RT_OID_802_11_QUERY_PIDVID 0x0615 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 122 | /*for WPA_SUPPLICANT_SUPPORT */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 123 | #define OID_SET_COUNTERMEASURES 0x0616 |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 124 | #define RT_OID_WPA_SUPPLICANT_SUPPORT 0x0621 |
| 125 | #define RT_OID_WE_VERSION_COMPILED 0x0622 |
| 126 | #define RT_OID_NEW_DRIVER 0x0623 |
| 127 | |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 128 | #define RT_OID_DRIVER_DEVICE_NAME 0x0645 |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 129 | #define RT_OID_QUERY_MULTIPLE_CARD_SUPPORT 0x0647 |
| 130 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 131 | typedef enum _NDIS_802_11_STATUS_TYPE { |
| 132 | Ndis802_11StatusType_Authentication, |
| 133 | Ndis802_11StatusType_MediaStreamMode, |
| 134 | Ndis802_11StatusType_PMKID_CandidateList, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 135 | Ndis802_11StatusTypeMax /* not a real type, defined as an upper bound */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 136 | } NDIS_802_11_STATUS_TYPE, *PNDIS_802_11_STATUS_TYPE; |
| 137 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 138 | typedef u8 NDIS_802_11_MAC_ADDRESS[6]; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 139 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 140 | struct rt_ndis_802_11_status_indication { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 141 | NDIS_802_11_STATUS_TYPE StatusType; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 142 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 143 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 144 | /* mask for authentication/integrity fields */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 145 | #define NDIS_802_11_AUTH_REQUEST_AUTH_FIELDS 0x0f |
| 146 | |
| 147 | #define NDIS_802_11_AUTH_REQUEST_REAUTH 0x01 |
| 148 | #define NDIS_802_11_AUTH_REQUEST_KEYUPDATE 0x02 |
| 149 | #define NDIS_802_11_AUTH_REQUEST_PAIRWISE_ERROR 0x06 |
| 150 | #define NDIS_802_11_AUTH_REQUEST_GROUP_ERROR 0x0E |
| 151 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 152 | struct rt_ndis_802_11_authentication_request { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 153 | unsigned long Length; /* Length of structure */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 154 | NDIS_802_11_MAC_ADDRESS Bssid; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 155 | unsigned long Flags; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 156 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 157 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 158 | /*Added new types for PMKID Candidate lists. */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 159 | struct rt_pmkid_candidate { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 160 | NDIS_802_11_MAC_ADDRESS BSSID; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 161 | unsigned long Flags; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 162 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 163 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 164 | struct rt_ndis_802_11_pmkid_candidate_list { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 165 | unsigned long Version; /* Version of the structure */ |
| 166 | unsigned long NumCandidates; /* No. of pmkid candidates */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 167 | struct rt_pmkid_candidate CandidateList[1]; |
| 168 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 169 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 170 | /*Flags for PMKID Candidate list structure */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 171 | #define NDIS_802_11_PMKID_CANDIDATE_PREAUTH_ENABLED 0x01 |
| 172 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 173 | /* Added new types for OFDM 5G and 2.4G */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 174 | typedef enum _NDIS_802_11_NETWORK_TYPE { |
| 175 | Ndis802_11FH, |
| 176 | Ndis802_11DS, |
| 177 | Ndis802_11OFDM5, |
| 178 | Ndis802_11OFDM24, |
| 179 | Ndis802_11Automode, |
| 180 | Ndis802_11OFDM5_N, |
| 181 | Ndis802_11OFDM24_N, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 182 | Ndis802_11NetworkTypeMax /* not a real type, defined as an upper bound */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 183 | } NDIS_802_11_NETWORK_TYPE, *PNDIS_802_11_NETWORK_TYPE; |
| 184 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 185 | struct rt_ndis_802_11_network_type_list { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 186 | u32 NumberOfItems; /* in list below, at least 1 */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 187 | NDIS_802_11_NETWORK_TYPE NetworkType[1]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 188 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 189 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 190 | typedef enum _NDIS_802_11_POWER_MODE { |
| 191 | Ndis802_11PowerModeCAM, |
| 192 | Ndis802_11PowerModeMAX_PSP, |
| 193 | Ndis802_11PowerModeFast_PSP, |
| 194 | Ndis802_11PowerModeLegacy_PSP, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 195 | Ndis802_11PowerModeMax /* not a real mode, defined as an upper bound */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 196 | } NDIS_802_11_POWER_MODE, *PNDIS_802_11_POWER_MODE; |
| 197 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 198 | typedef unsigned long NDIS_802_11_TX_POWER_LEVEL; /* in milliwatts */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 199 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 200 | /* */ |
| 201 | /* Received Signal Strength Indication */ |
| 202 | /* */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 203 | typedef long NDIS_802_11_RSSI; /* in dBm */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 204 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 205 | struct rt_ndis_802_11_configuration_fh { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 206 | unsigned long Length; /* Length of structure */ |
| 207 | unsigned long HopPattern; /* As defined by 802.11, MSB set */ |
| 208 | unsigned long HopSet; /* to one if non-802.11 */ |
| 209 | unsigned long DwellTime; /* units are Kusec */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 210 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 211 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 212 | struct rt_ndis_802_11_configuration { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 213 | unsigned long Length; /* Length of structure */ |
| 214 | unsigned long BeaconPeriod; /* units are Kusec */ |
| 215 | unsigned long ATIMWindow; /* units are Kusec */ |
| 216 | unsigned long DSConfig; /* Frequency, units are kHz */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 217 | struct rt_ndis_802_11_configuration_fh FHConfig; |
| 218 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 219 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 220 | struct rt_ndis_802_11_statistics { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 221 | unsigned long Length; /* Length of structure */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 222 | LARGE_INTEGER TransmittedFragmentCount; |
| 223 | LARGE_INTEGER MulticastTransmittedFrameCount; |
| 224 | LARGE_INTEGER FailedCount; |
| 225 | LARGE_INTEGER RetryCount; |
| 226 | LARGE_INTEGER MultipleRetryCount; |
| 227 | LARGE_INTEGER RTSSuccessCount; |
| 228 | LARGE_INTEGER RTSFailureCount; |
| 229 | LARGE_INTEGER ACKFailureCount; |
| 230 | LARGE_INTEGER FrameDuplicateCount; |
| 231 | LARGE_INTEGER ReceivedFragmentCount; |
| 232 | LARGE_INTEGER MulticastReceivedFrameCount; |
| 233 | LARGE_INTEGER FCSErrorCount; |
| 234 | LARGE_INTEGER TKIPLocalMICFailures; |
| 235 | LARGE_INTEGER TKIPRemoteMICErrors; |
| 236 | LARGE_INTEGER TKIPICVErrors; |
| 237 | LARGE_INTEGER TKIPCounterMeasuresInvoked; |
| 238 | LARGE_INTEGER TKIPReplays; |
| 239 | LARGE_INTEGER CCMPFormatErrors; |
| 240 | LARGE_INTEGER CCMPReplays; |
| 241 | LARGE_INTEGER CCMPDecryptErrors; |
| 242 | LARGE_INTEGER FourWayHandshakeFailures; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 243 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 244 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 245 | typedef unsigned long NDIS_802_11_KEY_INDEX; |
| 246 | typedef unsigned long long NDIS_802_11_KEY_RSC; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 247 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 248 | #define MAX_RADIUS_SRV_NUM 2 /* 802.1x failover number */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 249 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 250 | struct PACKED rt_radius_srv_info { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 251 | u32 radius_ip; |
| 252 | u32 radius_port; |
| 253 | u8 radius_key[64]; |
| 254 | u8 radius_key_len; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 255 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 256 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 257 | struct PACKED rt_radius_key_info { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 258 | u8 radius_srv_num; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 259 | struct rt_radius_srv_info radius_srv_info[MAX_RADIUS_SRV_NUM]; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 260 | u8 ieee8021xWEP; /* dynamic WEP */ |
| 261 | u8 key_index; |
| 262 | u8 key_length; /* length of key in bytes */ |
| 263 | u8 key_material[13]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 264 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 265 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 266 | /* It's used by 802.1x daemon to require relative configuration */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 267 | struct PACKED rt_radius_conf { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 268 | u32 Length; /* Length of this structure */ |
| 269 | u8 mbss_num; /* indicate multiple BSS number */ |
| 270 | u32 own_ip_addr; |
| 271 | u32 retry_interval; |
| 272 | u32 session_timeout_interval; |
| 273 | u8 EAPifname[8][IFNAMSIZ]; |
| 274 | u8 EAPifname_len[8]; |
| 275 | u8 PreAuthifname[8][IFNAMSIZ]; |
| 276 | u8 PreAuthifname_len[8]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 277 | struct rt_radius_key_info RadiusInfo[8]; |
| 278 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 279 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 280 | /* Key mapping keys require a BSSID */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 281 | struct rt_ndis_802_11_key { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 282 | u32 Length; /* Length of this structure */ |
| 283 | u32 KeyIndex; |
| 284 | u32 KeyLength; /* length of key in bytes */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 285 | NDIS_802_11_MAC_ADDRESS BSSID; |
| 286 | NDIS_802_11_KEY_RSC KeyRSC; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 287 | u8 KeyMaterial[1]; /* variable length depending on above field */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 288 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 289 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 290 | struct rt_ndis_802_11_passphrase { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 291 | u32 KeyLength; /* length of key in bytes */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 292 | NDIS_802_11_MAC_ADDRESS BSSID; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 293 | u8 KeyMaterial[1]; /* variable length depending on above field */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 294 | }; |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 295 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 296 | struct rt_ndis_802_11_remove_key { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 297 | u32 Length; /* Length of this structure */ |
| 298 | u32 KeyIndex; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 299 | NDIS_802_11_MAC_ADDRESS BSSID; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 300 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 301 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 302 | struct rt_ndis_802_11_wep { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 303 | u32 Length; /* Length of this structure */ |
| 304 | u32 KeyIndex; /* 0 is the per-client key, 1-N are the */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 305 | /* global keys */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 306 | u32 KeyLength; /* length of key in bytes */ |
| 307 | u8 KeyMaterial[1]; /* variable length depending on above field */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 308 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 309 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 310 | typedef enum _NDIS_802_11_NETWORK_INFRASTRUCTURE { |
| 311 | Ndis802_11IBSS, |
| 312 | Ndis802_11Infrastructure, |
| 313 | Ndis802_11AutoUnknown, |
| 314 | Ndis802_11Monitor, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 315 | Ndis802_11InfrastructureMax /* Not a real value, defined as upper bound */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 316 | } NDIS_802_11_NETWORK_INFRASTRUCTURE, *PNDIS_802_11_NETWORK_INFRASTRUCTURE; |
| 317 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 318 | /* Add new authentication modes */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 319 | typedef enum _NDIS_802_11_AUTHENTICATION_MODE { |
| 320 | Ndis802_11AuthModeOpen, |
| 321 | Ndis802_11AuthModeShared, |
| 322 | Ndis802_11AuthModeAutoSwitch, |
| 323 | Ndis802_11AuthModeWPA, |
| 324 | Ndis802_11AuthModeWPAPSK, |
| 325 | Ndis802_11AuthModeWPANone, |
| 326 | Ndis802_11AuthModeWPA2, |
| 327 | Ndis802_11AuthModeWPA2PSK, |
| 328 | Ndis802_11AuthModeWPA1WPA2, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 329 | Ndis802_11AuthModeWPA1PSKWPA2PSK, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 330 | Ndis802_11AuthModeMax /* Not a real mode, defined as upper bound */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 331 | } NDIS_802_11_AUTHENTICATION_MODE, *PNDIS_802_11_AUTHENTICATION_MODE; |
| 332 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 333 | typedef u8 NDIS_802_11_RATES[NDIS_802_11_LENGTH_RATES]; /* Set of 8 data rates */ |
| 334 | typedef u8 NDIS_802_11_RATES_EX[NDIS_802_11_LENGTH_RATES_EX]; /* Set of 16 data rates */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 335 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 336 | struct PACKED rt_ndis_802_11_ssid { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 337 | u32 SsidLength; /* length of SSID field below, in bytes; */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 338 | /* this can be zero. */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 339 | u8 Ssid[NDIS_802_11_LENGTH_SSID]; /* SSID information field */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 340 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 341 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 342 | struct PACKED rt_ndis_wlan_bssid { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 343 | unsigned long Length; /* Length of this structure */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 344 | NDIS_802_11_MAC_ADDRESS MacAddress; /* BSSID */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 345 | u8 Reserved[2]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 346 | struct rt_ndis_802_11_ssid Ssid; /* SSID */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 347 | unsigned long Privacy; /* WEP encryption requirement */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 348 | NDIS_802_11_RSSI Rssi; /* receive signal strength in dBm */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 349 | NDIS_802_11_NETWORK_TYPE NetworkTypeInUse; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 350 | struct rt_ndis_802_11_configuration Configuration; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 351 | NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode; |
| 352 | NDIS_802_11_RATES SupportedRates; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 353 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 354 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 355 | struct PACKED rt_ndis_802_11_bssid_list { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 356 | u32 NumberOfItems; /* in list below, at least 1 */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 357 | struct rt_ndis_wlan_bssid Bssid[1]; |
| 358 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 359 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 360 | /* Added Capabilities, IELength and IEs for each BSSID */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 361 | struct PACKED rt_ndis_wlan_bssid_ex { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 362 | unsigned long Length; /* Length of this structure */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 363 | NDIS_802_11_MAC_ADDRESS MacAddress; /* BSSID */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 364 | u8 Reserved[2]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 365 | struct rt_ndis_802_11_ssid Ssid; /* SSID */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 366 | u32 Privacy; /* WEP encryption requirement */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 367 | NDIS_802_11_RSSI Rssi; /* receive signal */ |
| 368 | /* strength in dBm */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 369 | NDIS_802_11_NETWORK_TYPE NetworkTypeInUse; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 370 | struct rt_ndis_802_11_configuration Configuration; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 371 | NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode; |
| 372 | NDIS_802_11_RATES_EX SupportedRates; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 373 | unsigned long IELength; |
| 374 | u8 IEs[1]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 375 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 376 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 377 | struct PACKED rt_ndis_802_11_bssid_list_ex { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 378 | u32 NumberOfItems; /* in list below, at least 1 */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 379 | struct rt_ndis_wlan_bssid_ex Bssid[1]; |
| 380 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 381 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 382 | struct PACKED rt_ndis_802_11_fixed_ies { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 383 | u8 Timestamp[8]; |
| 384 | u16 BeaconInterval; |
| 385 | u16 Capabilities; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 386 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 387 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 388 | struct rt_ndis_802_11_variable_ies { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 389 | u8 ElementID; |
| 390 | u8 Length; /* Number of bytes in data field */ |
| 391 | u8 data[1]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 392 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 393 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 394 | typedef unsigned long NDIS_802_11_FRAGMENTATION_THRESHOLD; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 395 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 396 | typedef unsigned long NDIS_802_11_RTS_THRESHOLD; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 397 | |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 398 | typedef unsigned long NDIS_802_11_ANTENNA; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 399 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 400 | typedef enum _NDIS_802_11_PRIVACY_FILTER { |
| 401 | Ndis802_11PrivFilterAcceptAll, |
| 402 | Ndis802_11PrivFilter8021xWEP |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 403 | } NDIS_802_11_PRIVACY_FILTER, *PNDIS_802_11_PRIVACY_FILTER; |
| 404 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 405 | /* Added new encryption types */ |
| 406 | /* Also aliased typedef to new name */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 407 | typedef enum _NDIS_802_11_WEP_STATUS { |
| 408 | Ndis802_11WEPEnabled, |
| 409 | Ndis802_11Encryption1Enabled = Ndis802_11WEPEnabled, |
| 410 | Ndis802_11WEPDisabled, |
| 411 | Ndis802_11EncryptionDisabled = Ndis802_11WEPDisabled, |
| 412 | Ndis802_11WEPKeyAbsent, |
| 413 | Ndis802_11Encryption1KeyAbsent = Ndis802_11WEPKeyAbsent, |
| 414 | Ndis802_11WEPNotSupported, |
| 415 | Ndis802_11EncryptionNotSupported = Ndis802_11WEPNotSupported, |
| 416 | Ndis802_11Encryption2Enabled, |
| 417 | Ndis802_11Encryption2KeyAbsent, |
| 418 | Ndis802_11Encryption3Enabled, |
| 419 | Ndis802_11Encryption3KeyAbsent, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 420 | Ndis802_11Encryption4Enabled, /* TKIP or AES mix */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 421 | Ndis802_11Encryption4KeyAbsent, |
| 422 | Ndis802_11GroupWEP40Enabled, |
Adam McDaniel | ed291e8 | 2009-02-23 08:01:07 -0700 | [diff] [blame] | 423 | Ndis802_11GroupWEP104Enabled, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 424 | } NDIS_802_11_WEP_STATUS, *PNDIS_802_11_WEP_STATUS, |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 425 | NDIS_802_11_ENCRYPTION_STATUS, *PNDIS_802_11_ENCRYPTION_STATUS; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 426 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 427 | typedef enum _NDIS_802_11_RELOAD_DEFAULTS { |
| 428 | Ndis802_11ReloadWEPKeys |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 429 | } NDIS_802_11_RELOAD_DEFAULTS, *PNDIS_802_11_RELOAD_DEFAULTS; |
| 430 | |
| 431 | #define NDIS_802_11_AI_REQFI_CAPABILITIES 1 |
| 432 | #define NDIS_802_11_AI_REQFI_LISTENINTERVAL 2 |
| 433 | #define NDIS_802_11_AI_REQFI_CURRENTAPADDRESS 4 |
| 434 | |
| 435 | #define NDIS_802_11_AI_RESFI_CAPABILITIES 1 |
| 436 | #define NDIS_802_11_AI_RESFI_STATUSCODE 2 |
| 437 | #define NDIS_802_11_AI_RESFI_ASSOCIATIONID 4 |
| 438 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 439 | struct rt_ndis_802_11_ai_reqfi { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 440 | u16 Capabilities; |
| 441 | u16 ListenInterval; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 442 | NDIS_802_11_MAC_ADDRESS CurrentAPAddress; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 443 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 444 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 445 | struct rt_ndis_802_11_ai_resfi { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 446 | u16 Capabilities; |
| 447 | u16 StatusCode; |
| 448 | u16 AssociationId; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 449 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 450 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 451 | struct rt_ndis_802_11_association_information { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 452 | unsigned long Length; |
| 453 | u16 AvailableRequestFixedIEs; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 454 | struct rt_ndis_802_11_ai_reqfi RequestFixedIEs; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 455 | unsigned long RequestIELength; |
| 456 | unsigned long OffsetRequestIEs; |
| 457 | u16 AvailableResponseFixedIEs; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 458 | struct rt_ndis_802_11_ai_resfi ResponseFixedIEs; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 459 | unsigned long ResponseIELength; |
| 460 | unsigned long OffsetResponseIEs; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 461 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 462 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 463 | struct rt_ndis_802_11_authentication_event { |
| 464 | struct rt_ndis_802_11_status_indication Status; |
| 465 | struct rt_ndis_802_11_authentication_request Request[1]; |
| 466 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 467 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 468 | /* 802.11 Media stream constraints, associated with OID_802_11_MEDIA_STREAM_MODE */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 469 | typedef enum _NDIS_802_11_MEDIA_STREAM_MODE { |
| 470 | Ndis802_11MediaStreamOff, |
| 471 | Ndis802_11MediaStreamOn, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 472 | } NDIS_802_11_MEDIA_STREAM_MODE, *PNDIS_802_11_MEDIA_STREAM_MODE; |
| 473 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 474 | /* PMKID Structures */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 475 | typedef u8 NDIS_802_11_PMKID_VALUE[16]; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 476 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 477 | struct rt_bssid_info { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 478 | NDIS_802_11_MAC_ADDRESS BSSID; |
| 479 | NDIS_802_11_PMKID_VALUE PMKID; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 480 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 481 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 482 | struct rt_ndis_802_11_pmkid { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 483 | u32 Length; |
| 484 | u32 BSSIDInfoCount; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 485 | struct rt_bssid_info BSSIDInfo[1]; |
| 486 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 487 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 488 | struct rt_ndis_802_11_authentication_encryption { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 489 | NDIS_802_11_AUTHENTICATION_MODE AuthModeSupported; |
| 490 | NDIS_802_11_ENCRYPTION_STATUS EncryptStatusSupported; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 491 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 492 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 493 | struct rt_ndis_802_11_capability { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 494 | unsigned long Length; |
| 495 | unsigned long Version; |
| 496 | unsigned long NoOfPMKIDs; |
| 497 | unsigned long NoOfAuthEncryptPairsSupported; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 498 | struct rt_ndis_802_11_authentication_encryption |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 499 | AuthenticationEncryptionSupported[1]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 500 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 501 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 502 | #define RT_PRIV_IOCTL (SIOCIWFIRSTPRIV + 0x01) /* Sync. with AP for wsc upnp daemon */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 503 | #define RTPRIV_IOCTL_SET (SIOCIWFIRSTPRIV + 0x02) |
| 504 | |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 505 | #define RTPRIV_IOCTL_STATISTICS (SIOCIWFIRSTPRIV + 0x09) |
| 506 | #define RTPRIV_IOCTL_ADD_PMKID_CACHE (SIOCIWFIRSTPRIV + 0x0A) |
| 507 | #define RTPRIV_IOCTL_RADIUS_DATA (SIOCIWFIRSTPRIV + 0x0C) |
| 508 | #define RTPRIV_IOCTL_GSITESURVEY (SIOCIWFIRSTPRIV + 0x0D) |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 509 | #define RT_PRIV_IOCTL_EXT (SIOCIWFIRSTPRIV + 0x0E) /* Sync. with RT61 (for wpa_supplicant) */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 510 | #define RTPRIV_IOCTL_GET_MAC_TABLE (SIOCIWFIRSTPRIV + 0x0F) |
| 511 | |
| 512 | #define RTPRIV_IOCTL_SHOW (SIOCIWFIRSTPRIV + 0x11) |
| 513 | enum { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 514 | SHOW_CONN_STATUS = 4, |
| 515 | SHOW_DRVIER_VERION = 5, |
| 516 | SHOW_BA_INFO = 6, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 517 | SHOW_DESC_INFO = 7, |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 518 | #ifdef RTMP_MAC_USB |
Bartlomiej Zolnierkiewicz | 3a32ed1 | 2009-04-26 16:06:25 +0200 | [diff] [blame] | 519 | SHOW_RXBULK_INFO = 8, |
| 520 | SHOW_TXBULK_INFO = 9, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 521 | #endif /* RTMP_MAC_USB // */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 522 | RAIO_OFF = 10, |
| 523 | RAIO_ON = 11, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 524 | SHOW_CFG_VALUE = 20, |
Bartlomiej Zolnierkiewicz | 3a32ed1 | 2009-04-26 16:06:25 +0200 | [diff] [blame] | 525 | SHOW_ADHOC_ENTRY_INFO = 21, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 526 | }; |
| 527 | |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 528 | #define OID_802_11_BUILD_CHANNEL_EX 0x0714 |
| 529 | #define OID_802_11_GET_CH_LIST 0x0715 |
| 530 | #define OID_802_11_GET_COUNTRY_CODE 0x0716 |
| 531 | #define OID_802_11_GET_CHANNEL_GEOGRAPHY 0x0717 |
| 532 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 533 | #define RT_OID_WSC_SET_PASSPHRASE 0x0740 /* passphrase for wpa(2)-psk */ |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 534 | #define RT_OID_WSC_DRIVER_AUTO_CONNECT 0x0741 |
| 535 | #define RT_OID_WSC_QUERY_DEFAULT_PROFILE 0x0742 |
| 536 | #define RT_OID_WSC_SET_CONN_BY_PROFILE_INDEX 0x0743 |
| 537 | #define RT_OID_WSC_SET_ACTION 0x0744 |
| 538 | #define RT_OID_WSC_SET_SSID 0x0745 |
| 539 | #define RT_OID_WSC_SET_PIN_CODE 0x0746 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 540 | #define RT_OID_WSC_SET_MODE 0x0747 /* PIN or PBC */ |
| 541 | #define RT_OID_WSC_SET_CONF_MODE 0x0748 /* Enrollee or Registrar */ |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 542 | #define RT_OID_WSC_SET_PROFILE 0x0749 |
| 543 | #define RT_OID_WSC_CONFIG_STATUS 0x074F |
| 544 | #define RT_OID_802_11_WSC_QUERY_PROFILE 0x0750 |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 545 | /* for consistency with RT61 */ |
Bartlomiej Zolnierkiewicz | ca97b83 | 2009-09-22 20:44:07 +0200 | [diff] [blame] | 546 | #define RT_OID_WSC_QUERY_STATUS 0x0751 |
| 547 | #define RT_OID_WSC_PIN_CODE 0x0752 |
| 548 | #define RT_OID_WSC_UUID 0x0753 |
| 549 | #define RT_OID_WSC_SET_SELECTED_REGISTRAR 0x0754 |
| 550 | #define RT_OID_WSC_EAPMSG 0x0755 |
| 551 | #define RT_OID_WSC_MANUFACTURER 0x0756 |
| 552 | #define RT_OID_WSC_MODEL_NAME 0x0757 |
| 553 | #define RT_OID_WSC_MODEL_NO 0x0758 |
| 554 | #define RT_OID_WSC_SERIAL_NO 0x0759 |
| 555 | #define RT_OID_WSC_MAC_ADDRESS 0x0760 |
| 556 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 557 | /* New for MeetingHouse Api support */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 558 | #define OID_MH_802_1X_SUPPORTED 0xFFEDC100 |
| 559 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 560 | /* MIMO Tx parameter, ShortGI, MCS, STBC, etc. these are fields in TXWI. Don't change this definition!!! */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 561 | typedef union _HTTRANSMIT_SETTING { |
| 562 | struct { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 563 | u16 MCS:7; /* MCS */ |
| 564 | u16 BW:1; /*channel bandwidth 20MHz or 40 MHz */ |
| 565 | u16 ShortGI:1; |
| 566 | u16 STBC:2; /*SPACE */ |
| 567 | /* u16 rsv:3; */ |
| 568 | u16 rsv:2; |
| 569 | u16 TxBF:1; |
| 570 | u16 MODE:2; /* Use definition MODE_xxx. */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 571 | } field; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 572 | u16 word; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 573 | } HTTRANSMIT_SETTING, *PHTTRANSMIT_SETTING; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 574 | |
| 575 | typedef enum _RT_802_11_PREAMBLE { |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 576 | Rt802_11PreambleLong, |
| 577 | Rt802_11PreambleShort, |
| 578 | Rt802_11PreambleAuto |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 579 | } RT_802_11_PREAMBLE, *PRT_802_11_PREAMBLE; |
| 580 | |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 581 | typedef enum _RT_802_11_PHY_MODE { |
| 582 | PHY_11BG_MIXED = 0, |
| 583 | PHY_11B, |
| 584 | PHY_11A, |
| 585 | PHY_11ABG_MIXED, |
| 586 | PHY_11G, |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 587 | PHY_11ABGN_MIXED, /* both band 5 */ |
| 588 | PHY_11N_2_4G, /* 11n-only with 2.4G band 6 */ |
| 589 | PHY_11GN_MIXED, /* 2.4G band 7 */ |
| 590 | PHY_11AN_MIXED, /* 5G band 8 */ |
| 591 | PHY_11BGN_MIXED, /* if check 802.11b. 9 */ |
| 592 | PHY_11AGN_MIXED, /* if check 802.11b. 10 */ |
| 593 | PHY_11N_5G, /* 11n-only with 5G band 11 */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 594 | } RT_802_11_PHY_MODE; |
| 595 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 596 | /* put all proprietery for-query objects here to reduce # of Query_OID */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 597 | struct rt_802_11_link_status { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 598 | unsigned long CurrTxRate; /* in units of 0.5Mbps */ |
| 599 | unsigned long ChannelQuality; /* 0..100 % */ |
| 600 | unsigned long TxByteCount; /* both ok and fail */ |
| 601 | unsigned long RxByteCount; /* both ok and fail */ |
| 602 | unsigned long CentralChannel; /* 40MHz central channel number */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 603 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 604 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 605 | struct rt_802_11_event_log { |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 606 | LARGE_INTEGER SystemTime; /* timestammp via NdisGetCurrentSystemTime() */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 607 | u8 Addr[MAC_ADDR_LENGTH]; |
| 608 | u16 Event; /* EVENT_xxx */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 609 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 610 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 611 | struct rt_802_11_event_table { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 612 | unsigned long Num; |
| 613 | unsigned long Rsv; /* to align Log[] at LARGE_INEGER boundary */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 614 | struct rt_802_11_event_log Log[MAX_NUMBER_OF_EVENT]; |
| 615 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 616 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 617 | /* MIMO Tx parameter, ShortGI, MCS, STBC, etc. these are fields in TXWI. Don't change this definition!!! */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 618 | typedef union _MACHTTRANSMIT_SETTING { |
| 619 | struct { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 620 | u16 MCS:7; /* MCS */ |
| 621 | u16 BW:1; /*channel bandwidth 20MHz or 40 MHz */ |
| 622 | u16 ShortGI:1; |
| 623 | u16 STBC:2; /*SPACE */ |
| 624 | u16 rsv:3; |
| 625 | u16 MODE:2; /* Use definition MODE_xxx. */ |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 626 | } field; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 627 | u16 word; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 628 | } MACHTTRANSMIT_SETTING, *PMACHTTRANSMIT_SETTING; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 629 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 630 | struct rt_802_11_mac_entry { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 631 | u8 Addr[MAC_ADDR_LENGTH]; |
| 632 | u8 Aid; |
| 633 | u8 Psm; /* 0:PWR_ACTIVE, 1:PWR_SAVE */ |
| 634 | u8 MimoPs; /* 0:MMPS_STATIC, 1:MMPS_DYNAMIC, 3:MMPS_Enabled */ |
| 635 | char AvgRssi0; |
| 636 | char AvgRssi1; |
| 637 | char AvgRssi2; |
| 638 | u32 ConnectedTime; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 639 | MACHTTRANSMIT_SETTING TxRate; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 640 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 641 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 642 | struct rt_802_11_mac_table { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 643 | unsigned long Num; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 644 | struct rt_802_11_mac_entry Entry[MAX_NUMBER_OF_MAC]; |
| 645 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 646 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 647 | /* structure for query/set hardware register - MAC, BBP, RF register */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 648 | struct rt_802_11_hardware_register { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 649 | unsigned long HardwareType; /* 0:MAC, 1:BBP, 2:RF register, 3:EEPROM */ |
| 650 | unsigned long Offset; /* Q/S register offset addr */ |
| 651 | unsigned long Data; /* R/W data buffer */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 652 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 653 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 654 | struct rt_802_11_ap_config { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 655 | unsigned long EnableTxBurst; /* 0-disable, 1-enable */ |
| 656 | unsigned long EnableTurboRate; /* 0-disable, 1-enable 72/100mbps turbo rate */ |
| 657 | unsigned long IsolateInterStaTraffic; /* 0-disable, 1-enable isolation */ |
| 658 | unsigned long HideSsid; /* 0-disable, 1-enable hiding */ |
| 659 | unsigned long UseBGProtection; /* 0-AUTO, 1-always ON, 2-always OFF */ |
| 660 | unsigned long UseShortSlotTime; /* 0-no use, 1-use 9-us short slot time */ |
| 661 | unsigned long Rsv1; /* must be 0 */ |
| 662 | unsigned long SystemErrorBitmap; /* ignore upon SET, return system error upon QUERY */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 663 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 664 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 665 | /* structure to query/set STA_CONFIG */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 666 | struct rt_802_11_sta_config { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 667 | unsigned long EnableTxBurst; /* 0-disable, 1-enable */ |
| 668 | unsigned long EnableTurboRate; /* 0-disable, 1-enable 72/100mbps turbo rate */ |
| 669 | unsigned long UseBGProtection; /* 0-AUTO, 1-always ON, 2-always OFF */ |
| 670 | unsigned long UseShortSlotTime; /* 0-no use, 1-use 9-us short slot time when applicable */ |
| 671 | unsigned long AdhocMode; /* 0-11b rates only (WIFI spec), 1 - b/g mixed, 2 - g only */ |
| 672 | unsigned long HwRadioStatus; /* 0-OFF, 1-ON, default is 1, Read-Only */ |
| 673 | unsigned long Rsv1; /* must be 0 */ |
| 674 | unsigned long SystemErrorBitmap; /* ignore upon SET, return system error upon QUERY */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 675 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 676 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 677 | /* */ |
| 678 | /* For OID Query or Set about BA structure */ |
| 679 | /* */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 680 | struct rt_oid_bacap { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 681 | u8 RxBAWinLimit; |
| 682 | u8 TxBAWinLimit; |
| 683 | u8 Policy; /* 0: DELAY_BA 1:IMMED_BA (//BA Policy subfiled value in ADDBA frame) 2:BA-not use. other value invalid */ |
| 684 | u8 MpduDensity; /* 0: DELAY_BA 1:IMMED_BA (//BA Policy subfiled value in ADDBA frame) 2:BA-not use. other value invalid */ |
| 685 | u8 AmsduEnable; /*Enable AMSDU transmisstion */ |
| 686 | u8 AmsduSize; /* 0:3839, 1:7935 bytes. u32 MSDUSizeToBytes[] = { 3839, 7935}; */ |
| 687 | u8 MMPSmode; /* MIMO power save more, 0:static, 1:dynamic, 2:rsv, 3:mimo enable */ |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 688 | BOOLEAN AutoBA; /* Auto BA will automatically */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 689 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 690 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 691 | struct rt_802_11_acl_entry { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 692 | u8 Addr[MAC_ADDR_LENGTH]; |
| 693 | u16 Rsv; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 694 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 695 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 696 | struct PACKED rt_rt_802_11_acl { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 697 | unsigned long Policy; /* 0-disable, 1-positive list, 2-negative list */ |
| 698 | unsigned long Num; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 699 | struct rt_802_11_acl_entry Entry[MAX_NUMBER_OF_ACL]; |
| 700 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 701 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 702 | struct rt_802_11_wds { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 703 | unsigned long Num; |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 704 | NDIS_802_11_MAC_ADDRESS Entry[24 /*MAX_NUM_OF_WDS_LINK */ ]; |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 705 | unsigned long KeyLength; |
| 706 | u8 KeyMaterial[32]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 707 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 708 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 709 | struct rt_802_11_tx_rates { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 710 | u8 SupRateLen; |
| 711 | u8 SupRate[MAX_LENGTH_OF_SUPPORT_RATES]; |
| 712 | u8 ExtRateLen; |
| 713 | u8 ExtRate[MAX_LENGTH_OF_SUPPORT_RATES]; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 714 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 715 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 716 | /* Definition of extra information code */ |
| 717 | #define GENERAL_LINK_UP 0x0 /* Link is Up */ |
| 718 | #define GENERAL_LINK_DOWN 0x1 /* Link is Down */ |
| 719 | #define HW_RADIO_OFF 0x2 /* Hardware radio off */ |
| 720 | #define SW_RADIO_OFF 0x3 /* Software radio off */ |
| 721 | #define AUTH_FAIL 0x4 /* Open authentication fail */ |
| 722 | #define AUTH_FAIL_KEYS 0x5 /* Shared authentication fail */ |
| 723 | #define ASSOC_FAIL 0x6 /* Association failed */ |
| 724 | #define EAP_MIC_FAILURE 0x7 /* Deauthencation because MIC failure */ |
| 725 | #define EAP_4WAY_TIMEOUT 0x8 /* Deauthencation on 4-way handshake timeout */ |
| 726 | #define EAP_GROUP_KEY_TIMEOUT 0x9 /* Deauthencation on group key handshake timeout */ |
| 727 | #define EAP_SUCCESS 0xa /* EAP succeed */ |
| 728 | #define DETECT_RADAR_SIGNAL 0xb /* Radar signal occur in current channel */ |
| 729 | #define EXTRA_INFO_MAX 0xb /* Indicate Last OID */ |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 730 | |
| 731 | #define EXTRA_INFO_CLEAR 0xffffffff |
| 732 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 733 | /* This is OID setting structure. So only GF or MM as Mode. This is valid when our wirelss mode has 802.11n in use. */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 734 | struct rt_oid_set_ht_phymode { |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 735 | RT_802_11_PHY_MODE PhyMode; /* */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 736 | u8 TransmitNo; |
| 737 | u8 HtMode; /*HTMODE_GF or HTMODE_MM */ |
| 738 | u8 ExtOffset; /*extension channel above or below */ |
| 739 | u8 MCS; |
| 740 | u8 BW; |
| 741 | u8 STBC; |
| 742 | u8 SHORTGI; |
| 743 | u8 rsv; |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 744 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 745 | |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 746 | #define MAX_CUSTOM_LEN 128 |
| 747 | |
Bartlomiej Zolnierkiewicz | 52b81c8 | 2009-12-11 12:23:14 -0800 | [diff] [blame] | 748 | typedef enum _RT_802_11_D_CLIENT_MODE { |
| 749 | Rt802_11_D_None, |
| 750 | Rt802_11_D_Flexible, |
| 751 | Rt802_11_D_Strict, |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 752 | } RT_802_11_D_CLIENT_MODE, *PRT_802_11_D_CLIENT_MODE; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 753 | |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 754 | struct rt_channel_list_info { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 755 | u8 ChannelList[MAX_NUM_OF_CHS]; /* list all supported channels for site survey */ |
| 756 | u8 ChannelListNum; /* number of channel in ChannelList[] */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 757 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 758 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 759 | /* WSC configured credential */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 760 | struct rt_wsc_credential { |
| 761 | struct rt_ndis_802_11_ssid SSID; /* mandatory */ |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 762 | u16 AuthType; /* mandatory, 1: open, 2: wpa-psk, 4: shared, 8:wpa, 0x10: wpa2, 0x20: wpa2-psk */ |
| 763 | u16 EncrType; /* mandatory, 1: none, 2: wep, 4: tkip, 8: aes */ |
| 764 | u8 Key[64]; /* mandatory, Maximum 64 byte */ |
| 765 | u16 KeyLength; |
| 766 | u8 MacAddr[6]; /* mandatory, AP MAC address */ |
| 767 | u8 KeyIndex; /* optional, default is 1 */ |
| 768 | u8 Rsvd[3]; /* Make alignment */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 769 | }; |
Bartlomiej Zolnierkiewicz | 3a32ed1 | 2009-04-26 16:06:25 +0200 | [diff] [blame] | 770 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 771 | /* WSC configured profiles */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 772 | struct rt_wsc_profile { |
Bartlomiej Zolnierkiewicz | 51126de | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 773 | u32 ProfileCnt; |
| 774 | u32 ApplyProfileIdx; /* add by johnli, fix WPS test plan 5.1.1 */ |
Bartlomiej Zolnierkiewicz | 62eb734 | 2009-12-11 12:23:16 -0800 | [diff] [blame] | 775 | struct rt_wsc_credential Profile[8]; /* Support up to 8 profiles */ |
| 776 | }; |
Greg Kroah-Hartman | 9198099 | 2008-10-28 14:48:09 -0700 | [diff] [blame] | 777 | |
Bartlomiej Zolnierkiewicz | cc27706 | 2009-12-11 12:23:15 -0800 | [diff] [blame] | 778 | #endif /* _OID_H_ */ |