source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/windot11.h@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 115.6 KB
Line 
1/**
2* This file is part of the mingw-w64 runtime package.
3* No warranty is given; refer to the file DISCLAIMER within this package.
4*/
5
6#ifndef __WINDOT11_H__
7#define __WINDOT11_H__
8
9#include <winapifamily.h>
10
11#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
12
13#ifndef _NTDDNDIS_
14#include <ntddndis.h>
15#endif
16
17#include <wlantypes.h>
18
19#if NTDDI_VERSION >= 0x06010000 || NDIS_SUPPORT_NDIS620
20#define NWF_EXTAP_SUPPORTED 1
21#define NWF_VWIFI_SUPPORTED 1
22#endif
23
24#if NTDDI_VERSION >= 0x06020000 || NDIS_SUPPORT_NDIS630
25#define NWF_WFD_SUPPORTED 1
26#define NWF_POWER_SAVE_SUPPORTED 1
27#endif
28
29#define DOT11_RATE_SET_MAX_LENGTH 126
30
31#define DOT11_BSSID_LIST_REVISION_1 1
32
33#ifdef __WIDL__
34typedef struct _DOT11_MAC_ADDRESS {
35 UCHAR ucDot11MacAddress[6];
36} DOT11_MAC_ADDRESS, *PDOT11_MAC_ADDRESS;
37#else
38typedef UCHAR DOT11_MAC_ADDRESS[6];
39typedef DOT11_MAC_ADDRESS *PDOT11_MAC_ADDRESS;
40#endif
41
42typedef struct DOT11_BSSID_LIST {
43 NDIS_OBJECT_HEADER Header;
44 ULONG uNumOfEntries;
45 ULONG uTotalNumOfEntries;
46#ifdef __WIDL__
47 [unique, size_is (uTotalNumOfEntries)] DOT11_MAC_ADDRESS BSSIDs[*];
48#else
49 DOT11_MAC_ADDRESS BSSIDs[1];
50#endif
51} DOT11_BSSID_LIST, *PDOT11_BSSID_LIST;
52
53typedef
54#ifdef __WIDL__
55 [v1_enum]
56#endif
57enum _DOT11_PHY_TYPE {
58 dot11_phy_type_unknown = 0,
59 dot11_phy_type_any = dot11_phy_type_unknown,
60 dot11_phy_type_fhss = 1,
61 dot11_phy_type_dsss = 2,
62 dot11_phy_type_irbaseband = 3,
63 dot11_phy_type_ofdm = 4,
64 dot11_phy_type_hrdsss = 5,
65 dot11_phy_type_erp = 6,
66 dot11_phy_type_ht = 7,
67 dot11_phy_type_IHV_start = 0x80000000,
68 dot11_phy_type_IHV_end = 0xffffffff
69} DOT11_PHY_TYPE, *PDOT11_PHY_TYPE;
70
71typedef struct _DOT11_RATE_SET {
72 ULONG uRateSetLength;
73 UCHAR ucRateSet[DOT11_RATE_SET_MAX_LENGTH];
74} DOT11_RATE_SET, *PDOT11_RATE_SET;
75
76typedef UCHAR DOT11_COUNTRY_OR_REGION_STRING[3];
77typedef DOT11_COUNTRY_OR_REGION_STRING *PDOT11_COUNTRY_OR_REGION_STRING;
78typedef UCHAR DOT11_DIALOG_TOKEN;
79typedef UCHAR DOT11_WFD_STATUS_CODE;
80typedef UCHAR DOT11_WFD_MINOR_REASON_CODE;
81
82#if NTDDI_VERSION >= 0x06000000
83#define NDIS_PACKET_TYPE_MEDIA_SPECIFIC_MASK (0x0fff0000U)
84
85#define NDIS_PACKET_TYPE_802_11_DIRECTED_DATA NDIS_PACKET_TYPE_DIRECTED
86#define NDIS_PACKET_TYPE_802_11_BROADCAST_DATA NDIS_PACKET_TYPE_BROADCAST
87#define NDIS_PACKET_TYPE_802_11_MULTICAST_DATA NDIS_PACKET_TYPE_MULTICAST
88#define NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_DATA NDIS_PACKET_TYPE_ALL_MULTICAST
89#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_DATA NDIS_PACKET_TYPE_PROMISCUOUS
90#define NDIS_PACKET_TYPE_802_11_RAW_DATA (0x00010000U)
91#define NDIS_PACKET_TYPE_802_11_DIRECTED_MGMT (0x00020000U)
92#define NDIS_PACKET_TYPE_802_11_BROADCAST_MGMT (0x00040000U)
93#define NDIS_PACKET_TYPE_802_11_MULTICAST_MGMT (0x00080000U)
94#define NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_MGMT (0x00100000U)
95#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT (0x00200000U)
96#define NDIS_PACKET_TYPE_802_11_RAW_MGMT (0x00400000U)
97#define NDIS_PACKET_TYPE_802_11_DIRECTED_CTRL (0x00800000U)
98#define NDIS_PACKET_TYPE_802_11_BROADCAST_CTRL (0x01000000U)
99#define NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL (0x02000000U)
100
101#define NDIS_PACKET_TYPE_ALL_802_11_FILTERS (NDIS_PACKET_TYPE_DIRECTED | NDIS_PACKET_TYPE_MULTICAST | NDIS_PACKET_TYPE_ALL_MULTICAST | NDIS_PACKET_TYPE_BROADCAST | NDIS_PACKET_TYPE_PROMISCUOUS | NDIS_PACKET_TYPE_802_11_RAW_DATA | NDIS_PACKET_TYPE_802_11_DIRECTED_MGMT | NDIS_PACKET_TYPE_802_11_BROADCAST_MGMT | NDIS_PACKET_TYPE_802_11_MULTICAST_MGMT | NDIS_PACKET_TYPE_802_11_ALL_MULTICAST_MGMT | NDIS_PACKET_TYPE_802_11_PROMISCUOUS_MGMT | NDIS_PACKET_TYPE_802_11_RAW_MGMT | NDIS_PACKET_TYPE_802_11_DIRECTED_CTRL | NDIS_PACKET_TYPE_802_11_BROADCAST_CTRL | NDIS_PACKET_TYPE_802_11_PROMISCUOUS_CTRL)
102
103#define DOT11_MAX_PDU_SIZE 2346
104#define DOT11_MIN_PDU_SIZE (256)
105
106#define DOT11_MAX_NUM_DEFAULT_KEY 4
107#if NTDDI_VERSION >= 0x06020000 || NDIS_SUPPORT_NDIS630
108#define DOT11_MAX_NUM_DEFAULT_KEY_MFP DOT11_MAX_NUM_DEFAULT_KEY + 2
109#endif
110
111#define OID_DOT11_NDIS_START 0x0d010300
112
113#define NWF_MANDATORY_OID (0x01U)
114#define NWF_OPTIONAL_OID (0x02U)
115
116#define NWF_OPERATIONAL_OID (0x01U)
117#define NWF_STATISTICS_OID (0x02U)
118
119#define NWF_DEFINE_OID(Seq, o, m) ((0x0e000000U) | ((o) << 16) | ((m) << 8) | (Seq))
120
121#define OID_DOT11_OFFLOAD_CAPABILITY (OID_DOT11_NDIS_START + 0)
122
123#define DOT11_HW_WEP_SUPPORTED_TX 0x00000001
124#define DOT11_HW_WEP_SUPPORTED_RX 0x00000002
125#define DOT11_HW_FRAGMENTATION_SUPPORTED 0x00000004
126#define DOT11_HW_DEFRAGMENTATION_SUPPORTED 0x00000008
127#define DOT11_HW_MSDU_AUTH_SUPPORTED_TX 0x00000010
128#define DOT11_HW_MSDU_AUTH_SUPPORTED_RX 0x00000020
129
130#define DOT11_CONF_ALGO_WEP_RC4 0x00000001
131#define DOT11_CONF_ALGO_TKIP 0x00000002
132
133#define DOT11_AUTH_ALGO_MICHAEL 0x00000001
134
135#define DOT11_OPERATION_MODE_UNKNOWN 0x00000000
136#define DOT11_OPERATION_MODE_STATION 0x00000001
137#define DOT11_OPERATION_MODE_AP 0x00000002
138#define DOT11_OPERATION_MODE_EXTENSIBLE_STATION 0x00000004
139#define DOT11_OPERATION_MODE_EXTENSIBLE_AP 0x00000008
140#define DOT11_OPERATION_MODE_WFD_DEVICE 0x00000010
141#define DOT11_OPERATION_MODE_WFD_GROUP_OWNER 0x00000020
142#define DOT11_OPERATION_MODE_WFD_CLIENT 0x00000040
143#define DOT11_OPERATION_MODE_MANUFACTURING 0x40000000
144#define DOT11_OPERATION_MODE_NETWORK_MONITOR 0x80000000
145
146#define DOT11_PACKET_TYPE_DIRECTED_CTRL 0x00000001
147#define DOT11_PACKET_TYPE_DIRECTED_MGMT 0x00000002
148#define DOT11_PACKET_TYPE_DIRECTED_DATA 0x00000004
149#define DOT11_PACKET_TYPE_MULTICAST_CTRL 0x00000008
150#define DOT11_PACKET_TYPE_MULTICAST_MGMT 0x00000010
151#define DOT11_PACKET_TYPE_MULTICAST_DATA 0x00000020
152#define DOT11_PACKET_TYPE_BROADCAST_CTRL 0x00000040
153#define DOT11_PACKET_TYPE_BROADCAST_MGMT 0x00000080
154#define DOT11_PACKET_TYPE_BROADCAST_DATA 0x00000100
155#define DOT11_PACKET_TYPE_PROMISCUOUS_CTRL 0x00000200
156#define DOT11_PACKET_TYPE_PROMISCUOUS_MGMT 0x00000400
157#define DOT11_PACKET_TYPE_PROMISCUOUS_DATA 0x00000800
158#define DOT11_PACKET_TYPE_ALL_MULTICAST_CTRL 0x00001000
159#define DOT11_PACKET_TYPE_ALL_MULTICAST_MGMT 0x00002000
160#define DOT11_PACKET_TYPE_ALL_MULTICAST_DATA 0x00004000
161
162#define DOT11_PACKET_TYPE_RESERVED (~ (DOT11_PACKET_TYPE_DIRECTED_CTRL | DOT11_PACKET_TYPE_DIRECTED_MGMT | DOT11_PACKET_TYPE_DIRECTED_DATA | DOT11_PACKET_TYPE_MULTICAST_CTRL | DOT11_PACKET_TYPE_MULTICAST_MGMT | DOT11_PACKET_TYPE_MULTICAST_DATA | DOT11_PACKET_TYPE_BROADCAST_CTRL | DOT11_PACKET_TYPE_BROADCAST_MGMT | DOT11_PACKET_TYPE_BROADCAST_DATA | DOT11_PACKET_TYPE_PROMISCUOUS_CTRL | DOT11_PACKET_TYPE_PROMISCUOUS_MGMT | DOT11_PACKET_TYPE_PROMISCUOUS_DATA | DOT11_PACKET_TYPE_ALL_MULTICAST_CTRL | DOT11_PACKET_TYPE_ALL_MULTICAST_MGMT | DOT11_PACKET_TYPE_ALL_MULTICAST_DATA | 0))
163
164#define OID_DOT11_CURRENT_OFFLOAD_CAPABILITY (OID_DOT11_NDIS_START + 1)
165#define OID_DOT11_WEP_OFFLOAD (OID_DOT11_NDIS_START + 2)
166#define OID_DOT11_WEP_UPLOAD (OID_DOT11_NDIS_START + 3)
167#define OID_DOT11_DEFAULT_WEP_OFFLOAD (OID_DOT11_NDIS_START + 4)
168#define OID_DOT11_DEFAULT_WEP_UPLOAD (OID_DOT11_NDIS_START + 5)
169#define OID_DOT11_MPDU_MAX_LENGTH (OID_DOT11_NDIS_START + 6)
170#define OID_DOT11_OPERATION_MODE_CAPABILITY (OID_DOT11_NDIS_START + 7)
171#define OID_DOT11_CURRENT_OPERATION_MODE (OID_DOT11_NDIS_START + 8)
172#define OID_DOT11_CURRENT_PACKET_FILTER (OID_DOT11_NDIS_START + 9)
173
174typedef struct _DOT11_OFFLOAD_CAPABILITY {
175 ULONG uReserved;
176 ULONG uFlags;
177 ULONG uSupportedWEPAlgorithms;
178 ULONG uNumOfReplayWindows;
179 ULONG uMaxWEPKeyMappingLength;
180 ULONG uSupportedAuthAlgorithms;
181 ULONG uMaxAuthKeyMappingLength;
182} DOT11_OFFLOAD_CAPABILITY, *PDOT11_OFFLOAD_CAPABILITY;
183
184typedef struct _DOT11_CURRENT_OFFLOAD_CAPABILITY {
185 ULONG uReserved;
186 ULONG uFlags;
187} DOT11_CURRENT_OFFLOAD_CAPABILITY, *PDOT11_CURRENT_OFFLOAD_CAPABILITY;
188
189typedef enum _DOT11_OFFLOAD_TYPE {
190 dot11_offload_type_wep = 1,
191 dot11_offload_type_auth = 2
192} DOT11_OFFLOAD_TYPE, *PDOT11_OFFLOAD_TYPE;
193
194typedef struct _DOT11_IV48_COUNTER {
195 ULONG uIV32Counter;
196 USHORT usIV16Counter;
197} DOT11_IV48_COUNTER, *PDOT11_IV48_COUNTER;
198
199typedef struct _DOT11_WEP_OFFLOAD {
200 ULONG uReserved;
201 HANDLE hOffloadContext;
202 HANDLE hOffload;
203 DOT11_OFFLOAD_TYPE dot11OffloadType;
204 ULONG dwAlgorithm;
205 BOOLEAN bRowIsOutbound;
206 BOOLEAN bUseDefault;
207 ULONG uFlags;
208 UCHAR ucMacAddress[6];
209 ULONG uNumOfRWsOnPeer;
210 ULONG uNumOfRWsOnMe;
211 DOT11_IV48_COUNTER dot11IV48Counters[16];
212 USHORT usDot11RWBitMaps[16];
213 USHORT usKeyLength;
214 UCHAR ucKey[1];
215} DOT11_WEP_OFFLOAD, *PDOT11_WEP_OFFLOAD;
216
217typedef struct _DOT11_WEP_UPLOAD {
218 ULONG uReserved;
219 DOT11_OFFLOAD_TYPE dot11OffloadType;
220 HANDLE hOffload;
221 ULONG uNumOfRWsUsed;
222 DOT11_IV48_COUNTER dot11IV48Counters[16];
223 USHORT usDot11RWBitMaps[16];
224} DOT11_WEP_UPLOAD, *PDOT11_WEP_UPLOAD;
225
226typedef enum _DOT11_KEY_DIRECTION {
227 dot11_key_direction_both = 1,
228 dot11_key_direction_inbound = 2,
229 dot11_key_direction_outbound = 3
230} DOT11_KEY_DIRECTION, *PDOT11_KEY_DIRECTION;
231
232typedef struct _DOT11_DEFAULT_WEP_OFFLOAD {
233 ULONG uReserved;
234 HANDLE hOffloadContext;
235 HANDLE hOffload;
236 ULONG dwIndex;
237 DOT11_OFFLOAD_TYPE dot11OffloadType;
238 ULONG dwAlgorithm;
239 ULONG uFlags;
240 DOT11_KEY_DIRECTION dot11KeyDirection;
241 UCHAR ucMacAddress[6];
242 ULONG uNumOfRWsOnMe;
243 DOT11_IV48_COUNTER dot11IV48Counters[16];
244 USHORT usDot11RWBitMaps[16];
245 USHORT usKeyLength;
246 UCHAR ucKey[1];
247} DOT11_DEFAULT_WEP_OFFLOAD, *PDOT11_DEFAULT_WEP_OFFLOAD;
248
249typedef struct _DOT11_DEFAULT_WEP_UPLOAD {
250 ULONG uReserved;
251 DOT11_OFFLOAD_TYPE dot11OffloadType;
252 HANDLE hOffload;
253 ULONG uNumOfRWsUsed;
254 DOT11_IV48_COUNTER dot11IV48Counters[16];
255 USHORT usDot11RWBitMaps[16];
256} DOT11_DEFAULT_WEP_UPLOAD, *PDOT11_DEFAULT_WEP_UPLOAD;
257
258typedef struct _DOT11_OPERATION_MODE_CAPABILITY {
259 ULONG uReserved;
260 ULONG uMajorVersion;
261 ULONG uMinorVersion;
262 ULONG uNumOfTXBuffers;
263 ULONG uNumOfRXBuffers;
264 ULONG uOpModeCapability;
265} DOT11_OPERATION_MODE_CAPABILITY, *PDOT11_OPERATION_MODE_CAPABILITY;
266
267typedef struct _DOT11_CURRENT_OPERATION_MODE {
268 ULONG uReserved;
269 ULONG uCurrentOpMode;
270} DOT11_CURRENT_OPERATION_MODE, *PDOT11_CURRENT_OPERATION_MODE;
271
272typedef enum _DOT11_SCAN_TYPE {
273 dot11_scan_type_active = 1,
274 dot11_scan_type_passive = 2,
275 dot11_scan_type_auto = 3,
276 dot11_scan_type_forced = 0x80000000
277} DOT11_SCAN_TYPE, *PDOT11_SCAN_TYPE;
278
279typedef struct _DOT11_SCAN_REQUEST {
280 DOT11_BSS_TYPE dot11BSSType;
281 DOT11_MAC_ADDRESS dot11BSSID;
282 DOT11_SSID dot11SSID;
283 DOT11_SCAN_TYPE dot11ScanType;
284 BOOLEAN bRestrictedScan;
285 BOOLEAN bUseRequestIE;
286 ULONG uRequestIDsOffset;
287 ULONG uNumOfRequestIDs;
288 ULONG uPhyTypesOffset;
289 ULONG uNumOfPhyTypes;
290 ULONG uIEsOffset;
291 ULONG uIEsLength;
292 UCHAR ucBuffer[1];
293} DOT11_SCAN_REQUEST, *PDOT11_SCAN_REQUEST;
294
295typedef enum _CH_DESCRIPTION_TYPE {
296 ch_description_type_logical = 1,
297 ch_description_type_center_frequency = 2,
298 ch_description_type_phy_specific
299} CH_DESCRIPTION_TYPE, *PCH_DESCRIPTION_TYPE;
300
301typedef struct _DOT11_PHY_TYPE_INFO {
302 DOT11_PHY_TYPE dot11PhyType;
303 BOOLEAN bUseParameters;
304 ULONG uProbeDelay;
305 ULONG uMinChannelTime;
306 ULONG uMaxChannelTime;
307 CH_DESCRIPTION_TYPE ChDescriptionType;
308 ULONG uChannelListSize;
309 UCHAR ucChannelListBuffer[1];
310} DOT11_PHY_TYPE_INFO, *PDOT11_PHY_TYPE_INFO;
311
312typedef struct _DOT11_SCAN_REQUEST_V2 {
313 DOT11_BSS_TYPE dot11BSSType;
314 DOT11_MAC_ADDRESS dot11BSSID;
315 DOT11_SCAN_TYPE dot11ScanType;
316 BOOLEAN bRestrictedScan;
317 ULONG udot11SSIDsOffset;
318 ULONG uNumOfdot11SSIDs;
319 BOOLEAN bUseRequestIE;
320 ULONG uRequestIDsOffset;
321 ULONG uNumOfRequestIDs;
322 ULONG uPhyTypeInfosOffset;
323 ULONG uNumOfPhyTypeInfos;
324 ULONG uIEsOffset;
325 ULONG uIEsLength;
326 UCHAR ucBuffer[1];
327} DOT11_SCAN_REQUEST_V2, *PDOT11_SCAN_REQUEST_V2;
328
329typedef struct DOT11_PHY_TYPE_LIST {
330 NDIS_OBJECT_HEADER Header;
331 ULONG uNumOfEntries;
332 ULONG uTotalNumOfEntries;
333 DOT11_PHY_TYPE dot11PhyType[1];
334} DOT11_PHY_TYPE_LIST, *PDOT11_PHY_TYPE_LIST;
335
336#define DOT11_PHY_TYPE_LIST_REVISION_1 1
337
338#define DOT11_CAPABILITY_INFO_ESS 0x0001
339#define DOT11_CAPABILITY_INFO_IBSS 0x0002
340#define DOT11_CAPABILITY_INFO_CF_POLLABLE 0x0004
341#define DOT11_CAPABILITY_INFO_CF_POLL_REQ 0x0008
342#define DOT11_CAPABILITY_INFO_PRIVACY 0x0010
343#define DOT11_CAPABILITY_SHORT_PREAMBLE 0x0020
344#define DOT11_CAPABILITY_PBCC 0x0040
345#define DOT11_CAPABILITY_CHANNEL_AGILITY 0x0080
346#define DOT11_CAPABILITY_SHORT_SLOT_TIME 0x0400
347#define DOT11_CAPABILITY_DSSSOFDM 0x2000
348
349#define OID_DOT11_ATIM_WINDOW (OID_DOT11_NDIS_START + 10)
350#define OID_DOT11_SCAN_REQUEST (OID_DOT11_NDIS_START + 11)
351#define OID_DOT11_CURRENT_PHY_TYPE (OID_DOT11_NDIS_START + 12)
352#define OID_DOT11_JOIN_REQUEST (OID_DOT11_NDIS_START + 13)
353#define OID_DOT11_START_REQUEST (OID_DOT11_NDIS_START + 14)
354#define OID_DOT11_UPDATE_IE (OID_DOT11_NDIS_START + 15)
355#define OID_DOT11_RESET_REQUEST (OID_DOT11_NDIS_START + 16)
356
357typedef struct _DOT11_BSS_DESCRIPTION {
358 ULONG uReserved;
359 DOT11_MAC_ADDRESS dot11BSSID;
360 DOT11_BSS_TYPE dot11BSSType;
361 USHORT usBeaconPeriod;
362 ULONGLONG ullTimestamp;
363 USHORT usCapabilityInformation;
364 ULONG uBufferLength;
365#ifdef __WIDL__
366 [unique, size_is (uBufferLength)] UCHAR ucBuffer[*];
367#else
368 UCHAR ucBuffer[1];
369#endif
370} DOT11_BSS_DESCRIPTION, *PDOT11_BSS_DESCRIPTION;
371
372typedef struct _DOT11_JOIN_REQUEST {
373 ULONG uJoinFailureTimeout;
374 DOT11_RATE_SET OperationalRateSet;
375 ULONG uChCenterFrequency;
376 DOT11_BSS_DESCRIPTION dot11BSSDescription;
377} DOT11_JOIN_REQUEST, *PDOT11_JOIN_REQUEST;
378
379typedef struct _DOT11_START_REQUEST {
380 ULONG uStartFailureTimeout;
381 DOT11_RATE_SET OperationalRateSet;
382 ULONG uChCenterFrequency;
383 DOT11_BSS_DESCRIPTION dot11BSSDescription;
384} DOT11_START_REQUEST, *PDOT11_START_REQUEST;
385
386typedef enum _DOT11_UPDATE_IE_OP {
387 dot11_update_ie_op_create_replace = 1,
388 dot11_update_ie_op_delete = 2,
389} DOT11_UPDATE_IE_OP, *PDOT11_UPDATE_IE_OP;
390
391typedef struct _DOT11_UPDATE_IE {
392 DOT11_UPDATE_IE_OP dot11UpdateIEOp;
393 ULONG uBufferLength;
394 UCHAR ucBuffer[1];
395} DOT11_UPDATE_IE, *PDOT11_UPDATE_IE;
396
397typedef enum _DOT11_RESET_TYPE {
398 dot11_reset_type_phy = 1,
399 dot11_reset_type_mac = 2,
400 dot11_reset_type_phy_and_mac = 3
401} DOT11_RESET_TYPE, *PDOT11_RESET_TYPE;
402
403typedef struct _DOT11_RESET_REQUEST {
404 DOT11_RESET_TYPE dot11ResetType;
405 DOT11_MAC_ADDRESS dot11MacAddress;
406 BOOLEAN bSetDefaultMIB;
407} DOT11_RESET_REQUEST, *PDOT11_RESET_REQUEST;
408
409typedef struct _DOT11_OPTIONAL_CAPABILITY {
410 ULONG uReserved;
411 BOOLEAN bDot11PCF;
412 BOOLEAN bDot11PCFMPDUTransferToPC;
413 BOOLEAN bStrictlyOrderedServiceClass;
414} DOT11_OPTIONAL_CAPABILITY, *PDOT11_OPTIONAL_CAPABILITY;
415
416#define OID_DOT11_NIC_POWER_STATE (OID_DOT11_NDIS_START + 17)
417#define OID_DOT11_OPTIONAL_CAPABILITY (OID_DOT11_NDIS_START + 18)
418#define OID_DOT11_CURRENT_OPTIONAL_CAPABILITY (OID_DOT11_NDIS_START + 19)
419#define OID_DOT11_STATION_ID (OID_DOT11_NDIS_START + 20)
420#define OID_DOT11_MEDIUM_OCCUPANCY_LIMIT (OID_DOT11_NDIS_START + 21)
421#define OID_DOT11_CF_POLLABLE (OID_DOT11_NDIS_START + 22)
422#define OID_DOT11_CFP_PERIOD (OID_DOT11_NDIS_START + 23)
423#define OID_DOT11_CFP_MAX_DURATION (OID_DOT11_NDIS_START + 24)
424#define OID_DOT11_POWER_MGMT_MODE (OID_DOT11_NDIS_START + 25)
425#define OID_DOT11_OPERATIONAL_RATE_SET (OID_DOT11_NDIS_START + 26)
426#define OID_DOT11_BEACON_PERIOD (OID_DOT11_NDIS_START + 27)
427#define OID_DOT11_DTIM_PERIOD (OID_DOT11_NDIS_START + 28)
428#define OID_DOT11_WEP_ICV_ERROR_COUNT (OID_DOT11_NDIS_START + 29)
429#define OID_DOT11_MAC_ADDRESS (OID_DOT11_NDIS_START + 30)
430#define OID_DOT11_RTS_THRESHOLD (OID_DOT11_NDIS_START + 31)
431#define OID_DOT11_SHORT_RETRY_LIMIT (OID_DOT11_NDIS_START + 32)
432#define OID_DOT11_LONG_RETRY_LIMIT (OID_DOT11_NDIS_START + 33)
433#define OID_DOT11_FRAGMENTATION_THRESHOLD (OID_DOT11_NDIS_START + 34)
434#define OID_DOT11_MAX_TRANSMIT_MSDU_LIFETIME (OID_DOT11_NDIS_START + 35)
435#define OID_DOT11_MAX_RECEIVE_LIFETIME (OID_DOT11_NDIS_START + 36)
436#define OID_DOT11_COUNTERS_ENTRY (OID_DOT11_NDIS_START + 37)
437
438typedef struct _DOT11_CURRENT_OPTIONAL_CAPABILITY {
439 ULONG uReserved;
440 BOOLEAN bDot11CFPollable;
441 BOOLEAN bDot11PCF;
442 BOOLEAN bDot11PCFMPDUTransferToPC;
443 BOOLEAN bStrictlyOrderedServiceClass;
444} DOT11_CURRENT_OPTIONAL_CAPABILITY, *PDOT11_CURRENT_OPTIONAL_CAPABILITY;
445
446typedef enum _DOT11_POWER_MODE {
447 dot11_power_mode_unknown = 0,
448 dot11_power_mode_active = 1,
449 dot11_power_mode_powersave = 2
450} DOT11_POWER_MODE, *PDOT11_POWER_MODE;
451
452#define DOT11_POWER_SAVE_LEVEL_MAX_PSP 1
453#define DOT11_POWER_SAVE_LEVEL_FAST_PSP 2
454
455typedef struct _DOT11_POWER_MGMT_MODE {
456 DOT11_POWER_MODE dot11PowerMode;
457 ULONG uPowerSaveLevel;
458 USHORT usListenInterval;
459 USHORT usAID;
460 BOOLEAN bReceiveDTIMs;
461} DOT11_POWER_MGMT_MODE, *PDOT11_POWER_MGMT_MODE;
462
463typedef struct _DOT11_COUNTERS_ENTRY {
464 ULONG uTransmittedFragmentCount;
465 ULONG uMulticastTransmittedFrameCount;
466 ULONG uFailedCount;
467 ULONG uRetryCount;
468 ULONG uMultipleRetryCount;
469 ULONG uFrameDuplicateCount;
470 ULONG uRTSSuccessCount;
471 ULONG uRTSFailureCount;
472 ULONG uACKFailureCount;
473 ULONG uReceivedFragmentCount;
474 ULONG uMulticastReceivedFrameCount;
475 ULONG uFCSErrorCount;
476 ULONG uTransmittedFrameCount;
477} DOT11_COUNTERS_ENTRY, *PDOT11_COUNTERS_ENTRY;
478
479#define OID_DOT11_SUPPORTED_PHY_TYPES (OID_DOT11_NDIS_START + 38)
480typedef struct _DOT11_SUPPORTED_PHY_TYPES {
481 ULONG uNumOfEntries;
482 ULONG uTotalNumOfEntries;
483 DOT11_PHY_TYPE dot11PHYType[1];
484} DOT11_SUPPORTED_PHY_TYPES, *PDOT11_SUPPORTED_PHY_TYPES;
485
486#define OID_DOT11_CURRENT_REG_DOMAIN (OID_DOT11_NDIS_START + 39)
487#define OID_DOT11_TEMP_TYPE (OID_DOT11_NDIS_START + 40)
488#define OID_DOT11_CURRENT_TX_ANTENNA (OID_DOT11_NDIS_START + 41)
489#define OID_DOT11_DIVERSITY_SUPPORT (OID_DOT11_NDIS_START + 42)
490#define OID_DOT11_CURRENT_RX_ANTENNA (OID_DOT11_NDIS_START + 43)
491#define OID_DOT11_SUPPORTED_POWER_LEVELS (OID_DOT11_NDIS_START + 44)
492#define OID_DOT11_CURRENT_TX_POWER_LEVEL (OID_DOT11_NDIS_START + 45)
493#define OID_DOT11_HOP_TIME (OID_DOT11_NDIS_START + 46)
494#define OID_DOT11_CURRENT_CHANNEL_NUMBER (OID_DOT11_NDIS_START + 47)
495#define OID_DOT11_MAX_DWELL_TIME (OID_DOT11_NDIS_START + 48)
496#define OID_DOT11_CURRENT_DWELL_TIME (OID_DOT11_NDIS_START + 49)
497#define OID_DOT11_CURRENT_SET (OID_DOT11_NDIS_START + 50)
498#define OID_DOT11_CURRENT_PATTERN (OID_DOT11_NDIS_START + 51)
499#define OID_DOT11_CURRENT_INDEX (OID_DOT11_NDIS_START + 52)
500#define OID_DOT11_CURRENT_CHANNEL (OID_DOT11_NDIS_START + 53)
501#define OID_DOT11_CCA_MODE_SUPPORTED (OID_DOT11_NDIS_START + 54)
502#define OID_DOT11_CURRENT_CCA_MODE (OID_DOT11_NDIS_START + 55)
503#define OID_DOT11_ED_THRESHOLD (OID_DOT11_NDIS_START + 56)
504#define OID_DOT11_CCA_WATCHDOG_TIMER_MAX (OID_DOT11_NDIS_START + 57)
505#define OID_DOT11_CCA_WATCHDOG_COUNT_MAX (OID_DOT11_NDIS_START + 58)
506#define OID_DOT11_CCA_WATCHDOG_TIMER_MIN (OID_DOT11_NDIS_START + 59)
507#define OID_DOT11_CCA_WATCHDOG_COUNT_MIN (OID_DOT11_NDIS_START + 60)
508#define OID_DOT11_REG_DOMAINS_SUPPORT_VALUE (OID_DOT11_NDIS_START + 61)
509#define OID_DOT11_SUPPORTED_TX_ANTENNA (OID_DOT11_NDIS_START + 62)
510#define OID_DOT11_SUPPORTED_RX_ANTENNA (OID_DOT11_NDIS_START + 63)
511#define OID_DOT11_DIVERSITY_SELECTION_RX (OID_DOT11_NDIS_START + 64)
512#define OID_DOT11_SUPPORTED_DATA_RATES_VALUE (OID_DOT11_NDIS_START + 65)
513#define OID_DOT11_CURRENT_FREQUENCY (OID_DOT11_NDIS_START + 66)
514#define OID_DOT11_TI_THRESHOLD (OID_DOT11_NDIS_START + 67)
515#define OID_DOT11_FREQUENCY_BANDS_SUPPORTED (OID_DOT11_NDIS_START + 68)
516#define OID_DOT11_SHORT_PREAMBLE_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 69)
517#define OID_DOT11_PBCC_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 70)
518#define OID_DOT11_CHANNEL_AGILITY_PRESENT (OID_DOT11_NDIS_START + 71)
519#define OID_DOT11_CHANNEL_AGILITY_ENABLED (OID_DOT11_NDIS_START + 72)
520#define OID_DOT11_HR_CCA_MODE_SUPPORTED (OID_DOT11_NDIS_START + 73)
521#define OID_DOT11_MULTI_DOMAIN_CAPABILITY_IMPLEMENTED (OID_DOT11_NDIS_START + 74)
522#define OID_DOT11_MULTI_DOMAIN_CAPABILITY_ENABLED (OID_DOT11_NDIS_START + 75)
523#define OID_DOT11_COUNTRY_STRING (OID_DOT11_NDIS_START + 76)
524
525#define DOT11_REG_DOMAIN_OTHER 0x00000000
526#define DOT11_REG_DOMAIN_FCC 0x00000010
527#define DOT11_REG_DOMAIN_DOC 0x00000020
528#define DOT11_REG_DOMAIN_ETSI 0x00000030
529#define DOT11_REG_DOMAIN_SPAIN 0x00000031
530#define DOT11_REG_DOMAIN_FRANCE 0x00000032
531#define DOT11_REG_DOMAIN_MKK 0x00000040
532
533typedef enum _DOT11_TEMP_TYPE {
534 dot11_temp_type_unknown = 0,
535 dot11_temp_type_1 = 1,
536 dot11_temp_type_2 = 2
537} DOT11_TEMP_TYPE, *PDOT11_TEMP_TYPE;
538
539typedef enum _DOT11_DIVERSITY_SUPPORT {
540 dot11_diversity_support_unknown = 0,
541 dot11_diversity_support_fixedlist = 1,
542 dot11_diversity_support_notsupported = 2,
543 dot11_diversity_support_dynamic = 3
544} DOT11_DIVERSITY_SUPPORT, *PDOT11_DIVERSITY_SUPPORT;
545
546typedef struct _DOT11_SUPPORTED_POWER_LEVELS {
547 ULONG uNumOfSupportedPowerLevels;
548 ULONG uTxPowerLevelValues[8];
549} DOT11_SUPPORTED_POWER_LEVELS, *PDOT11_SUPPORTED_POWER_LEVELS;
550
551#define DOT11_CCA_MODE_ED_ONLY 0x00000001
552#define DOT11_CCA_MODE_CS_ONLY 0x00000002
553#define DOT11_CCA_MODE_ED_and_CS 0x00000004
554#define DOT11_CCA_MODE_CS_WITH_TIMER 0x00000008
555#define DOT11_CCA_MODE_HRCS_AND_ED 0x00000010
556
557typedef struct _DOT11_REG_DOMAIN_VALUE {
558 ULONG uRegDomainsSupportIndex;
559 ULONG uRegDomainsSupportValue;
560} DOT11_REG_DOMAIN_VALUE, *PDOT11_REG_DOMAIN_VALUE;
561
562typedef struct _DOT11_REG_DOMAINS_SUPPORT_VALUE {
563 ULONG uNumOfEntries;
564 ULONG uTotalNumOfEntries;
565 DOT11_REG_DOMAIN_VALUE dot11RegDomainValue[1];
566} DOT11_REG_DOMAINS_SUPPORT_VALUE, *PDOT11_REG_DOMAINS_SUPPORT_VALUE;
567
568typedef struct _DOT11_SUPPORTED_ANTENNA {
569 ULONG uAntennaListIndex;
570 BOOLEAN bSupportedAntenna;
571} DOT11_SUPPORTED_ANTENNA, *PDOT11_SUPPORTED_ANTENNA;
572
573typedef struct _DOT11_SUPPORTED_ANTENNA_LIST {
574 ULONG uNumOfEntries;
575 ULONG uTotalNumOfEntries;
576 DOT11_SUPPORTED_ANTENNA dot11SupportedAntenna[1];
577} DOT11_SUPPORTED_ANTENNA_LIST, *PDOT11_SUPPORTED_ANTENNA_LIST;
578
579typedef struct _DOT11_DIVERSITY_SELECTION_RX {
580 ULONG uAntennaListIndex;
581 BOOLEAN bDiversitySelectionRX;
582} DOT11_DIVERSITY_SELECTION_RX, *PDOT11_DIVERSITY_SELECTION_RX;
583
584typedef struct _DOT11_DIVERSITY_SELECTION_RX_LIST {
585 ULONG uNumOfEntries;
586 ULONG uTotalNumOfEntries;
587 DOT11_DIVERSITY_SELECTION_RX dot11DiversitySelectionRx[1];
588} DOT11_DIVERSITY_SELECTION_RX_LIST, *PDOT11_DIVERSITY_SELECTION_RX_LIST;
589
590#define MAX_NUM_SUPPORTED_RATES 8
591#define MAX_NUM_SUPPORTED_RATES_V2 255
592
593typedef struct _DOT11_SUPPORTED_DATA_RATES_VALUE {
594 UCHAR ucSupportedTxDataRatesValue[MAX_NUM_SUPPORTED_RATES];
595 UCHAR ucSupportedRxDataRatesValue[MAX_NUM_SUPPORTED_RATES];
596} DOT11_SUPPORTED_DATA_RATES_VALUE, *PDOT11_SUPPORTED_DATA_RATES_VALUE;
597
598typedef struct _DOT11_SUPPORTED_DATA_RATES_VALUE_V2 {
599 UCHAR ucSupportedTxDataRatesValue[MAX_NUM_SUPPORTED_RATES_V2];
600 UCHAR ucSupportedRxDataRatesValue[MAX_NUM_SUPPORTED_RATES_V2];
601} DOT11_SUPPORTED_DATA_RATES_VALUE_V2, *PDOT11_SUPPORTED_DATA_RATES_VALUE_V2;
602
603typedef DOT11_SUPPORTED_DATA_RATES_VALUE_V2 DOT11_SUPPORTED_DATA_RATES_VALUE_V1, *PDOT11_SUPPORTED_DATA_RATES_VALUE_V1;
604
605#define DOT11_FREQUENCY_BANDS_LOWER 0x00000001
606#define DOT11_FREQUENCY_BANDS_MIDDLE 0x00000002
607#define DOT11_FREQUENCY_BANDS_UPPER 0x00000004
608
609#define DOT11_HR_CCA_MODE_ED_ONLY 0x00000001
610#define DOT11_HR_CCA_MODE_CS_ONLY 0x00000002
611#define DOT11_HR_CCA_MODE_CS_AND_ED 0x00000004
612#define DOT11_HR_CCA_MODE_CS_WITH_TIMER 0x00000008
613#define DOT11_HR_CCA_MODE_HRCS_AND_ED 0x00000010
614
615typedef struct _DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY {
616 ULONG uMultiDomainCapabilityIndex;
617 ULONG uFirstChannelNumber;
618 ULONG uNumberOfChannels;
619 LONG lMaximumTransmitPowerLevel;
620} DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY, *PDOT11_MULTI_DOMAIN_CAPABILITY_ENTRY;
621
622typedef struct _DOT11_MD_CAPABILITY_ENTRY_LIST {
623 ULONG uNumOfEntries;
624 ULONG uTotalNumOfEntries;
625 DOT11_MULTI_DOMAIN_CAPABILITY_ENTRY dot11MDCapabilityEntry[1];
626} DOT11_MD_CAPABILITY_ENTRY_LIST, *PDOT11_MD_CAPABILITY_ENTRY_LIST;
627
628#define OID_DOT11_MULTI_DOMAIN_CAPABILITY (OID_DOT11_NDIS_START + 77)
629#define OID_DOT11_EHCC_PRIME_RADIX (OID_DOT11_NDIS_START + 78)
630#define OID_DOT11_EHCC_NUMBER_OF_CHANNELS_FAMILY_INDEX (OID_DOT11_NDIS_START + 79)
631#define OID_DOT11_EHCC_CAPABILITY_IMPLEMENTED (OID_DOT11_NDIS_START + 80)
632#define OID_DOT11_EHCC_CAPABILITY_ENABLED (OID_DOT11_NDIS_START + 81)
633#define OID_DOT11_HOP_ALGORITHM_ADOPTED (OID_DOT11_NDIS_START + 82)
634#define OID_DOT11_RANDOM_TABLE_FLAG (OID_DOT11_NDIS_START + 83)
635#define OID_DOT11_NUMBER_OF_HOPPING_SETS (OID_DOT11_NDIS_START + 84)
636#define OID_DOT11_HOP_MODULUS (OID_DOT11_NDIS_START + 85)
637#define OID_DOT11_HOP_OFFSET (OID_DOT11_NDIS_START + 86)
638#define OID_DOT11_HOPPING_PATTERN (OID_DOT11_NDIS_START + 87)
639#define OID_DOT11_RANDOM_TABLE_FIELD_NUMBER (OID_DOT11_NDIS_START + 88)
640#define OID_DOT11_WPA_TSC (OID_DOT11_NDIS_START + 89)
641#define OID_DOT11_RSSI_RANGE (OID_DOT11_NDIS_START + 90)
642#define OID_DOT11_RF_USAGE (OID_DOT11_NDIS_START + 91)
643#define OID_DOT11_NIC_SPECIFIC_EXTENSION (OID_DOT11_NDIS_START + 92)
644#define OID_DOT11_AP_JOIN_REQUEST (OID_DOT11_NDIS_START + 93)
645#define OID_DOT11_ERP_PBCC_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 94)
646#define OID_DOT11_ERP_PBCC_OPTION_ENABLED (OID_DOT11_NDIS_START + 95)
647#define OID_DOT11_DSSS_OFDM_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 96)
648#define OID_DOT11_DSSS_OFDM_OPTION_ENABLED (OID_DOT11_NDIS_START + 97)
649#define OID_DOT11_SHORT_SLOT_TIME_OPTION_IMPLEMENTED (OID_DOT11_NDIS_START + 98)
650#define OID_DOT11_SHORT_SLOT_TIME_OPTION_ENABLED (OID_DOT11_NDIS_START + 99)
651#define OID_DOT11_MAX_MAC_ADDRESS_STATES (OID_DOT11_NDIS_START + 100)
652#define OID_DOT11_RECV_SENSITIVITY_LIST (OID_DOT11_NDIS_START + 101)
653
654typedef enum _DOT11_HOP_ALGO_ADOPTED {
655 dot11_hop_algo_current = 0,
656 dot11_hop_algo_hop_index = 1,
657 dot11_hop_algo_hcc = 2
658} DOT11_HOP_ALGO_ADOPTED, *PDOT11_HOP_ALGO_ADOPTED;
659
660typedef struct _DOT11_HOPPING_PATTERN_ENTRY {
661 ULONG uHoppingPatternIndex;
662 ULONG uRandomTableFieldNumber;
663} DOT11_HOPPING_PATTERN_ENTRY, *PDOT11_HOPPING_PATTERN_ENTRY;
664
665typedef struct _DOT11_HOPPING_PATTERN_ENTRY_LIST {
666 ULONG uNumOfEntries;
667 ULONG uTotalNumOfEntries;
668 DOT11_HOPPING_PATTERN_ENTRY dot11HoppingPatternEntry[1];
669} DOT11_HOPPING_PATTERN_ENTRY_LIST, *PDOT11_HOPPING_PATTERN_ENTRY_LIST;
670
671typedef struct _DOT11_WPA_TSC {
672 ULONG uReserved;
673 DOT11_OFFLOAD_TYPE dot11OffloadType;
674 HANDLE hOffload;
675 DOT11_IV48_COUNTER dot11IV48Counter;
676} DOT11_WPA_TSC, *PDOT11_WPA_TSC;
677
678typedef struct _DOT11_RSSI_RANGE {
679 DOT11_PHY_TYPE dot11PhyType;
680 ULONG uRSSIMin;
681 ULONG uRSSIMax;
682} DOT11_RSSI_RANGE, *PDOT11_RSSI_RANGE;
683
684typedef struct _DOT11_NIC_SPECIFIC_EXTENSION {
685 ULONG uBufferLength;
686 ULONG uTotalBufferLength;
687 UCHAR ucBuffer[1];
688} DOT11_NIC_SPECIFIC_EXTENSION, *PDOT11_NIC_SPECIFIC_EXTENSION;
689
690typedef struct _DOT11_AP_JOIN_REQUEST {
691 ULONG uJoinFailureTimeout;
692 DOT11_RATE_SET OperationalRateSet;
693 ULONG uChCenterFrequency;
694 DOT11_BSS_DESCRIPTION dot11BSSDescription;
695} DOT11_AP_JOIN_REQUEST, *PDOT11_AP_JOIN_REQUEST;
696
697typedef struct _DOT11_RECV_SENSITIVITY {
698 UCHAR ucDataRate;
699 LONG lRSSIMin;
700 LONG lRSSIMax;
701} DOT11_RECV_SENSITIVITY, *PDOT11_RECV_SENSITIVITY;
702
703typedef struct _DOT11_RECV_SENSITIVITY_LIST {
704 __C89_NAMELESS union {
705 DOT11_PHY_TYPE dot11PhyType;
706 ULONG uPhyId;
707 };
708 ULONG uNumOfEntries;
709 ULONG uTotalNumOfEntries;
710 DOT11_RECV_SENSITIVITY dot11RecvSensitivity[1];
711} DOT11_RECV_SENSITIVITY_LIST, *PDOT11_RECV_SENSITIVITY_LIST;
712
713#define OID_DOT11_WME_IMPLEMENTED (OID_DOT11_NDIS_START + 102)
714#define OID_DOT11_WME_ENABLED (OID_DOT11_NDIS_START + 103)
715#define OID_DOT11_WME_AC_PARAMETERS (OID_DOT11_NDIS_START + 104)
716#define OID_DOT11_WME_UPDATE_IE (OID_DOT11_NDIS_START + 105)
717#define OID_DOT11_QOS_TX_QUEUES_SUPPORTED (OID_DOT11_NDIS_START + 106)
718#define OID_DOT11_QOS_TX_DURATION (OID_DOT11_NDIS_START + 107)
719
720typedef enum _DOT11_AC_PARAM {
721 dot11_AC_param_BE = 0,
722 dot11_AC_param_BK = 1,
723 dot11_AC_param_VI = 2,
724 dot11_AC_param_VO = 3,
725 dot11_AC_param_max
726} DOT11_AC_PARAM, *PDOT11_AC_PARAM;
727
728typedef struct _DOT11_WME_AC_PARAMETERS {
729 UCHAR ucAccessCategoryIndex;
730 UCHAR ucAIFSN;
731 UCHAR ucECWmin;
732 UCHAR ucECWmax;
733 USHORT usTXOPLimit;
734} DOT11_WME_AC_PARAMETERS, *PDOT11_WME_AC_PARAMETERS;
735
736typedef struct _DOT11_WME_AC_PARAMTERS_LIST {
737 ULONG uNumOfEntries;
738 ULONG uTotalNumOfEntries;
739 DOT11_WME_AC_PARAMETERS dot11WMEACParameters[1];
740} DOT11_WME_AC_PARAMETERS_LIST, *PDOT11_WME_AC_PARAMETERS_LIST;
741
742typedef struct _DOT11_WME_UPDATE_IE {
743 ULONG uParamElemMinBeaconIntervals;
744 ULONG uWMEInfoElemOffset;
745 ULONG uWMEInfoElemLength;
746 ULONG uWMEParamElemOffset;
747 ULONG uWMEParamElemLength;
748 UCHAR ucBuffer[1];
749} DOT11_WME_UPDATE_IE, *PDOT11_WME_UPDATE_IE;
750
751typedef struct _DOT11_QOS_TX_DURATION {
752 ULONG uNominalMSDUSize;
753 ULONG uMinPHYRate;
754 ULONG uDuration;
755} DOT11_QOS_TX_DURATION, *PDOT11_QOS_TX_DURATION;
756
757typedef struct _DOT11_QOS_TX_MEDIUM_TIME {
758 DOT11_MAC_ADDRESS dot11PeerAddress;
759 UCHAR ucQoSPriority;
760 ULONG uMediumTimeAdmited;
761} DOT11_QOS_TX_MEDIUM_TIME, *PDOT11_QOS_TX_MEDIUM_TIME;
762
763typedef struct _DOT11_SUPPORTED_OFDM_FREQUENCY {
764 ULONG uCenterFrequency;
765} DOT11_SUPPORTED_OFDM_FREQUENCY, *PDOT11_SUPPORTED_OFDM_FREQUENCY;
766
767typedef struct _DOT11_SUPPORTED_OFDM_FREQUENCY_LIST {
768 ULONG uNumOfEntries;
769 ULONG uTotalNumOfEntries;
770 DOT11_SUPPORTED_OFDM_FREQUENCY dot11SupportedOFDMFrequency[1];
771} DOT11_SUPPORTED_OFDM_FREQUENCY_LIST, *PDOT11_SUPPORTED_OFDM_FREQUENCY_LIST;
772
773typedef struct _DOT11_SUPPORTED_DSSS_CHANNEL {
774 ULONG uChannel;
775} DOT11_SUPPORTED_DSSS_CHANNEL, *PDOT11_SUPPORTED_DSSS_CHANNEL;
776
777typedef struct _DOT11_SUPPORTED_DSSS_CHANNEL_LIST {
778 ULONG uNumOfEntries;
779 ULONG uTotalNumOfEntries;
780 DOT11_SUPPORTED_DSSS_CHANNEL dot11SupportedDSSSChannel[1];
781} DOT11_SUPPORTED_DSSS_CHANNEL_LIST, *PDOT11_SUPPORTED_DSSS_CHANNEL_LIST;
782
783typedef struct DOT11_BYTE_ARRAY {
784 NDIS_OBJECT_HEADER Header;
785 ULONG uNumOfBytes;
786 ULONG uTotalNumOfBytes;
787 UCHAR ucBuffer[1];
788} DOT11_BYTE_ARRAY, *PDOT11_BYTE_ARRAY;
789
790#define OID_DOT11_QOS_TX_MEDIUM_TIME (OID_DOT11_NDIS_START + 108)
791#define OID_DOT11_SUPPORTED_OFDM_FREQUENCY_LIST (OID_DOT11_NDIS_START + 109)
792#define OID_DOT11_SUPPORTED_DSSS_CHANNEL_LIST (OID_DOT11_NDIS_START + 110)
793
794#define OID_DOT11_AUTO_CONFIG_ENABLED NWF_DEFINE_OID (120, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
795#define OID_DOT11_ENUM_BSS_LIST NWF_DEFINE_OID (121, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
796#define OID_DOT11_FLUSH_BSS_LIST NWF_DEFINE_OID (122, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
797#define OID_DOT11_POWER_MGMT_REQUEST NWF_DEFINE_OID (123, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
798#define OID_DOT11_DESIRED_SSID_LIST NWF_DEFINE_OID (124, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
799#define OID_DOT11_EXCLUDED_MAC_ADDRESS_LIST NWF_DEFINE_OID (125, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
800
801#define DOT11_PHY_AUTO_CONFIG_ENABLED_FLAG 0x00000001U
802#define DOT11_MAC_AUTO_CONFIG_ENABLED_FLAG 0x00000002U
803
804#define DOT11_BSS_ENTRY_BYTE_ARRAY_REVISION_1 1
805
806#ifndef __WIDL__
807typedef union DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO {
808 ULONG uChCenterFrequency;
809 struct {
810 ULONG uHopPattern;
811 ULONG uHopSet;
812 ULONG uDwellTime;
813 } FHSS;
814} DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO, *PDOT11_BSS_ENTRY_PHY_SPECIFIC_INFO;
815
816typedef struct DOT11_BSS_ENTRY {
817 ULONG uPhyId;
818 DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO PhySpecificInfo;
819 DOT11_MAC_ADDRESS dot11BSSID;
820 DOT11_BSS_TYPE dot11BSSType;
821 LONG lRSSI;
822 ULONG uLinkQuality;
823 BOOLEAN bInRegDomain;
824 USHORT usBeaconPeriod;
825 ULONGLONG ullTimestamp;
826 ULONGLONG ullHostTimestamp;
827 USHORT usCapabilityInformation;
828 ULONG uBufferLength;
829 UCHAR ucBuffer[1];
830} DOT11_BSS_ENTRY, *PDOT11_BSS_ENTRY;
831#endif
832
833#define DOT11_POWER_SAVING_NO_POWER_SAVING 0
834#define DOT11_POWER_SAVING_FAST_PSP 8
835#define DOT11_POWER_SAVING_MAX_PSP 16
836#define DOT11_POWER_SAVING_MAXIMUM_LEVEL 24
837
838#define DOT11_SSID_LIST_REVISION_1 1
839#define DOT11_MAC_ADDRESS_LIST_REVISION_1 1
840#define DOT11_PMKID_LIST_REVISION_1 1
841
842typedef struct DOT11_SSID_LIST {
843 NDIS_OBJECT_HEADER Header;
844 ULONG uNumOfEntries;
845 ULONG uTotalNumOfEntries;
846#ifdef __WIDL__
847 [unique, size_is (uTotalNumOfEntries)] DOT11_SSID SSIDs[*];
848#else
849 DOT11_SSID SSIDs[1];
850#endif
851} DOT11_SSID_LIST, *PDOT11_SSID_LIST;
852
853typedef struct DOT11_MAC_ADDRESS_LIST {
854 NDIS_OBJECT_HEADER Header;
855 ULONG uNumOfEntries;
856 ULONG uTotalNumOfEntries;
857 DOT11_MAC_ADDRESS MacAddrs[1];
858} DOT11_MAC_ADDRESS_LIST, *PDOT11_MAC_ADDRESS_LIST;
859
860#define OID_DOT11_DESIRED_BSSID_LIST NWF_DEFINE_OID (126, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
861#define OID_DOT11_DESIRED_BSS_TYPE NWF_DEFINE_OID (127, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
862#define OID_DOT11_PMKID_LIST NWF_DEFINE_OID (128, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID)
863#define OID_DOT11_CONNECT_REQUEST NWF_DEFINE_OID (129, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
864#define OID_DOT11_EXCLUDE_UNENCRYPTED NWF_DEFINE_OID (130, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
865#define OID_DOT11_STATISTICS NWF_DEFINE_OID (131, NWF_STATISTICS_OID, NWF_MANDATORY_OID)
866#define OID_DOT11_PRIVACY_EXEMPTION_LIST NWF_DEFINE_OID (132, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
867#define OID_DOT11_ENABLED_AUTHENTICATION_ALGORITHM NWF_DEFINE_OID (133, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
868
869typedef UCHAR DOT11_PMKID_VALUE[16];
870
871typedef struct DOT11_PMKID_ENTRY {
872 DOT11_MAC_ADDRESS BSSID;
873 DOT11_PMKID_VALUE PMKID;
874 ULONG uFlags;
875} DOT11_PMKID_ENTRY, *PDOT11_PMKID_ENTRY;
876
877typedef struct DOT11_PMKID_LIST {
878 NDIS_OBJECT_HEADER Header;
879 ULONG uNumOfEntries;
880 ULONG uTotalNumOfEntries;
881 DOT11_PMKID_ENTRY PMKIDs[1];
882} DOT11_PMKID_LIST, *PDOT11_PMKID_LIST;
883
884#define DOT11_STATISTICS_UNKNOWN (ULONGLONG) (-1LL)
885
886typedef struct DOT11_PHY_FRAME_STATISTICS {
887 ULONGLONG ullTransmittedFrameCount;
888 ULONGLONG ullMulticastTransmittedFrameCount;
889 ULONGLONG ullFailedCount;
890 ULONGLONG ullRetryCount;
891 ULONGLONG ullMultipleRetryCount;
892 ULONGLONG ullMaxTXLifetimeExceededCount;
893 ULONGLONG ullTransmittedFragmentCount;
894 ULONGLONG ullRTSSuccessCount;
895 ULONGLONG ullRTSFailureCount;
896 ULONGLONG ullACKFailureCount;
897 ULONGLONG ullReceivedFrameCount;
898 ULONGLONG ullMulticastReceivedFrameCount;
899 ULONGLONG ullPromiscuousReceivedFrameCount;
900 ULONGLONG ullMaxRXLifetimeExceededCount;
901 ULONGLONG ullFrameDuplicateCount;
902 ULONGLONG ullReceivedFragmentCount;
903 ULONGLONG ullPromiscuousReceivedFragmentCount;
904 ULONGLONG ullFCSErrorCount;
905} DOT11_PHY_FRAME_STATISTICS, *PDOT11_PHY_FRAME_STATISTICS;
906
907typedef struct DOT11_MAC_FRAME_STATISTICS {
908 ULONGLONG ullTransmittedFrameCount;
909 ULONGLONG ullReceivedFrameCount;
910 ULONGLONG ullTransmittedFailureFrameCount;
911 ULONGLONG ullReceivedFailureFrameCount;
912 ULONGLONG ullWEPExcludedCount;
913 ULONGLONG ullTKIPLocalMICFailures;
914 ULONGLONG ullTKIPReplays;
915 ULONGLONG ullTKIPICVErrorCount;
916 ULONGLONG ullCCMPReplays;
917 ULONGLONG ullCCMPDecryptErrors;
918 ULONGLONG ullWEPUndecryptableCount;
919 ULONGLONG ullWEPICVErrorCount;
920 ULONGLONG ullDecryptSuccessCount;
921 ULONGLONG ullDecryptFailureCount;
922} DOT11_MAC_FRAME_STATISTICS, *PDOT11_MAC_FRAME_STATISTICS;
923
924#define DOT11_STATISTICS_REVISION_1 1
925#define DOT11_PRIVACY_EXEMPTION_LIST_REVISION_1 1
926
927typedef struct DOT11_STATISTICS {
928 NDIS_OBJECT_HEADER Header;
929 ULONGLONG ullFourWayHandshakeFailures;
930 ULONGLONG ullTKIPCounterMeasuresInvoked;
931 ULONGLONG ullReserved;
932 DOT11_MAC_FRAME_STATISTICS MacUcastCounters;
933 DOT11_MAC_FRAME_STATISTICS MacMcastCounters;
934 DOT11_PHY_FRAME_STATISTICS PhyCounters[1];
935} DOT11_STATISTICS, *PDOT11_STATISTICS;
936
937#define DOT11_EXEMPT_NO_EXEMPTION 0
938#define DOT11_EXEMPT_ALWAYS 1
939#define DOT11_EXEMPT_ON_KEY_MAPPING_KEY_UNAVAILABLE 2
940
941#define DOT11_EXEMPT_UNICAST 1
942#define DOT11_EXEMPT_MULTICAST 2
943#define DOT11_EXEMPT_BOTH 3
944
945typedef struct DOT11_PRIVACY_EXEMPTION {
946 USHORT usEtherType;
947 USHORT usExemptionActionType;
948 USHORT usExemptionPacketType;
949} DOT11_PRIVACY_EXEMPTION, *PDOT11_PRIVACY_EXEMPTION;
950
951typedef struct DOT11_PRIVACY_EXEMPTION_LIST {
952 NDIS_OBJECT_HEADER Header;
953 ULONG uNumOfEntries;
954 ULONG uTotalNumOfEntries;
955#ifdef __WIDL__
956 [unique, size_is (uTotalNumOfEntries)] DOT11_PRIVACY_EXEMPTION PrivacyExemptionEntries[*];
957#else
958 DOT11_PRIVACY_EXEMPTION PrivacyExemptionEntries[1];
959#endif
960} DOT11_PRIVACY_EXEMPTION_LIST, *PDOT11_PRIVACY_EXEMPTION_LIST;
961
962#define DOT11_AUTH_ALGORITHM_LIST_REVISION_1 1
963#define DOT11_AUTH_CIPHER_PAIR_LIST_REVISION_1 1
964#define DOT11_CIPHER_ALGORITHM_LIST_REVISION_1 1
965#define DOT11_CIPHER_DEFAULT_KEY_VALUE_REVISION_1 1
966
967#define OID_DOT11_SUPPORTED_UNICAST_ALGORITHM_PAIR NWF_DEFINE_OID (134, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
968#define OID_DOT11_ENABLED_UNICAST_CIPHER_ALGORITHM NWF_DEFINE_OID (135, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
969#define OID_DOT11_SUPPORTED_MULTICAST_ALGORITHM_PAIR NWF_DEFINE_OID (136, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
970#define OID_DOT11_ENABLED_MULTICAST_CIPHER_ALGORITHM NWF_DEFINE_OID (137, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
971#define OID_DOT11_CIPHER_DEFAULT_KEY_ID NWF_DEFINE_OID (138, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
972#define OID_DOT11_CIPHER_DEFAULT_KEY NWF_DEFINE_OID (139, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
973
974typedef struct DOT11_AUTH_ALGORITHM_LIST {
975 NDIS_OBJECT_HEADER Header;
976 ULONG uNumOfEntries;
977 ULONG uTotalNumOfEntries;
978 DOT11_AUTH_ALGORITHM AlgorithmIds[1];
979} DOT11_AUTH_ALGORITHM_LIST, *PDOT11_AUTH_ALGORITHM_LIST;
980
981typedef struct DOT11_AUTH_CIPHER_PAIR_LIST {
982 NDIS_OBJECT_HEADER Header;
983 ULONG uNumOfEntries;
984 ULONG uTotalNumOfEntries;
985 DOT11_AUTH_CIPHER_PAIR AuthCipherPairs[1];
986} DOT11_AUTH_CIPHER_PAIR_LIST, *PDOT11_AUTH_CIPHER_PAIR_LIST;
987
988typedef struct DOT11_CIPHER_ALGORITHM_LIST {
989 NDIS_OBJECT_HEADER Header;
990 ULONG uNumOfEntries;
991 ULONG uTotalNumOfEntries;
992 DOT11_CIPHER_ALGORITHM AlgorithmIds[1];
993} DOT11_CIPHER_ALGORITHM_LIST, *PDOT11_CIPHER_ALGORITHM_LIST;
994
995typedef struct DOT11_CIPHER_DEFAULT_KEY_VALUE {
996 NDIS_OBJECT_HEADER Header;
997 ULONG uKeyIndex;
998 DOT11_CIPHER_ALGORITHM AlgorithmId;
999 DOT11_MAC_ADDRESS MacAddr;
1000 BOOLEAN bDelete;
1001 BOOLEAN bStatic;
1002 USHORT usKeyLength;
1003#ifdef __WIDL__
1004 [unique, size_is (usKeyLength)] UCHAR ucKey[*];
1005#else
1006 UCHAR ucKey[1];
1007#endif
1008} DOT11_CIPHER_DEFAULT_KEY_VALUE, *PDOT11_CIPHER_DEFAULT_KEY_VALUE;
1009
1010typedef struct DOT11_KEY_ALGO_TKIP_MIC {
1011 UCHAR ucIV48Counter[6];
1012 ULONG ulTKIPKeyLength;
1013 ULONG ulMICKeyLength;
1014 UCHAR ucTKIPMICKeys[1];
1015} DOT11_KEY_ALGO_TKIP_MIC, *PDOT11_KEY_ALGO_TKIP_MIC;
1016
1017typedef struct DOT11_KEY_ALGO_CCMP {
1018 UCHAR ucIV48Counter[6];
1019 ULONG ulCCMPKeyLength;
1020 UCHAR ucCCMPKey[1];
1021} DOT11_KEY_ALGO_CCMP, *PDOT11_KEY_ALGO_CCMP;
1022
1023typedef struct DOT11_KEY_ALGO_BIP {
1024 UCHAR ucIPN[6];
1025 ULONG ulBIPKeyLength;
1026 UCHAR ucBIPKey[1];
1027} DOT11_KEY_ALGO_BIP, *PDOT11_KEY_ALGO_BIP;
1028
1029#define DOT11_CIPHER_KEY_MAPPING_KEY_VALUE_BYTE_ARRAY_REVISION_1 1
1030#define DOT11_ASSOCIATION_INFO_LIST_REVISION_1 1
1031
1032#define OID_DOT11_CIPHER_KEY_MAPPING_KEY NWF_DEFINE_OID (140, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1033#define OID_DOT11_ENUM_ASSOCIATION_INFO NWF_DEFINE_OID (141, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1034
1035typedef enum DOT11_DIRECTION {
1036 DOT11_DIR_INBOUND = 1,
1037 DOT11_DIR_OUTBOUND,
1038 DOT11_DIR_BOTH
1039} DOT11_DIRECTION, *PDOT11_DIRECTION;
1040
1041typedef struct DOT11_CIPHER_KEY_MAPPING_KEY_VALUE {
1042 DOT11_MAC_ADDRESS PeerMacAddr;
1043 DOT11_CIPHER_ALGORITHM AlgorithmId;
1044 DOT11_DIRECTION Direction;
1045 BOOLEAN bDelete;
1046 BOOLEAN bStatic;
1047 USHORT usKeyLength;
1048#ifdef __WIDL__
1049 [unique, size_is (usKeyLength)] UCHAR ucKey[*];
1050#else
1051 UCHAR ucKey[1];
1052#endif
1053} DOT11_CIPHER_KEY_MAPPING_KEY_VALUE, *PDOT11_CIPHER_KEY_MAPPING_KEY_VALUE;
1054
1055typedef enum _DOT11_ASSOCIATION_STATE {
1056 dot11_assoc_state_zero = 0,
1057 dot11_assoc_state_unauth_unassoc = 1,
1058 dot11_assoc_state_auth_unassoc = 2,
1059 dot11_assoc_state_auth_assoc = 3
1060} DOT11_ASSOCIATION_STATE, *PDOT11_ASSOCIATION_STATE;
1061
1062typedef struct _DOT11_ASSOCIATION_INFO_EX {
1063 DOT11_MAC_ADDRESS PeerMacAddress;
1064 DOT11_MAC_ADDRESS BSSID;
1065 USHORT usCapabilityInformation;
1066 USHORT usListenInterval;
1067 UCHAR ucPeerSupportedRates[MAX_NUM_SUPPORTED_RATES_V2];
1068 USHORT usAssociationID;
1069 DOT11_ASSOCIATION_STATE dot11AssociationState;
1070 DOT11_POWER_MODE dot11PowerMode;
1071 LARGE_INTEGER liAssociationUpTime;
1072 ULONGLONG ullNumOfTxPacketSuccesses;
1073 ULONGLONG ullNumOfTxPacketFailures;
1074 ULONGLONG ullNumOfRxPacketSuccesses;
1075 ULONGLONG ullNumOfRxPacketFailures;
1076} DOT11_ASSOCIATION_INFO_EX, *PDOT11_ASSOCIATION_INFO_EX;
1077
1078typedef struct DOT11_ASSOCIATION_INFO_LIST {
1079 NDIS_OBJECT_HEADER Header;
1080 ULONG uNumOfEntries;
1081 ULONG uTotalNumOfEntries;
1082 DOT11_ASSOCIATION_INFO_EX dot11AssocInfo[1];
1083} DOT11_ASSOCIATION_INFO_LIST, *PDOT11_ASSOCIATION_INFO_LIST;
1084
1085typedef struct DOT11_PHY_ID_LIST {
1086 NDIS_OBJECT_HEADER Header;
1087 ULONG uNumOfEntries;
1088 ULONG uTotalNumOfEntries;
1089 ULONG dot11PhyId[1];
1090} DOT11_PHY_ID_LIST, *PDOT11_PHY_ID_LIST;
1091
1092#define DOT11_PHY_ID_ANY (0xffffffffU)
1093
1094#define OID_DOT11_DISCONNECT_REQUEST NWF_DEFINE_OID (142, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1095#define OID_DOT11_UNICAST_USE_GROUP_ENABLED NWF_DEFINE_OID (143, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1096#define OID_DOT11_HARDWARE_PHY_STATE NWF_DEFINE_OID (144, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1097#define OID_DOT11_DESIRED_PHY_LIST NWF_DEFINE_OID (145, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1098#define OID_DOT11_CURRENT_PHY_ID NWF_DEFINE_OID (146, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1099#define OID_DOT11_MEDIA_STREAMING_ENABLED NWF_DEFINE_OID (147, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1100#define OID_DOT11_UNREACHABLE_DETECTION_THRESHOLD NWF_DEFINE_OID (148, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1101#define OID_DOT11_ACTIVE_PHY_LIST NWF_DEFINE_OID (149, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1102#define OID_DOT11_EXTSTA_CAPABILITY NWF_DEFINE_OID (150, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1103
1104#define DOT11_PHY_ID_LIST_REVISION_1 1
1105#define DOT11_EXTSTA_CAPABILITY_REVISION_1 1
1106
1107typedef struct DOT11_EXTSTA_CAPABILITY {
1108 NDIS_OBJECT_HEADER Header;
1109 ULONG uScanSSIDListSize;
1110 ULONG uDesiredBSSIDListSize;
1111 ULONG uDesiredSSIDListSize;
1112 ULONG uExcludedMacAddressListSize;
1113 ULONG uPrivacyExemptionListSize;
1114 ULONG uKeyMappingTableSize;
1115 ULONG uDefaultKeyTableSize;
1116 ULONG uWEPKeyValueMaxLength;
1117 ULONG uPMKIDCacheSize;
1118 ULONG uMaxNumPerSTADefaultKeyTables;
1119} DOT11_EXTSTA_CAPABILITY, *PDOT11_EXTSTA_CAPABILITY;
1120
1121typedef struct DOT11_DATA_RATE_MAPPING_ENTRY {
1122 UCHAR ucDataRateIndex;
1123 UCHAR ucDataRateFlag;
1124 USHORT usDataRateValue;
1125} DOT11_DATA_RATE_MAPPING_ENTRY, *PDOT11_DATA_RATE_MAPPING_ENTRY;
1126
1127typedef struct _DOT11_DATA_RATE_MAPPING_TABLE {
1128 NDIS_OBJECT_HEADER Header;
1129 ULONG uDataRateMappingLength;
1130 DOT11_DATA_RATE_MAPPING_ENTRY DataRateMappingEntries[DOT11_RATE_SET_MAX_LENGTH];
1131} DOT11_DATA_RATE_MAPPING_TABLE, *PDOT11_DATA_RATE_MAPPING_TABLE;
1132
1133typedef struct DOT11_COUNTRY_OR_REGION_STRING_LIST {
1134 NDIS_OBJECT_HEADER Header;
1135 ULONG uNumOfEntries;
1136 ULONG uTotalNumOfEntries;
1137 DOT11_COUNTRY_OR_REGION_STRING CountryOrRegionStrings[1];
1138} DOT11_COUNTRY_OR_REGION_STRING_LIST, *PDOT11_COUNTRY_OR_REGION_STRING_LIST;
1139
1140typedef struct DOT11_PORT_STATE_NOTIFICATION {
1141 NDIS_OBJECT_HEADER Header;
1142 DOT11_MAC_ADDRESS PeerMac;
1143 BOOLEAN bOpen;
1144} DOT11_PORT_STATE_NOTIFICATION, *PDOT11_PORT_STATE_NOTIFICATION;
1145
1146typedef struct DOT11_IBSS_PARAMS {
1147 NDIS_OBJECT_HEADER Header;
1148 BOOLEAN bJoinOnly;
1149 ULONG uIEsOffset;
1150 ULONG uIEsLength;
1151} DOT11_IBSS_PARAMS, *PDOT11_IBSS_PARAMS;
1152
1153typedef struct DOT11_QOS_PARAMS {
1154 NDIS_OBJECT_HEADER Header;
1155 UCHAR ucEnabledQoSProtocolFlags;
1156} DOT11_QOS_PARAMS, *PDOT11_QOS_PARAMS;
1157
1158#define DOT11_DATA_RATE_NON_STANDARD 0x01U
1159#define DOT11_DATA_RATE_INDEX_MASK 0x7fU
1160
1161#define DOT11_QOS_PROTOCOL_FLAG_WMM (0x01U)
1162#define DOT11_QOS_PROTOCOL_FLAG_11E (0x02U)
1163
1164#define OID_DOT11_DATA_RATE_MAPPING_TABLE NWF_DEFINE_OID (151, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1165#define OID_DOT11_SUPPORTED_COUNTRY_OR_REGION_STRING NWF_DEFINE_OID (152, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1166#define OID_DOT11_DESIRED_COUNTRY_OR_REGION_STRING NWF_DEFINE_OID (153, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1167#define OID_DOT11_PORT_STATE_NOTIFICATION NWF_DEFINE_OID (154, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID)
1168#define OID_DOT11_IBSS_PARAMS NWF_DEFINE_OID (155, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1169#define OID_DOT11_QOS_PARAMS NWF_DEFINE_OID (156, NWF_OPERATIONAL_OID, NWF_OPTIONAL_OID)
1170#define OID_DOT11_SAFE_MODE_ENABLED NWF_DEFINE_OID (157, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1171#define OID_DOT11_HIDDEN_NETWORK_ENABLED NWF_DEFINE_OID (158, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1172#define OID_DOT11_ASSOCIATION_PARAMS NWF_DEFINE_OID (159, NWF_OPERATIONAL_OID, NWF_MANDATORY_OID)
1173
1174#define DOT11_DATA_RATE_MAPPING_TABLE_REVISION_1 1
1175#define DOT11_COUNTRY_OR_REGION_STRING_LIST_REVISION_1 1
1176#define DOT11_PORT_STATE_NOTIFICATION_REVISION_1 1
1177#define DOT11_IBSS_PARAMS_REVISION_1 1
1178#define DOT11_QOS_PARAMS_REVISION_1 1
1179#define DOT11_ASSOCIATION_PARAMS_REVISION_1 1
1180
1181typedef struct DOT11_ASSOCIATION_PARAMS {
1182 NDIS_OBJECT_HEADER Header;
1183 DOT11_MAC_ADDRESS BSSID;
1184 ULONG uAssocRequestIEsOffset;
1185 ULONG uAssocRequestIEsLength;
1186} DOT11_ASSOCIATION_PARAMS, *PDOT11_ASSOCIATION_PARAMS;
1187
1188#define DOT11_MAX_NUM_OF_FRAGMENTS 16
1189
1190#define DOT11_PRIORITY_CONTENTION 0
1191#define DOT11_PRIORITY_CONTENTION_FREE 1
1192
1193#define DOT11_SERVICE_CLASS_REORDERABLE_MULTICAST 0
1194#define DOT11_SERVICE_CLASS_STRICTLY_ORDERED 1
1195
1196#define DOT11_FLAGS_80211B_SHORT_PREAMBLE 0x00000001
1197#define DOT11_FLAGS_80211B_PBCC 0x00000002
1198#define DOT11_FLAGS_80211B_CHANNEL_AGILITY 0x00000004
1199#define DOT11_FLAGS_PS_ON 0x00000008
1200#define DOT11_FLAGS_80211G_DSSS_OFDM 0x00000010
1201#define DOT11_FLAGS_80211G_USE_PROTECTION 0x00000020
1202#define DOT11_FLAGS_80211G_NON_ERP_PRESENT 0x00000040
1203#define DOT11_FLAGS_80211G_BARKER_PREAMBLE_MODE 0x00000080
1204#define DOT11_WME_PACKET 0x00000100
1205
1206typedef struct _DOT11_FRAGMENT_DESCRIPTOR {
1207 ULONG uOffset;
1208 ULONG uLength;
1209} DOT11_FRAGMENT_DESCRIPTOR, *PDOT11_FRAGMENT_DESCRIPTOR;
1210
1211typedef struct _DOT11_PER_MSDU_COUNTERS {
1212 ULONG uTransmittedFragmentCount;
1213 ULONG uRetryCount;
1214 ULONG uRTSSuccessCount;
1215 ULONG uRTSFailureCount;
1216 ULONG uACKFailureCount;
1217} DOT11_PER_MSDU_COUNTERS, *PDOT11_PER_MSDU_COUNTERS;
1218
1219typedef struct DOT11_PHY_ATTRIBUTES DOT11_PHY_ATTRIBUTES, *PDOT11_PHY_ATTRIBUTES;
1220
1221typedef struct DOT11_HRDSSS_PHY_ATTRIBUTES {
1222 BOOLEAN bShortPreambleOptionImplemented;
1223 BOOLEAN bPBCCOptionImplemented;
1224 BOOLEAN bChannelAgilityPresent;
1225 ULONG uHRCCAModeSupported;
1226} DOT11_HRDSSS_PHY_ATTRIBUTES, *PDOT11_HRDSSS_PHY_ATTRIBUTES;
1227
1228typedef struct DOT11_OFDM_PHY_ATTRIBUTES {
1229 ULONG uFrequencyBandsSupported;
1230} DOT11_OFDM_PHY_ATTRIBUTES, *PDOT11_OFDM_PHY_ATTRIBUTES;
1231
1232typedef struct DOT11_ERP_PHY_ATTRIBUTES {
1233#ifdef __cplusplus
1234 DOT11_HRDSSS_PHY_ATTRIBUTES HRDSSSAttributes;
1235#else
1236 __C89_NAMELESS struct {
1237 BOOLEAN bShortPreambleOptionImplemented;
1238 BOOLEAN bPBCCOptionImplemented;
1239 BOOLEAN bChannelAgilityPresent;
1240 ULONG uHRCCAModeSupported;
1241 };
1242#endif
1243 BOOLEAN bERPPBCCOptionImplemented;
1244 BOOLEAN bDSSSOFDMOptionImplemented;
1245 BOOLEAN bShortSlotTimeOptionImplemented;
1246} DOT11_ERP_PHY_ATTRIBUTES, *PDOT11_ERP_PHY_ATTRIBUTES;
1247
1248#define DOT11_PHY_ATTRIBUTES_REVISION_1 1
1249
1250struct DOT11_PHY_ATTRIBUTES {
1251 NDIS_OBJECT_HEADER Header;
1252 DOT11_PHY_TYPE PhyType;
1253 BOOLEAN bHardwarePhyState;
1254 BOOLEAN bSoftwarePhyState;
1255 BOOLEAN bCFPollable;
1256 ULONG uMPDUMaxLength;
1257 DOT11_TEMP_TYPE TempType;
1258 DOT11_DIVERSITY_SUPPORT DiversitySupport;
1259#ifdef __WIDL__
1260 [switch_is (PhyType)]
1261#else
1262 __C89_NAMELESS
1263#endif
1264 union {
1265#ifdef __WIDL__
1266 [case (dot11_phy_type_hrdsss)]
1267#endif
1268 DOT11_HRDSSS_PHY_ATTRIBUTES HRDSSSAttributes;
1269#ifdef __WIDL__
1270 [case (dot11_phy_type_ofdm)]
1271#endif
1272 DOT11_OFDM_PHY_ATTRIBUTES OFDMAttributes;
1273#ifdef __WIDL__
1274 [case (dot11_phy_type_erp)]
1275#endif
1276 DOT11_ERP_PHY_ATTRIBUTES ERPAttributes;
1277#ifdef __WIDL__
1278 [case (dot11_phy_type_ht)] ;
1279 [default]
1280 ;
1281#endif
1282 }
1283#ifdef __cplusplus
1284 PhySpecificAttributes
1285#endif
1286 ;
1287 ULONG uNumberSupportedPowerLevels;
1288 ULONG TxPowerLevels[8];
1289 ULONG uNumDataRateMappingEntries;
1290 DOT11_DATA_RATE_MAPPING_ENTRY DataRateMappingEntries[DOT11_RATE_SET_MAX_LENGTH];
1291 DOT11_SUPPORTED_DATA_RATES_VALUE_V2 SupportedDataRatesValue;
1292};
1293
1294#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_OID_SUPPORTED 0x1
1295#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_CERTIFIED 0x2
1296#define DOT11_EXTSTA_ATTRIBUTES_SAFEMODE_RESERVED 0xc
1297
1298#define DOT11_EXTSTA_ATTRIBUTES_REVISION_1 1
1299#define DOT11_EXTSTA_ATTRIBUTES_REVISION_2 2
1300#define DOT11_EXTSTA_ATTRIBUTES_REVISION_3 3
1301
1302typedef struct DOT11_EXTSTA_ATTRIBUTES DOT11_EXTSTA_ATTRIBUTES, *PDOT11_EXTSTA_ATTRIBUTES;
1303
1304struct DOT11_EXTSTA_ATTRIBUTES {
1305 NDIS_OBJECT_HEADER Header;
1306 ULONG uScanSSIDListSize;
1307 ULONG uDesiredBSSIDListSize;
1308 ULONG uDesiredSSIDListSize;
1309 ULONG uExcludedMacAddressListSize;
1310 ULONG uPrivacyExemptionListSize;
1311 ULONG uKeyMappingTableSize;
1312 ULONG uDefaultKeyTableSize;
1313 ULONG uWEPKeyValueMaxLength;
1314 ULONG uPMKIDCacheSize;
1315 ULONG uMaxNumPerSTADefaultKeyTables;
1316 BOOLEAN bStrictlyOrderedServiceClassImplemented;
1317 UCHAR ucSupportedQoSProtocolFlags;
1318 BOOLEAN bSafeModeImplemented;
1319 ULONG uNumSupportedCountryOrRegionStrings;
1320#ifdef __WIDL__
1321 [size_is (uNumSupportedCountryOrRegionStrings)]
1322#endif
1323 PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings;
1324 ULONG uInfraNumSupportedUcastAlgoPairs;
1325#ifdef __WIDL__
1326 [size_is (uInfraNumSupportedUcastAlgoPairs)]
1327#endif
1328 PDOT11_AUTH_CIPHER_PAIR pInfraSupportedUcastAlgoPairs;
1329 ULONG uInfraNumSupportedMcastAlgoPairs;
1330#ifdef __WIDL__
1331 [size_is (uInfraNumSupportedMcastAlgoPairs)]
1332#endif
1333 PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastAlgoPairs;
1334 ULONG uAdhocNumSupportedUcastAlgoPairs;
1335#ifdef __WIDL__
1336 [size_is (uAdhocNumSupportedUcastAlgoPairs)]
1337#endif
1338 PDOT11_AUTH_CIPHER_PAIR pAdhocSupportedUcastAlgoPairs;
1339 ULONG uAdhocNumSupportedMcastAlgoPairs;
1340#ifdef __WIDL__
1341 [size_is (uAdhocNumSupportedMcastAlgoPairs)]
1342#endif
1343 PDOT11_AUTH_CIPHER_PAIR pAdhocSupportedMcastAlgoPairs;
1344 BOOLEAN bAutoPowerSaveMode;
1345 ULONG uMaxNetworkOffloadListSize;
1346 BOOLEAN bMFPCapable;
1347 ULONG uInfraNumSupportedMcastMgmtAlgoPairs;
1348#ifdef __WIDL__
1349 [size_is (uInfraNumSupportedMcastMgmtAlgoPairs)]
1350#endif
1351 PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastMgmtAlgoPairs;
1352};
1353
1354#if defined (_NDIS_) || defined (NDIS_WRAPPER)
1355#define DOT11_SEND_CONTEXT_REVISION_1 1
1356
1357#define DOT11_SEND_CONTEXT_SIZE ((sizeof (DOT11_SEND_CONTEXT) + MEMORY_ALLOCATION_ALIGNMENT - 1) &~ (MEMORY_ALLOCATION_ALIGNMENT-1))
1358
1359typedef struct _DOT11_SEND_CONTEXT {
1360 NDIS_OBJECT_HEADER Header;
1361 PVOID pvReserved;
1362 ULONG uFlags;
1363 ULONG uPSLifetime;
1364 ULONG uDelayedSleepValue;
1365 UCHAR ucTXDataRates[8];
1366 BOOLEAN bIndicateAssociatedACKs;
1367 BOOLEAN bIndicateTXStatus;
1368 UCHAR ucPriority;
1369 BOOLEAN bDontFragment;
1370 ULONG dwExtendedStatus;
1371 HANDLE hIntegrityOffload;
1372 HANDLE hWEPOffload;
1373 UCHAR ucWPAMSDUPriority;
1374 UCHAR ucNumOfRWsOnPeer;
1375 USHORT usAID;
1376 PDOT11_PER_MSDU_COUNTERS pDot11PerMSDUCounters;
1377} DOT11_SEND_CONTEXT, *PDOT11_SEND_CONTEXT;
1378
1379typedef struct _DOT11_SEND_EXTENSION_INFO {
1380 ULONG uVersion;
1381 NDIS_OBJECT_HEADER Header;
1382 PVOID pvReserved;
1383 ULONG uFlags;
1384 ULONG uPSLifetime;
1385 ULONG uDelayedSleepValue;
1386 UCHAR ucTXDataRates[8];
1387 BOOLEAN bIndicateAssociatedACKs;
1388 BOOLEAN bIndicateTXStatus;
1389 UCHAR ucPriority;
1390 BOOLEAN bDontFragment;
1391 ULONG dwExtendedStatus;
1392 HANDLE hIntegrityOffload;
1393 HANDLE hWEPOffload;
1394 UCHAR ucWPAMSDUPriority;
1395 UCHAR ucNumOfRWsOnPeer;
1396 USHORT usAID;
1397 PDOT11_PER_MSDU_COUNTERS pDot11PerMSDUCounters;
1398 USHORT usNumberOfFragments;
1399 DOT11_FRAGMENT_DESCRIPTOR Dot11FragmentDescriptors[1];
1400} DOT11_SEND_EXTENSION_INFO, *PDOT11_SEND_EXTENSION_INFO;
1401
1402typedef enum _DOT11_ACK_POLICY {
1403 dot11_ack_policy_none = 0,
1404 dot11_ack_policy_acknowledge = 1,
1405 dot11_ack_policy_do_not_acknowledge = 2,
1406} DOT11_ACK_POLICY, *PDOT11_ACK_POLICY;
1407
1408typedef struct _DOT11_SEND_EXTENSION_INFO_V2 {
1409 UCHAR ucQoSPriority:4;
1410 UCHAR ucAckPolicy:4;
1411 USHORT usExtendedTXDataRatesOffset;
1412 UCHAR ucNumOfExtendedTXDataRates;
1413 UCHAR ucBuffer[1];
1414} DOT11_SEND_EXTENSION_INFO_V2, *PDOT11_SEND_EXTENSION_INFO_V2;
1415
1416#define DOT11_RECV_CONTEXT_REVISION_1 1
1417
1418typedef struct _DOT11_RECV_CONTEXT {
1419 NDIS_OBJECT_HEADER Header;
1420 PVOID pvReserved;
1421 DOT11_PHY_TYPE dot11PhyType;
1422 ULONG uChCenterFrequency;
1423 LONG lRSSI;
1424 ULONG uRSSI;
1425 UCHAR ucPriority;
1426 UCHAR ucDataRate;
1427 UCHAR ucPeerMacAddress[6];
1428 ULONG dwExtendedStatus;
1429 HANDLE hWEPOffloadContext;
1430 HANDLE hAuthOffloadContext;
1431 USHORT usWEPAppliedMask;
1432 USHORT usWPAMSDUPriority;
1433 DOT11_IV48_COUNTER dot11LowestIV48Counter;
1434 USHORT usDot11LeftRWBitMap;
1435 DOT11_IV48_COUNTER dot11HighestIV48Counter;
1436 USHORT usDot11RightRWBitMap;
1437 USHORT usNumberOfMPDUsReceived;
1438} DOT11_RECV_CONTEXT, *PDOT11_RECV_CONTEXT;
1439
1440#define DOT11_RECV_CONTEXT_SIZE ((sizeof (DOT11_RECV_CONTEXT) + MEMORY_ALLOCATION_ALIGNMENT - 1) &~ (MEMORY_ALLOCATION_ALIGNMENT-1))
1441#else
1442typedef struct _DOT11_RECV_EXTENSION_INFO {
1443 ULONG uVersion;
1444 PVOID pvReserved;
1445 DOT11_PHY_TYPE dot11PhyType;
1446 ULONG uChCenterFrequency;
1447 LONG lRSSI;
1448 LONG lRSSIMin;
1449 LONG lRSSIMax;
1450 ULONG uRSSI;
1451 UCHAR ucPriority;
1452 UCHAR ucDataRate;
1453 UCHAR ucPeerMacAddress[6];
1454 ULONG dwExtendedStatus;
1455 HANDLE hWEPOffloadContext;
1456 HANDLE hAuthOffloadContext;
1457 USHORT usWEPAppliedMask;
1458 USHORT usWPAMSDUPriority;
1459 DOT11_IV48_COUNTER dot11LowestIV48Counter;
1460 USHORT usDot11LeftRWBitMap;
1461 DOT11_IV48_COUNTER dot11HighestIV48Counter;
1462 USHORT usDot11RightRWBitMap;
1463 USHORT usNumberOfMPDUsReceived;
1464 USHORT usNumberOfFragments;
1465 PVOID pNdisPackets[1];
1466} DOT11_RECV_EXTENSION_INFO, *PDOT11_RECV_EXTENSION_INFO;
1467
1468typedef struct _DOT11_RECV_EXTENSION_INFO_V2 {
1469 ULONG uVersion;
1470 PVOID pvReserved;
1471 DOT11_PHY_TYPE dot11PhyType;
1472 ULONG uChCenterFrequency;
1473 LONG lRSSI;
1474 ULONG uRSSI;
1475 UCHAR ucPriority;
1476 UCHAR ucDataRate;
1477 UCHAR ucPeerMacAddress[6];
1478 ULONG dwExtendedStatus;
1479 HANDLE hWEPOffloadContext;
1480 HANDLE hAuthOffloadContext;
1481 USHORT usWEPAppliedMask;
1482 USHORT usWPAMSDUPriority;
1483 DOT11_IV48_COUNTER dot11LowestIV48Counter;
1484 USHORT usDot11LeftRWBitMap;
1485 DOT11_IV48_COUNTER dot11HighestIV48Counter;
1486 USHORT usDot11RightRWBitMap;
1487 USHORT usNumberOfMPDUsReceived;
1488 USHORT usNumberOfFragments;
1489 PVOID pNdisPackets[1];
1490} DOT11_RECV_EXTENSION_INFO_V2, *PDOT11_RECV_EXTENSION_INFO_V2;
1491#endif
1492
1493#define DOT11_STATUS_SUCCESS 0x00000001
1494#define DOT11_STATUS_RETRY_LIMIT_EXCEEDED 0x00000002
1495#define DOT11_STATUS_UNSUPPORTED_PRIORITY 0x00000004
1496#define DOT11_STATUS_UNSUPPORTED_SERVICE_CLASS 0x00000008
1497#define DOT11_STATUS_UNAVAILABLE_PRIORITY 0x00000010
1498#define DOT11_STATUS_UNAVAILABLE_SERVICE_CLASS 0x00000020
1499#define DOT11_STATUS_XMIT_MSDU_TIMER_EXPIRED 0x00000040
1500#define DOT11_STATUS_UNAVAILABLE_BSS 0x00000080
1501#define DOT11_STATUS_EXCESSIVE_DATA_LENGTH 0x00000100
1502#define DOT11_STATUS_ENCRYPTION_FAILED 0x00000200
1503#define DOT11_STATUS_WEP_KEY_UNAVAILABLE 0x00000400
1504#define DOT11_STATUS_ICV_VERIFIED 0x00000800
1505#define DOT11_STATUS_PACKET_REASSEMBLED 0x00001000
1506#define DOT11_STATUS_PACKET_NOT_REASSEMBLED 0x00002000
1507#define DOT11_STATUS_GENERATE_AUTH_FAILED 0x00004000
1508#define DOT11_STATUS_AUTH_NOT_VERIFIED 0x00008000
1509#define DOT11_STATUS_AUTH_VERIFIED 0x00010000
1510#define DOT11_STATUS_AUTH_FAILED 0x00020000
1511#define DOT11_STATUS_PS_LIFETIME_EXPIRED 0x00040000
1512
1513typedef struct _DOT11_STATUS_INDICATION {
1514 ULONG uStatusType;
1515 NDIS_STATUS ndisStatus;
1516} DOT11_STATUS_INDICATION, *PDOT11_STATUS_INDICATION;
1517
1518typedef struct DOT11_MPDU_MAX_LENGTH_INDICATION {
1519 NDIS_OBJECT_HEADER Header;
1520 ULONG uPhyId;
1521 ULONG uMPDUMaxLength;
1522} DOT11_MPDU_MAX_LENGTH_INDICATION, *PDOT11_MPDU_MAX_LENGTH_INDICATION;
1523
1524#define DOT11_MPDU_MAX_LENGTH_INDICATION_REVISION_1 1
1525#define DOT11_ASSOCIATION_START_PARAMETERS_REVISION_1 1
1526
1527typedef struct DOT11_ASSOCIATION_START_PARAMETERS {
1528 NDIS_OBJECT_HEADER Header;
1529 DOT11_MAC_ADDRESS MacAddr;
1530 DOT11_SSID SSID;
1531 ULONG uIHVDataOffset, uIHVDataSize;
1532} DOT11_ASSOCIATION_START_PARAMETERS, *PDOT11_ASSOCIATION_START_PARAMETERS;
1533
1534typedef struct DOT11_ENCAP_ENTRY {
1535 USHORT usEtherType;
1536 USHORT usEncapType;
1537} DOT11_ENCAP_ENTRY, *PDOT11_ENCAP_ENTRY;
1538
1539typedef enum DOT11_DS_INFO {
1540 DOT11_DS_CHANGED,
1541 DOT11_DS_UNCHANGED,
1542 DOT11_DS_UNKNOWN
1543} DOT11_DS_INFO, *PDOT11_DS_INFO;
1544
1545typedef ULONG DOT11_ASSOC_STATUS;
1546
1547#define DOT11_ENCAP_RFC_1042 1
1548#define DOT11_ENCAP_802_1H 2
1549
1550#define DOT11_STATUS_SCAN_CONFIRM 1
1551#define DOT11_STATUS_JOIN_CONFIRM 2
1552#define DOT11_STATUS_START_CONFIRM 3
1553#define DOT11_STATUS_RESET_CONFIRM 4
1554#define DOT11_STATUS_AP_JOIN_CONFIRM 5
1555#define DOT11_STATUS_MPDU_MAX_LENGTH_CHANGED 6
1556
1557#define DOT11_ASSOC_STATUS_SUCCESS 0
1558#define DOT11_ASSOC_STATUS_FAILURE 0x00000001U
1559#define DOT11_ASSOC_STATUS_UNREACHABLE 0x00000002U
1560#define DOT11_ASSOC_STATUS_RADIO_OFF 0x00000003U
1561#define DOT11_ASSOC_STATUS_PHY_DISABLED 0x00000004U
1562#define DOT11_ASSOC_STATUS_CANCELLED 0x00000005U
1563#define DOT11_ASSOC_STATUS_CANDIDATE_LIST_EXHAUSTED 0x00000006U
1564#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_OS 0x00000007U
1565#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_ROAMING 0x00000008U
1566#define DOT11_ASSOC_STATUS_DISASSOCIATED_BY_RESET 0x00000009U
1567#define DOT11_ASSOC_STATUS_SYSTEM_ERROR 0x0000000aU
1568#define DOT11_ASSOC_STATUS_ROAMING_BETTER_AP_FOUND 0x0000000bU
1569#define DOT11_ASSOC_STATUS_ROAMING_ASSOCIATION_LOST 0x0000000cU
1570#define DOT11_ASSOC_STATUS_ROAMING_ADHOC 0x0000000dU
1571
1572#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED 0x00010000U
1573#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED_START DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED
1574#define DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED_END 0x0001ffffU
1575
1576#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED 0x00020000U
1577#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED_START DOT11_ASSOC_STATUS_PEER_DISASSOCIATED
1578#define DOT11_ASSOC_STATUS_PEER_DISASSOCIATED_END 0x0002ffffU
1579
1580#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE 0x00030000U
1581#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE_START DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE
1582#define DOT11_ASSOC_STATUS_ASSOCIATION_RESPONSE_END 0x0003ffffU
1583
1584#define DOT11_ASSOC_STATUS_REASON_CODE_MASK 0xffffU
1585
1586#define DOT11_ASSOC_STATUS_IHV_START 0x80000000U
1587#define DOT11_ASSOC_STATUS_IHV_END 0xffffffffU
1588
1589#define DOT11_ASSOCIATION_COMPLETION_PARAMETERS_REVISION_1 1
1590#define DOT11_ASSOCIATION_COMPLETION_PARAMETERS_REVISION_2 2
1591
1592typedef struct DOT11_ASSOCIATION_COMPLETION_PARAMETERS {
1593 NDIS_OBJECT_HEADER Header;
1594 DOT11_MAC_ADDRESS MacAddr;
1595 DOT11_ASSOC_STATUS uStatus;
1596 BOOLEAN bReAssocReq;
1597 BOOLEAN bReAssocResp;
1598 ULONG uAssocReqOffset, uAssocReqSize;
1599 ULONG uAssocRespOffset, uAssocRespSize;
1600 ULONG uBeaconOffset, uBeaconSize;
1601 ULONG uIHVDataOffset, uIHVDataSize;
1602 DOT11_AUTH_ALGORITHM AuthAlgo;
1603 DOT11_CIPHER_ALGORITHM UnicastCipher;
1604 DOT11_CIPHER_ALGORITHM MulticastCipher;
1605 ULONG uActivePhyListOffset, uActivePhyListSize;
1606 BOOLEAN bFourAddressSupported;
1607 BOOLEAN bPortAuthorized;
1608 UCHAR ucActiveQoSProtocol;
1609 DOT11_DS_INFO DSInfo;
1610 ULONG uEncapTableOffset, uEncapTableSize;
1611#if NTDDI_VERSION >= 0x06020000
1612 DOT11_CIPHER_ALGORITHM MulticastMgmtCipher;
1613 ULONG uAssocComebackTime;
1614#endif
1615} DOT11_ASSOCIATION_COMPLETION_PARAMETERS, *PDOT11_ASSOCIATION_COMPLETION_PARAMETERS;
1616
1617#define DOT11_CONNECTION_STATUS_SUCCESS DOT11_ASSOC_STATUS_SUCCESS
1618#define DOT11_CONNECTION_STATUS_FAILURE DOT11_ASSOC_STATUS_FAILURE
1619#define DOT11_CONNECTION_STATUS_CANDIDATE_LIST_EXHAUSTED DOT11_ASSOC_STATUS_CANDIDATE_LIST_EXHAUSTED
1620#define DOT11_CONNECTION_STATUS_PHY_POWER_DOWN DOT11_ASSOC_STATUS_RADIO_OFF
1621#define DOT11_CONNECTION_STATUS_CANCELLED DOT11_ASSOC_STATUS_CANCELLED
1622#define DOT11_CONNECTION_STATUS_IHV_START DOT11_ASSOC_STATUS_IHV_START
1623#define DOT11_CONNECTION_STATUS_IHV_END DOT11_ASSOC_STATUS_IHV_END
1624
1625#define DOT11_ROAMING_REASON_BETTER_AP_FOUND DOT11_ASSOC_STATUS_ROAMING_BETTER_AP_FOUND
1626#define DOT11_ROAMING_REASON_ASSOCIATION_LOST DOT11_ASSOC_STATUS_ROAMING_ASSOCIATION_LOST
1627#define DOT11_ROAMING_REASON_ADHOC DOT11_ASSOC_STATUS_ROAMING_ADHOC
1628#define DOT11_ROAMING_REASON_IHV_START DOT11_ASSOC_STATUS_IHV_START
1629#define DOT11_ROAMING_REASON_IHV_END DOT11_ASSOC_STATUS_IHV_END
1630
1631#define DOT11_DISASSOC_REASON_OS DOT11_ASSOC_STATUS_DISASSOCIATED_BY_OS
1632#define DOT11_DISASSOC_REASON_PEER_UNREACHABLE DOT11_ASSOC_STATUS_UNREACHABLE
1633#define DOT11_DISASSOC_REASON_PEER_DEAUTHENTICATED DOT11_ASSOC_STATUS_PEER_DEAUTHENTICATED
1634#define DOT11_DISASSOC_REASON_PEER_DISASSOCIATED DOT11_ASSOC_STATUS_PEER_DISASSOCIATED
1635#define DOT11_DISASSOC_REASON_RADIO_OFF DOT11_ASSOC_STATUS_RADIO_OFF
1636#define DOT11_DISASSOC_REASON_PHY_DISABLED DOT11_ASSOC_STATUS_PHY_DISABLED
1637#define DOT11_DISASSOC_REASON_IHV_START DOT11_ASSOC_STATUS_IHV_START
1638#define DOT11_DISASSOC_REASON_IHV_END DOT11_ASSOC_STATUS_IHV_END
1639
1640#define DOT11_CONNECTION_START_PARAMETERS_REVISION_1 1
1641#define DOT11_CONNECTION_COMPLETION_PARAMETERS_REVISION_1 1
1642#define DOT11_ROAMING_START_PARAMETERS_REVISION_1 1
1643#define DOT11_ROAMING_COMPLETION_PARAMETERS_REVISION_1 1
1644#define DOT11_DISASSOCIATION_PARAMETERS_REVISION_1 1
1645#define DOT11_TKIPMIC_FAILURE_PARAMETERS_REVISION_1 1
1646#define DOT11_PMKID_CANDIDATE_LIST_PARAMETERS_REVISION_1 1
1647#define DOT11_PHY_STATE_PARAMETERS_REVISION_1 1
1648#define DOT11_LINK_QUALITY_PARAMETERS_REVISION_1 1
1649#define DOT11_EXTSTA_SEND_CONTEXT_REVISION_1 1
1650#define DOT11_EXTSTA_RECV_CONTEXT_REVISION_1 1
1651
1652typedef struct DOT11_CONNECTION_START_PARAMETERS {
1653 NDIS_OBJECT_HEADER Header;
1654 DOT11_BSS_TYPE BSSType;
1655 DOT11_MAC_ADDRESS AdhocBSSID;
1656 DOT11_SSID AdhocSSID;
1657} DOT11_CONNECTION_START_PARAMETERS, *PDOT11_CONNECTION_START_PARAMETERS;
1658
1659typedef struct DOT11_CONNECTION_COMPLETION_PARAMETERS {
1660 NDIS_OBJECT_HEADER Header;
1661 DOT11_ASSOC_STATUS uStatus;
1662} DOT11_CONNECTION_COMPLETION_PARAMETERS, *PDOT11_CONNECTION_COMPLETION_PARAMETERS;
1663
1664typedef struct DOT11_ROAMING_START_PARAMETERS {
1665 NDIS_OBJECT_HEADER Header;
1666 DOT11_MAC_ADDRESS AdhocBSSID;
1667 DOT11_SSID AdhocSSID;
1668 DOT11_ASSOC_STATUS uRoamingReason;
1669} DOT11_ROAMING_START_PARAMETERS, *PDOT11_ROAMING_START_PARAMETERS;
1670
1671typedef struct DOT11_ROAMING_COMPLETION_PARAMETERS {
1672 NDIS_OBJECT_HEADER Header;
1673 DOT11_ASSOC_STATUS uStatus;
1674} DOT11_ROAMING_COMPLETION_PARAMETERS, *PDOT11_ROAMING_COMPLETION_PARAMETERS;
1675
1676typedef struct DOT11_DISASSOCIATION_PARAMETERS {
1677 NDIS_OBJECT_HEADER Header;
1678 DOT11_MAC_ADDRESS MacAddr;
1679 DOT11_ASSOC_STATUS uReason;
1680 ULONG uIHVDataOffset, uIHVDataSize;
1681} DOT11_DISASSOCIATION_PARAMETERS, *PDOT11_DISASSOCIATION_PARAMETERS;
1682
1683typedef struct DOT11_TKIPMIC_FAILURE_PARAMETERS {
1684 NDIS_OBJECT_HEADER Header;
1685 BOOLEAN bDefaultKeyFailure;
1686 ULONG uKeyIndex;
1687 DOT11_MAC_ADDRESS PeerMac;
1688} DOT11_TKIPMIC_FAILURE_PARAMETERS, *PDOT11_TKIPMIC_FAILURE_PARAMETERS;
1689
1690typedef struct DOT11_PMKID_CANDIDATE_LIST_PARAMETERS {
1691 NDIS_OBJECT_HEADER Header;
1692 ULONG uCandidateListSize;
1693 ULONG uCandidateListOffset;
1694} DOT11_PMKID_CANDIDATE_LIST_PARAMETERS, *PDOT11_PMKID_CANDIDATE_LIST_PARAMETERS;
1695
1696typedef struct DOT11_BSSID_CANDIDATE {
1697 DOT11_MAC_ADDRESS BSSID;
1698 ULONG uFlags;
1699} DOT11_BSSID_CANDIDATE, *PDOT11_BSSID_CANDIDATE;
1700
1701typedef struct DOT11_PHY_STATE_PARAMETERS {
1702 NDIS_OBJECT_HEADER Header;
1703 ULONG uPhyId;
1704 BOOLEAN bHardwarePhyState;
1705 BOOLEAN bSoftwarePhyState;
1706} DOT11_PHY_STATE_PARAMETERS, *PDOT11_PHY_STATE_PARAMETERS;
1707
1708typedef struct DOT11_LINK_QUALITY_ENTRY {
1709 DOT11_MAC_ADDRESS PeerMacAddr;
1710 UCHAR ucLinkQuality;
1711} DOT11_LINK_QUALITY_ENTRY, *PDOT11_LINK_QUALITY_ENTRY;
1712
1713typedef struct DOT11_LINK_QUALITY_PARAMETERS {
1714 NDIS_OBJECT_HEADER Header;
1715 ULONG uLinkQualityListSize;
1716 ULONG uLinkQualityListOffset;
1717} DOT11_LINK_QUALITY_PARAMETERS, *PDOT11_LINK_QUALITY_PARAMETERS;
1718
1719typedef struct DOT11_EXTSTA_SEND_CONTEXT {
1720 NDIS_OBJECT_HEADER Header;
1721 USHORT usExemptionActionType;
1722 ULONG uPhyId;
1723 ULONG uDelayedSleepValue;
1724#ifdef __WIDL__
1725 ULONG_PTR pvMediaSpecificInfo;
1726#else
1727 PVOID pvMediaSpecificInfo;
1728#endif
1729 ULONG uSendFlags;
1730} DOT11_EXTSTA_SEND_CONTEXT, *PDOT11_EXTSTA_SEND_CONTEXT;
1731
1732typedef struct DOT11_EXTSTA_RECV_CONTEXT {
1733 NDIS_OBJECT_HEADER Header;
1734 ULONG uReceiveFlags;
1735 ULONG uPhyId;
1736 ULONG uChCenterFrequency;
1737 USHORT usNumberOfMPDUsReceived;
1738 LONG lRSSI;
1739 UCHAR ucDataRate;
1740 ULONG uSizeMediaSpecificInfo;
1741#ifdef __WIDL__
1742 ULONG_PTR pvMediaSpecificInfo;
1743#else
1744 PVOID pvMediaSpecificInfo;
1745#endif
1746 ULONGLONG ullTimestamp;
1747} DOT11_EXTSTA_RECV_CONTEXT, *PDOT11_EXTSTA_RECV_CONTEXT;
1748
1749#define OID_DOT11_PRIVATE_OIDS_START (OID_DOT11_NDIS_START + 1024)
1750
1751#define OID_DOT11_CURRENT_ADDRESS (OID_DOT11_PRIVATE_OIDS_START + 2)
1752#define OID_DOT11_PERMANENT_ADDRESS (OID_DOT11_PRIVATE_OIDS_START + 3)
1753#define OID_DOT11_MULTICAST_LIST (OID_DOT11_PRIVATE_OIDS_START + 4)
1754#define OID_DOT11_MAXIMUM_LIST_SIZE (OID_DOT11_PRIVATE_OIDS_START + 5)
1755
1756#define DOT11_RECV_FLAG_RAW_PACKET 0x00000001U
1757#define DOT11_RECV_FLAG_RAW_PACKET_FCS_FAILURE 0x00000002U
1758#define DOT11_RECV_FLAG_RAW_PACKET_TIMESTAMP 0x00000004U
1759
1760#define DOT11_PMKID_CANDIDATE_PREAUTH_ENABLED 0x00000001U
1761
1762#define DEFINE_NWF_GUID(NAME, ORD) DEFINE_GUID (NAME, 0x6cb9a43e + (ORD), 0xc45f, 0x4039, 0x9f, 0xe6, 0xd0, 0x8c, 0xb0, 0x57, 0x18, 0x4c)
1763
1764DEFINE_NWF_GUID (GUID_NWF_OFFLOAD_CAPABILITY, 0);
1765DEFINE_NWF_GUID (GUID_NWF_CURRENT_OFFLOAD_CAPABILITY, 1);
1766DEFINE_NWF_GUID (GUID_NWF_WEP_OFFLOAD, 2);
1767DEFINE_NWF_GUID (GUID_NWF_WEP_UPLOAD, 3);
1768DEFINE_NWF_GUID (GUID_NWF_DEFAULT_WEP_OFFLOAD, 4);
1769DEFINE_NWF_GUID (GUID_NWF_DEFAULT_WEP_UPLOAD, 5);
1770DEFINE_NWF_GUID (GUID_NWF_MPDU_MAX_LENGTH, 6);
1771DEFINE_NWF_GUID (GUID_NWF_OPERATION_MODE_CAPABILITY, 7);
1772DEFINE_NWF_GUID (GUID_NWF_CURRENT_OPERATION_MODE, 8);
1773DEFINE_NWF_GUID (GUID_NWF_CURRENT_PACKET_FILTER, 9);
1774DEFINE_NWF_GUID (GUID_NWF_ATIM_WINDOW, 10);
1775DEFINE_NWF_GUID (GUID_NWF_SCAN_REQUEST, 11);
1776DEFINE_NWF_GUID (GUID_NWF_CURRENT_PHY_TYPE, 12);
1777DEFINE_NWF_GUID (GUID_NWF_JOIN_REQUEST, 13);
1778DEFINE_NWF_GUID (GUID_NWF_START_REQUEST, 14);
1779DEFINE_NWF_GUID (GUID_NWF_UPDATE_IE, 15);
1780DEFINE_NWF_GUID (GUID_NWF_RESET_REQUEST, 16);
1781DEFINE_NWF_GUID (GUID_NWF_NIC_POWER_STATE, 17);
1782DEFINE_NWF_GUID (GUID_NWF_OPTIONAL_CAPABILITY, 18);
1783DEFINE_NWF_GUID (GUID_NWF_CURRENT_OPTIONAL_CAPABILITY, 19);
1784DEFINE_NWF_GUID (GUID_NWF_STATION_ID, 20);
1785DEFINE_NWF_GUID (GUID_NWF_MEDIUM_OCCUPANCY_LIMIT, 21);
1786DEFINE_NWF_GUID (GUID_NWF_CF_POLLABLE, 22);
1787DEFINE_NWF_GUID (GUID_NWF_CFP_PERIOD, 23);
1788DEFINE_NWF_GUID (GUID_NWF_CFP_MAX_DURATION, 24);
1789DEFINE_NWF_GUID (GUID_NWF_POWER_MGMT_MODE, 25);
1790DEFINE_NWF_GUID (GUID_NWF_OPERATIONAL_RATE_SET, 26);
1791DEFINE_NWF_GUID (GUID_NWF_BEACON_PERIOD, 27);
1792DEFINE_NWF_GUID (GUID_NWF_DTIM_PERIOD, 28);
1793DEFINE_NWF_GUID (GUID_NWF_WEP_ICV_ERROR_COUNT, 29);
1794DEFINE_NWF_GUID (GUID_NWF_MAC_ADDRESS, 30);
1795DEFINE_NWF_GUID (GUID_NWF_RTS_THRESHOLD, 31);
1796DEFINE_NWF_GUID (GUID_NWF_SHORT_RETRY_LIMIT, 32);
1797DEFINE_NWF_GUID (GUID_NWF_LONG_RETRY_LIMIT, 33);
1798DEFINE_NWF_GUID (GUID_NWF_FRAGMENTATION_THRESHOLD, 34);
1799DEFINE_NWF_GUID (GUID_NWF_MAX_TRANSMIT_MSDU_LIFETIME, 35);
1800DEFINE_NWF_GUID (GUID_NWF_MAX_RECEIVE_LIFETIME, 36);
1801DEFINE_NWF_GUID (GUID_NWF_COUNTERS_ENTRY, 37);
1802DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_PHY_TYPES, 38);
1803DEFINE_NWF_GUID (GUID_NWF_CURRENT_REG_DOMAIN, 39);
1804DEFINE_NWF_GUID (GUID_NWF_TEMP_TYPE, 40);
1805DEFINE_NWF_GUID (GUID_NWF_CURRENT_TX_ANTENNA, 41);
1806DEFINE_NWF_GUID (GUID_NWF_DIVERSITY_SUPPORT, 42);
1807DEFINE_NWF_GUID (GUID_NWF_CURRENT_RX_ANTENNA, 43);
1808DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_POWER_LEVELS, 44);
1809DEFINE_NWF_GUID (GUID_NWF_CURRENT_TX_POWER_LEVEL, 45);
1810DEFINE_NWF_GUID (GUID_NWF_HOP_TIME, 46);
1811DEFINE_NWF_GUID (GUID_NWF_CURRENT_CHANNEL_NUMBER, 47);
1812DEFINE_NWF_GUID (GUID_NWF_MAX_DWELL_TIME, 48);
1813DEFINE_NWF_GUID (GUID_NWF_CURRENT_DWELL_TIME, 49);
1814DEFINE_NWF_GUID (GUID_NWF_CURRENT_SET, 50);
1815DEFINE_NWF_GUID (GUID_NWF_CURRENT_PATTERN, 51);
1816DEFINE_NWF_GUID (GUID_NWF_CURRENT_INDEX, 52);
1817DEFINE_NWF_GUID (GUID_NWF_CURRENT_CHANNEL, 53);
1818DEFINE_NWF_GUID (GUID_NWF_CCA_MODE_SUPPORTED, 54);
1819DEFINE_NWF_GUID (GUID_NWF_CURRENT_CCA_MODE, 55);
1820DEFINE_NWF_GUID (GUID_NWF_ED_THRESHOLD, 56);
1821DEFINE_NWF_GUID (GUID_NWF_CCA_WATCHDOG_TIMER_MAX, 57);
1822DEFINE_NWF_GUID (GUID_NWF_CCA_WATCHDOG_COUNT_MAX, 58);
1823DEFINE_NWF_GUID (GUID_NWF_CCA_WATCHDOG_TIMER_MIN, 59);
1824DEFINE_NWF_GUID (GUID_NWF_CCA_WATCHDOG_COUNT_MIN, 60);
1825DEFINE_NWF_GUID (GUID_NWF_REG_DOMAINS_SUPPORT_VALUE, 61);
1826DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_TX_ANTENNA, 62);
1827DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_RX_ANTENNA, 63);
1828DEFINE_NWF_GUID (GUID_NWF_DIVERSITY_SELECTION_RX, 64);
1829DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_DATA_RATES_VALUE, 65);
1830DEFINE_NWF_GUID (GUID_NWF_CURRENT_FREQUENCY, 66);
1831DEFINE_NWF_GUID (GUID_NWF_TI_THRESHOLD, 67);
1832DEFINE_NWF_GUID (GUID_NWF_FREQUENCY_BANDS_SUPPORTED, 68);
1833DEFINE_NWF_GUID (GUID_NWF_SHORT_PREAMBLE_OPTION_IMPLEMENTED, 69);
1834DEFINE_NWF_GUID (GUID_NWF_PBCC_OPTION_IMPLEMENTED, 70);
1835DEFINE_NWF_GUID (GUID_NWF_CHANNEL_AGILITY_PRESENT, 71);
1836DEFINE_NWF_GUID (GUID_NWF_CHANNEL_AGILITY_ENABLED, 72);
1837DEFINE_NWF_GUID (GUID_NWF_HR_CCA_MODE_SUPPORTED, 73);
1838DEFINE_NWF_GUID (GUID_NWF_MULTI_DOMAIN_CAPABILITY_IMPLEMENTED, 74);
1839DEFINE_NWF_GUID (GUID_NWF_MULTI_DOMAIN_CAPABILITY_ENABLED, 75);
1840DEFINE_NWF_GUID (GUID_NWF_COUNTRY_STRING, 76);
1841DEFINE_NWF_GUID (GUID_NWF_MULTI_DOMAIN_CAPABILITY, 77);
1842DEFINE_NWF_GUID (GUID_NWF_EHCC_PRIME_RADIX, 78);
1843DEFINE_NWF_GUID (GUID_NWF_EHCC_NUMBER_OF_CHANNELS_FAMILY_INDEX, 79);
1844DEFINE_NWF_GUID (GUID_NWF_EHCC_CAPABILITY_IMPLEMENTED, 80);
1845DEFINE_NWF_GUID (GUID_NWF_EHCC_CAPABILITY_ENABLED, 81);
1846DEFINE_NWF_GUID (GUID_NWF_HOP_ALGORITHM_ADOPTED, 82);
1847DEFINE_NWF_GUID (GUID_NWF_RANDOM_TABLE_FLAG, 83);
1848DEFINE_NWF_GUID (GUID_NWF_NUMBER_OF_HOPPING_SETS, 84);
1849DEFINE_NWF_GUID (GUID_NWF_HOP_MODULUS, 85);
1850DEFINE_NWF_GUID (GUID_NWF_HOP_OFFSET, 86);
1851DEFINE_NWF_GUID (GUID_NWF_HOPPING_PATTERN, 87);
1852DEFINE_NWF_GUID (GUID_NWF_RANDOM_TABLE_FIELD_NUMBER, 88);
1853DEFINE_NWF_GUID (GUID_NWF_WPA_TSC, 89);
1854DEFINE_NWF_GUID (GUID_NWF_RSSI_RANGE, 90);
1855DEFINE_NWF_GUID (GUID_NWF_RF_USAGE, 91);
1856DEFINE_NWF_GUID (GUID_NWF_NIC_SPECIFIC_EXTENSION, 92);
1857DEFINE_NWF_GUID (GUID_NWF_AP_JOIN_REQUEST, 93);
1858DEFINE_NWF_GUID (GUID_NWF_ERP_PBCC_OPTION_IMPLEMENTED, 94);
1859DEFINE_NWF_GUID (GUID_NWF_ERP_PBCC_OPTION_ENABLED, 95);
1860DEFINE_NWF_GUID (GUID_NWF_DSSS_OFDM_OPTION_IMPLEMENTED, 96);
1861DEFINE_NWF_GUID (GUID_NWF_DSSS_OFDM_OPTION_ENABLED, 97);
1862DEFINE_NWF_GUID (GUID_NWF_SHORT_SLOT_TIME_OPTION_IMPLEMENTED, 98);
1863DEFINE_NWF_GUID (GUID_NWF_SHORT_SLOT_TIME_OPTION_ENABLED, 99);
1864DEFINE_NWF_GUID (GUID_NWF_MAX_MAC_ADDRESS_STATES, 100);
1865DEFINE_NWF_GUID (GUID_NWF_RECV_SENSITIVITY_LIST, 101);
1866DEFINE_NWF_GUID (GUID_NWF_WME_IMPLEMENTED, 102);
1867DEFINE_NWF_GUID (GUID_NWF_WME_ENABLED, 103);
1868DEFINE_NWF_GUID (GUID_NWF_WME_AC_PARAMETERS, 104);
1869DEFINE_NWF_GUID (GUID_NWF_WME_UPDATE_IE, 105);
1870DEFINE_NWF_GUID (GUID_NWF_QOS_TX_QUEUES_SUPPORTED, 106);
1871DEFINE_NWF_GUID (GUID_NWF_QOS_TX_DURATION, 107);
1872DEFINE_NWF_GUID (GUID_NWF_QOS_TX_MEDIUM_TIME, 108);
1873DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_OFDM_FREQUENCY_LIST, 109);
1874DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_DSSS_CHANNEL_LIST, 110);
1875DEFINE_NWF_GUID (GUID_NWF_AUTO_CONFIG_ENABLED, 120);
1876DEFINE_NWF_GUID (GUID_NWF_ENUM_BSS_LIST, 121);
1877DEFINE_NWF_GUID (GUID_NWF_FLUSH_BSS_LIST, 122);
1878DEFINE_NWF_GUID (GUID_NWF_POWER_MGMT_REQUEST, 123);
1879DEFINE_NWF_GUID (GUID_NWF_DESIRED_SSID_LIST, 124);
1880DEFINE_NWF_GUID (GUID_NWF_EXCLUDED_MAC_ADDRESS_LIST, 125);
1881DEFINE_NWF_GUID (GUID_NWF_DESIRED_BSSID_LIST, 126);
1882DEFINE_NWF_GUID (GUID_NWF_DESIRED_BSS_TYPE, 127);
1883DEFINE_NWF_GUID (GUID_NWF_PMKID_LIST, 128);
1884DEFINE_NWF_GUID (GUID_NWF_CONNECT_REQUEST, 129);
1885DEFINE_NWF_GUID (GUID_NWF_EXCLUDE_UNENCRYPTED, 130);
1886DEFINE_NWF_GUID (GUID_NWF_STATISTICS, 131);
1887DEFINE_NWF_GUID (GUID_NWF_PRIVACY_EXEMPTION_LIST, 132);
1888DEFINE_NWF_GUID (GUID_NWF_ENABLED_AUTHENTICATION_ALGORITHM, 133);
1889DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_UNICAST_ALGORITHM_PAIR, 134);
1890DEFINE_NWF_GUID (GUID_NWF_ENABLED_UNICAST_CIPHER_ALGORITHM, 135);
1891DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_MULTICAST_ALGORITHM_PAIR, 136);
1892DEFINE_NWF_GUID (GUID_NWF_ENABLED_MULTICAST_CIPHER_ALGORITHM, 137);
1893DEFINE_NWF_GUID (GUID_NWF_CIPHER_DEFAULT_KEY_ID, 138);
1894DEFINE_NWF_GUID (GUID_NWF_CIPHER_DEFAULT_KEY, 139);
1895DEFINE_NWF_GUID (GUID_NWF_CIPHER_KEY_MAPPING_KEY, 140);
1896DEFINE_NWF_GUID (GUID_NWF_ENUM_ASSOCIATION_INFO, 141);
1897DEFINE_NWF_GUID (GUID_NWF_DISCONNECT_REQUEST, 142);
1898DEFINE_NWF_GUID (GUID_NWF_UNICAST_USE_GROUP_ENABLED, 143);
1899DEFINE_NWF_GUID (GUID_NWF_PHY_STATE, 144);
1900DEFINE_NWF_GUID (GUID_NWF_DESIRED_PHY_LIST, 145);
1901DEFINE_NWF_GUID (GUID_NWF_CURRENT_PHY_ID, 146);
1902DEFINE_NWF_GUID (GUID_NWF_MEDIA_STREAMING_ENABLED, 147);
1903DEFINE_NWF_GUID (GUID_NWF_UNREACHABLE_DETECTION_THRESHOLD, 148);
1904DEFINE_NWF_GUID (GUID_NWF_ACTIVE_PHY_LIST, 149);
1905DEFINE_NWF_GUID (GUID_NWF_EXTSTA_CAPABILITY, 150);
1906DEFINE_NWF_GUID (GUID_NWF_DATA_RATE_MAPPING_TABLE, 151);
1907DEFINE_NWF_GUID (GUID_NWF_SUPPORTED_COUNTRY_OR_REGION_STRING, 152);
1908DEFINE_NWF_GUID (GUID_NWF_DESIRED_COUNTRY_OR_REGION_STRING, 153);
1909DEFINE_NWF_GUID (GUID_NWF_PORT_STATE_NOTIFICATION, 154);
1910DEFINE_NWF_GUID (GUID_NWF_IBSS_PARAMS, 155);
1911DEFINE_NWF_GUID (GUID_NWF_QOS_PARAMS, 156);
1912DEFINE_NWF_GUID (GUID_NWF_SAFE_MODE_ENABLED, 157);
1913DEFINE_NWF_GUID (GUID_NWF_HIDDEN_NETWORK_ENABLED, 158);
1914DEFINE_NWF_GUID (GUID_NWF_ASSOCIATION_PARAMS, 159);
1915DEFINE_NWF_GUID (GUID_NWF_CURRENT_ADDRESS, 1026);
1916DEFINE_NWF_GUID (GUID_NWF_PERMANENT_ADDRESS, 1027);
1917DEFINE_NWF_GUID (GUID_NWF_MULTICAST_LIST, 1028);
1918DEFINE_NWF_GUID (GUID_NWF_MAXIMUM_LIST_SIZE, 1029);
1919#endif
1920
1921#ifdef NWF_EXTAP_SUPPORTED
1922#define NWF_EXTAP_OID (0x03U)
1923
1924#define OID_DOT11_WPS_ENABLED NWF_DEFINE_OID (0x01, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1925#define OID_DOT11_START_AP_REQUEST NWF_DEFINE_OID (0x02, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1926#define OID_DOT11_AVAILABLE_CHANNEL_LIST NWF_DEFINE_OID (0x03, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1927#define OID_DOT11_AVAILABLE_FREQUENCY_LIST NWF_DEFINE_OID (0x04, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1928#define OID_DOT11_DISASSOCIATE_PEER_REQUEST NWF_DEFINE_OID (0x05, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1929#define OID_DOT11_INCOMING_ASSOCIATION_DECISION NWF_DEFINE_OID (0x06, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1930#define OID_DOT11_ADDITIONAL_IE NWF_DEFINE_OID (0x07, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1931#define OID_DOT11_ENUM_PEER_INFO NWF_DEFINE_OID (0x08, NWF_EXTAP_OID, NWF_MANDATORY_OID)
1932
1933#define DOT11_ASSOC_ERROR_SOURCE_OS 0x0
1934#define DOT11_ASSOC_ERROR_SOURCE_REMOTE 0x01
1935#define DOT11_ASSOC_ERROR_SOURCE_OTHER 0xff
1936
1937#define DOT11_STOP_AP_REASON_FREQUENCY_NOT_AVAILABLE 0x1
1938#define DOT11_STOP_AP_REASON_CHANNEL_NOT_AVAILABLE 0x2
1939#define DOT11_STOP_AP_REASON_AP_ACTIVE 0x3
1940
1941#define DOT11_STOP_AP_REASON_IHV_START 0xff000000
1942#define DOT11_STOP_AP_REASON_IHV_END 0xffffffff
1943
1944#define DOT11_CAN_SUSTAIN_AP_REASON_IHV_START 0xff000000
1945#define DOT11_CAN_SUSTAIN_AP_REASON_IHV_END 0xffffffff
1946
1947#define DOT11_EXTAP_ATTRIBUTES_REVISION_1 1
1948#define DOT11_INCOMING_ASSOC_STARTED_PARAMETERS_REVISION_1 1
1949#define DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS_REVISION_1 1
1950#define DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS_REVISION_1 1
1951#define DOT11_STOP_AP_PARAMETERS_REVISION_1 1
1952#define DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS_REVISION_1 1
1953#define DOT11_CAN_SUSTAIN_AP_PARAMETERS_REVISION_1 1
1954#define DOT11_AVAILABLE_CHANNEL_LIST_REVISION_1 1
1955#define DOT11_AVAILABLE_FREQUENCY_LIST_REVISION_1 1
1956#define DOT11_DISASSOCIATE_PEER_REQUEST_REVISION_1 1
1957#define DOT11_INCOMING_ASSOC_DECISION_REVISION_1 1
1958#define DOT11_ADDITIONAL_IE_REVISION_1 1
1959#define DOT11_EXTAP_SEND_CONTEXT_REVISION_1 1
1960#define DOT11_EXTAP_RECV_CONTEXT_REVISION_1 1
1961#define DOT11_PEER_INFO_LIST_REVISION_1 1
1962#ifdef NWF_WFD_SUPPORTED
1963#define DOT11_INCOMING_ASSOC_DECISION_REVISION_2 2
1964#endif
1965
1966#define NDIS_SIZEOF_DOT11_EXTAP_ATTRIBUTES_REVISION_1 sizeof (DOT11_EXTAP_ATTRIBUTES)
1967#define DOT11_SIZEOF_INCOMING_ASSOC_DECISION_REVISION_1 sizeof (DOT11_INCOMING_ASSOC_DECISION)
1968#ifdef NWF_WFD_SUPPORTED
1969#define DOT11_SIZEOF_INCOMING_ASSOC_DECISION_REVISION_2 sizeof (DOT11_INCOMING_ASSOC_DECISION_V2)
1970#endif
1971
1972typedef struct _DOT11_EXTAP_ATTRIBUTES {
1973 NDIS_OBJECT_HEADER Header;
1974 ULONG uScanSSIDListSize;
1975 ULONG uDesiredSSIDListSize;
1976 ULONG uPrivacyExemptionListSize;
1977 ULONG uAssociationTableSize;
1978 ULONG uDefaultKeyTableSize;
1979 ULONG uWEPKeyValueMaxLength;
1980 BOOLEAN bStrictlyOrderedServiceClassImplemented;
1981 ULONG uNumSupportedCountryOrRegionStrings;
1982#ifdef __WIDL__
1983 [size_is (uNumSupportedCountryOrRegionStrings)]
1984#endif
1985 PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings;
1986 ULONG uInfraNumSupportedUcastAlgoPairs;
1987#ifdef __WIDL__
1988 [size_is (uInfraNumSupportedUcastAlgoPairs)]
1989#endif
1990 PDOT11_AUTH_CIPHER_PAIR pInfraSupportedUcastAlgoPairs;
1991 ULONG uInfraNumSupportedMcastAlgoPairs;
1992#ifdef __WIDL__
1993 [size_is (uInfraNumSupportedMcastAlgoPairs)]
1994#endif
1995 PDOT11_AUTH_CIPHER_PAIR pInfraSupportedMcastAlgoPairs;
1996} DOT11_EXTAP_ATTRIBUTES, *PDOT11_EXTAP_ATTRIBUTES;
1997
1998typedef struct _DOT11_INCOMING_ASSOC_STARTED_PARAMETERS {
1999 NDIS_OBJECT_HEADER Header;
2000 DOT11_MAC_ADDRESS PeerMacAddr;
2001} DOT11_INCOMING_ASSOC_STARTED_PARAMETERS, *PDOT11_INCOMING_ASSOC_STARTED_PARAMETERS;
2002
2003typedef struct _DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS {
2004 NDIS_OBJECT_HEADER Header;
2005 DOT11_MAC_ADDRESS PeerMacAddr;
2006 BOOLEAN bReAssocReq;
2007 ULONG uAssocReqOffset;
2008 ULONG uAssocReqSize;
2009} DOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS, *PDOT11_INCOMING_ASSOC_REQUEST_RECEIVED_PARAMETERS;
2010
2011typedef struct _DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS {
2012 NDIS_OBJECT_HEADER Header;
2013 DOT11_MAC_ADDRESS PeerMacAddr;
2014 ULONG uStatus;
2015 UCHAR ucErrorSource;
2016 BOOLEAN bReAssocReq;
2017 BOOLEAN bReAssocResp;
2018 ULONG uAssocReqOffset;
2019 ULONG uAssocReqSize;
2020 ULONG uAssocRespOffset;
2021 ULONG uAssocRespSize;
2022 DOT11_AUTH_ALGORITHM AuthAlgo;
2023 DOT11_CIPHER_ALGORITHM UnicastCipher;
2024 DOT11_CIPHER_ALGORITHM MulticastCipher;
2025 ULONG uActivePhyListOffset;
2026 ULONG uActivePhyListSize;
2027 ULONG uBeaconOffset;
2028 ULONG uBeaconSize;
2029} DOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS, *PDOT11_INCOMING_ASSOC_COMPLETION_PARAMETERS;
2030
2031typedef struct _DOT11_STOP_AP_PARAMETERS {
2032 NDIS_OBJECT_HEADER Header;
2033 ULONG ulReason;
2034} DOT11_STOP_AP_PARAMETERS, *PDOT11_STOP_AP_PARAMETERS;
2035
2036typedef struct _DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS {
2037 NDIS_OBJECT_HEADER Header;
2038 ULONG ulPhyId;
2039 __C89_NAMELESS union {
2040 ULONG ulChannel;
2041 ULONG ulFrequency;
2042 };
2043} DOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS, *PDOT11_PHY_FREQUENCY_ADOPTED_PARAMETERS;
2044
2045typedef struct _DOT11_CAN_SUSTAIN_AP_PARAMETERS {
2046 NDIS_OBJECT_HEADER Header;
2047 ULONG ulReason;
2048} DOT11_CAN_SUSTAIN_AP_PARAMETERS, *PDOT11_CAN_SUSTAIN_AP_PARAMETERS;
2049
2050typedef struct _DOT11_AVAILABLE_CHANNEL_LIST {
2051 NDIS_OBJECT_HEADER Header;
2052 ULONG uNumOfEntries;
2053 ULONG uTotalNumOfEntries;
2054 ULONG uChannelNumber[1];
2055} DOT11_AVAILABLE_CHANNEL_LIST, *PDOT11_AVAILABLE_CHANNEL_LIST;
2056
2057typedef struct _DOT11_AVAILABLE_FREQUENCY_LIST {
2058 NDIS_OBJECT_HEADER Header;
2059 ULONG uNumOfEntries;
2060 ULONG uTotalNumOfEntries;
2061 ULONG uFrequencyValue[1];
2062} DOT11_AVAILABLE_FREQUENCY_LIST, *PDOT11_AVAILABLE_FREQUENCY_LIST;
2063
2064typedef struct _DOT11_DISASSOCIATE_PEER_REQUEST {
2065 NDIS_OBJECT_HEADER Header;
2066 DOT11_MAC_ADDRESS PeerMacAddr;
2067 USHORT usReason;
2068} DOT11_DISASSOCIATE_PEER_REQUEST, *PDOT11_DISASSOCIATE_PEER_REQUEST;
2069
2070typedef struct _DOT11_INCOMING_ASSOC_DECISION {
2071 NDIS_OBJECT_HEADER Header;
2072 DOT11_MAC_ADDRESS PeerMacAddr;
2073 BOOLEAN bAccept;
2074 USHORT usReasonCode;
2075 ULONG uAssocResponseIEsOffset;
2076 ULONG uAssocResponseIEsLength;
2077} DOT11_INCOMING_ASSOC_DECISION, *PDOT11_INCOMING_ASSOC_DECISION;
2078
2079#ifdef NWF_WFD_SUPPORTED
2080typedef struct _DOT11_INCOMING_ASSOC_DECISION_V2 {
2081 NDIS_OBJECT_HEADER Header;
2082 DOT11_MAC_ADDRESS PeerMacAddr;
2083 BOOLEAN bAccept;
2084 USHORT usReasonCode;
2085 ULONG uAssocResponseIEsOffset;
2086 ULONG uAssocResponseIEsLength;
2087 DOT11_WFD_STATUS_CODE WFDStatus;
2088} DOT11_INCOMING_ASSOC_DECISION_V2, *PDOT11_INCOMING_ASSOC_DECISION_V2;
2089#endif
2090
2091typedef struct _DOT11_ADDITIONAL_IE {
2092 NDIS_OBJECT_HEADER Header;
2093 ULONG uBeaconIEsOffset;
2094 ULONG uBeaconIEsLength;
2095 ULONG uResponseIEsOffset;
2096 ULONG uResponseIEsLength;
2097} DOT11_ADDITIONAL_IE, *PDOT11_ADDITIONAL_IE;
2098
2099typedef struct DOT11_EXTSTA_SEND_CONTEXT DOT11_EXTAP_SEND_CONTEXT, *PDOT11_EXTAP_SEND_CONTEXT;
2100typedef struct DOT11_EXTSTA_RECV_CONTEXT DOT11_EXTAP_RECV_CONTEXT, *PDOT11_EXTAP_RECV_CONTEXT;
2101
2102typedef struct _DOT11_PEER_STATISTICS {
2103 ULONGLONG ullDecryptSuccessCount;
2104 ULONGLONG ullDecryptFailureCount;
2105 ULONGLONG ullTxPacketSuccessCount;
2106 ULONGLONG ullTxPacketFailureCount;
2107 ULONGLONG ullRxPacketSuccessCount;
2108 ULONGLONG ullRxPacketFailureCount;
2109} DOT11_PEER_STATISTICS, *PDOT11_PEER_STATISTICS;
2110
2111typedef struct _DOT11_PEER_INFO {
2112 DOT11_MAC_ADDRESS MacAddress;
2113 USHORT usCapabilityInformation;
2114 DOT11_AUTH_ALGORITHM AuthAlgo;
2115 DOT11_CIPHER_ALGORITHM UnicastCipherAlgo;
2116 DOT11_CIPHER_ALGORITHM MulticastCipherAlgo;
2117 BOOLEAN bWpsEnabled;
2118 USHORT usListenInterval;
2119 UCHAR ucSupportedRates[MAX_NUM_SUPPORTED_RATES_V2];
2120 USHORT usAssociationID;
2121 DOT11_ASSOCIATION_STATE AssociationState;
2122 DOT11_POWER_MODE PowerMode;
2123 LARGE_INTEGER liAssociationUpTime;
2124 DOT11_PEER_STATISTICS Statistics;
2125} DOT11_PEER_INFO, *PDOT11_PEER_INFO;
2126
2127typedef struct _DOT11_PEER_INFO_LIST {
2128 NDIS_OBJECT_HEADER Header;
2129 ULONG uNumOfEntries;
2130 ULONG uTotalNumOfEntries;
2131 DOT11_PEER_INFO PeerInfo[1];
2132} DOT11_PEER_INFO_LIST, *PDOT11_PEER_INFO_LIST;
2133#endif
2134
2135#ifdef NWF_VWIFI_SUPPORTED
2136
2137#define DOT11_VWIFI_COMBINATION_REVISION_1 1
2138typedef struct _DOT11_VWIFI_COMBINATION {
2139 NDIS_OBJECT_HEADER Header;
2140 ULONG uNumInfrastructure;
2141 ULONG uNumAdhoc;
2142 ULONG uNumSoftAP;
2143} DOT11_VWIFI_COMBINATION, *PDOT11_VWIFI_COMBINATION;
2144#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_1 sizeof (DOT11_VWIFI_COMBINATION)
2145
2146#define DOT11_VWIFI_COMBINATION_REVISION_2 2
2147
2148typedef struct _DOT11_VWIFI_COMBINATION_V2 {
2149 NDIS_OBJECT_HEADER Header;
2150 ULONG uNumInfrastructure;
2151 ULONG uNumAdhoc;
2152 ULONG uNumSoftAP;
2153 ULONG uNumVirtualStation;
2154} DOT11_VWIFI_COMBINATION_V2, *PDOT11_VWIFI_COMBINATION_V2;
2155
2156#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_2 sizeof (DOT11_VWIFI_COMBINATION_V2)
2157
2158#ifdef NWF_WFD_SUPPORTED
2159#define DOT11_VWIFI_COMBINATION_REVISION_3 3
2160
2161#define DOT11_SIZEOF_VWIFI_COMBINATION_REVISION_3 sizeof (DOT11_VWIFI_COMBINATION_V3)
2162
2163typedef struct _DOT11_VWIFI_COMBINATION_V3 {
2164 NDIS_OBJECT_HEADER Header;
2165 ULONG uNumInfrastructure;
2166 ULONG uNumAdhoc;
2167 ULONG uNumSoftAP;
2168 ULONG uNumVirtualStation;
2169 ULONG uNumWFDGroup;
2170} DOT11_VWIFI_COMBINATION_V3, *PDOT11_VWIFI_COMBINATION_V3;
2171#endif
2172
2173#define NWF_VWIFI_OID (0x04U)
2174
2175#define OID_DOT11_CREATE_MAC NWF_DEFINE_OID (0x01, NWF_VWIFI_OID, NWF_MANDATORY_OID)
2176#define OID_DOT11_DELETE_MAC NWF_DEFINE_OID (0x02, NWF_VWIFI_OID, NWF_MANDATORY_OID)
2177#define OID_DOT11_PREFERRED_MAC NWF_DEFINE_OID (0x03, NWF_VWIFI_OID, NWF_MANDATORY_OID)
2178#define OID_DOT11_VIRTUAL_STATION_CAPABILITY NWF_DEFINE_OID (0x04, NWF_VWIFI_OID, NWF_OPTIONAL_OID)
2179
2180#define DOT11_VWIFI_ATTRIBUTES_REVISION_1 1
2181#define DOT11_MAC_PARAMETERS_REVISION_1 1
2182
2183#define DOT11_SIZEOF_MAC_PARAMETERS_REVISION_1 sizeof (DOT11_MAC_PARAMETERS)
2184
2185typedef struct DOT11_VWIFI_ATTRIBUTES {
2186 NDIS_OBJECT_HEADER Header;
2187 ULONG uTotalNumOfEntries;
2188#ifdef __WIDL__
2189 [unique, size_is (uTotalNumOfEntries)] DOT11_VWIFI_COMBINATION Combinations[*];
2190#else
2191 DOT11_VWIFI_COMBINATION Combinations[1];
2192#endif
2193} DOT11_VWIFI_ATTRIBUTES, *PDOT11_VWIFI_ATTRIBUTES;
2194
2195typedef struct _DOT11_MAC_PARAMETERS {
2196 NDIS_OBJECT_HEADER Header;
2197 ULONG uOpmodeMask;
2198} DOT11_MAC_PARAMETERS, *PDOT11_MAC_PARAMETERS;
2199
2200typedef struct DOT11_MAC_INFO {
2201 ULONG uReserved;
2202 ULONG uNdisPortNumber;
2203 DOT11_MAC_ADDRESS MacAddr;
2204} DOT11_MAC_INFO, *PDOT11_MAC_INFO;
2205#endif
2206
2207#ifdef NWF_WFD_SUPPORTED
2208
2209#define DOT11_WFD_ATTRIBUTES_REVISION_1 1
2210
2211#define DOT11_SIZEOF_WFD_ATTRIBUTES_REVISION_1 sizeof (DOT11_WFD_ATTRIBUTES)
2212
2213typedef struct _DOT11_WFD_ATTRIBUTES {
2214 NDIS_OBJECT_HEADER Header;
2215 ULONG uNumConcurrentGORole;
2216 ULONG uNumConcurrentClientRole;
2217 ULONG WPSVersionsSupported;
2218 BOOLEAN bServiceDiscoverySupported;
2219 BOOLEAN bClientDiscoverabilitySupported;
2220 BOOLEAN bInfrastructureManagementSupported;
2221 ULONG uMaxSecondaryDeviceTypeListSize;
2222 DOT11_MAC_ADDRESS DeviceAddress;
2223 ULONG uInterfaceAddressListCount;
2224 PDOT11_MAC_ADDRESS pInterfaceAddressList;
2225 ULONG uNumSupportedCountryOrRegionStrings;
2226#ifdef __WIDL__
2227 [size_is (uNumSupportedCountryOrRegionStrings)]
2228#endif
2229 PDOT11_COUNTRY_OR_REGION_STRING pSupportedCountryOrRegionStrings;
2230 ULONG uDiscoveryFilterListSize;
2231 ULONG uGORoleClientTableSize;
2232} DOT11_WFD_ATTRIBUTES, *PDOT11_WFD_ATTRIBUTES;
2233
2234typedef UCHAR DOT11_WFD_GROUP_CAPABILITY;
2235
2236#define DOT11_WFD_STATUS_SUCCESS 0
2237#define DOT11_WFD_STATUS_FAILED_INFORMATION_IS_UNAVAILABLE 1
2238#define DOT11_WFD_STATUS_FAILED_INCOMPATIBLE_PARAMETERS 2
2239#define DOT11_WFD_STATUS_FAILED_LIMIT_REACHED 3
2240#define DOT11_WFD_STATUS_FAILED_INVALID_PARAMETERS 4
2241#define DOT11_WFD_STATUS_FAILED_UNABLE_TO_ACCOMODATE_REQUEST 5
2242#define DOT11_WFD_STATUS_FAILED_PREVIOUS_PROTOCOL_ERROR 6
2243#define DOT11_WFD_STATUS_FAILED_NO_COMMON_CHANNELS 7
2244#define DOT11_WFD_STATUS_FAILED_UNKNOWN_WFD_GROUP 8
2245#define DOT11_WFD_STATUS_FAILED_MATCHING_MAX_INTENT 9
2246#define DOT11_WFD_STATUS_FAILED_INCOMPATIBLE_PROVISIONING_METHOD 10
2247#define DOT11_WFD_STATUS_FAILED_REJECTED_BY_USER 11
2248
2249#define DOT11_WFD_MINOR_REASON_SUCCESS 0
2250#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_FROM_WLAN_CROSS_CONNECTION_POLICY 1
2251#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_NOT_MANAGED_INFRASTRUCTURE_CAPABLE 2
2252#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_WFD_COEXISTENCE_POLICY 3
2253#define DOT11_WFD_MINOR_REASON_DISASSOCIATED_INFRASTRUCTURE_MANAGED_POLICY 4
2254
2255#define DOT11_WPS_VERSION_1_0 0x01
2256#define DOT11_WPS_VERSION_2_0 0x02
2257
2258#define DOT11_WFD_GROUP_CAPABILITY_NONE 0x00
2259#define DOT11_WFD_GROUP_CAPABILITY_GROUP_OWNER 0x01
2260#define DOT11_WFD_GROUP_CAPABILITY_PERSISTENT_GROUP 0x02
2261#define DOT11_WFD_GROUP_CAPABILITY_GROUP_LIMIT_REACHED 0x04
2262#define DOT11_WFD_GROUP_CAPABILITY_INTRABSS_DISTRIBUTION_SUPPORTED 0x08
2263#define DOT11_WFD_GROUP_CAPABILITY_CROSS_CONNECTION_SUPPORTED 0x10
2264#define DOT11_WFD_GROUP_CAPABILITY_PERSISTENT_RECONNECT_SUPPORTED 0x20
2265#define DOT11_WFD_GROUP_CAPABILITY_IN_GROUP_FORMATION 0x40
2266#define DOT11_WFD_GROUP_CAPABILITY_RESERVED_7 0x80
2267
2268#define DOT11_WPS_DEVICE_NAME_MAX_LENGTH 32
2269
2270typedef struct _DOT11_WFD_DEVICE_TYPE {
2271 USHORT CategoryID;
2272 USHORT SubCategoryID;
2273 UCHAR OUI[4];
2274} DOT11_WFD_DEVICE_TYPE, *PDOT11_WFD_DEVICE_TYPE;
2275
2276typedef struct _DOT11_WPS_DEVICE_NAME {
2277 ULONG uDeviceNameLength;
2278 UCHAR ucDeviceName[DOT11_WPS_DEVICE_NAME_MAX_LENGTH];
2279} DOT11_WPS_DEVICE_NAME, *PDOT11_WPS_DEVICE_NAME;
2280
2281typedef struct _DOT11_WFD_CONFIGURATION_TIMEOUT {
2282 UCHAR GOTimeout;
2283 UCHAR ClientTimeout;
2284} DOT11_WFD_CONFIGURATION_TIMEOUT, *PDOT11_WFD_CONFIGURATION_TIMEOUT;
2285
2286typedef struct _DOT11_WFD_GROUP_ID {
2287 DOT11_MAC_ADDRESS DeviceAddress;
2288 DOT11_SSID SSID;
2289} DOT11_WFD_GROUP_ID, *PDOT11_WFD_GROUP_ID;
2290
2291typedef struct _DOT11_WFD_GO_INTENT {
2292 UCHAR TieBreaker:1;
2293 UCHAR Intent:7;
2294} DOT11_WFD_GO_INTENT, *PDOT11_WFD_GO_INTENT;
2295
2296typedef struct _DOT11_WFD_CHANNEL {
2297 DOT11_COUNTRY_OR_REGION_STRING CountryRegionString;
2298 UCHAR OperatingClass;
2299 UCHAR ChannelNumber;
2300} DOT11_WFD_CHANNEL, *PDOT11_WFD_CHANNEL;
2301
2302typedef enum _DOT11_WPS_CONFIG_METHOD {
2303 DOT11_WPS_CONFIG_METHOD_NULL = 0,
2304 DOT11_WPS_CONFIG_METHOD_DISPLAY = 0x0008,
2305 DOT11_WPS_CONFIG_METHOD_PUSHBUTTON = 0x0080,
2306 DOT11_WPS_CONFIG_METHOD_KEYPAD = 0x0100
2307} DOT11_WPS_CONFIG_METHOD, *PDOT11_WPS_CONFIG_METHOD;
2308
2309typedef enum _DOT11_WPS_DEVICE_PASSWORD_ID {
2310 DOT11_WPS_PASSWORD_ID_DEFAULT = 0x0000,
2311 DOT11_WPS_PASSWORD_ID_USER_SPECIFIED = 0x0001,
2312 DOT11_WPS_PASSWORD_ID_MACHINE_SPECIFIED = 0x0002,
2313 DOT11_WPS_PASSWORD_ID_REKEY = 0x0003,
2314 DOT11_WPS_PASSWORD_ID_PUSHBUTTON = 0x0004,
2315 DOT11_WPS_PASSWORD_ID_REGISTRAR_SPECIFIED = 0x0005,
2316} DOT11_WPS_DEVICE_PASSWORD_ID, *PDOT11_WPS_DEVICE_PASSWORD_ID;
2317
2318#define DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS_REVISION_1 1
2319#define DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2320#define DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 1
2321#define DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2322#define DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 1
2323#define DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2324
2325#define DOT11_SIZEOF_WFD_DISCOVER_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS)
2326#define DOT11_SIZEOF_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS)
2327#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS)
2328#define DOT11_SIZEOF_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS)
2329#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS)
2330#define DOT11_SIZEOF_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS)
2331
2332#define DOT11_WFD_DISCOVER_COMPLETE_MAX_LIST_SIZE 128
2333
2334typedef struct _DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS {
2335 NDIS_OBJECT_HEADER Header;
2336 NDIS_STATUS Status;
2337 ULONG uNumOfEntries;
2338 ULONG uTotalNumOfEntries;
2339 ULONG uListOffset;
2340 ULONG uListLength;
2341} DOT11_WFD_DISCOVER_COMPLETE_PARAMETERS, *PDOT11_WFD_DISCOVER_COMPLETE_PARAMETERS;
2342
2343typedef struct _DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS {
2344 NDIS_OBJECT_HEADER Header;
2345 DOT11_MAC_ADDRESS PeerDeviceAddress;
2346 DOT11_DIALOG_TOKEN DialogToken;
2347 NDIS_STATUS Status;
2348 ULONG uIEsOffset;
2349 ULONG uIEsLength;
2350} DOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS, *PDOT11_GO_NEGOTIATION_REQUEST_SEND_COMPLETE_PARAMETERS;
2351
2352typedef struct _DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS {
2353 NDIS_OBJECT_HEADER Header;
2354 DOT11_MAC_ADDRESS PeerDeviceAddress;
2355 DOT11_DIALOG_TOKEN DialogToken;
2356 PVOID RequestContext;
2357 ULONG uIEsOffset;
2358 ULONG uIEsLength;
2359} DOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS, *PDOT11_RECEIVED_GO_NEGOTIATION_REQUEST_PARAMETERS;
2360
2361typedef struct _DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS {
2362 NDIS_OBJECT_HEADER Header;
2363 DOT11_MAC_ADDRESS PeerDeviceAddress;
2364 DOT11_DIALOG_TOKEN DialogToken;
2365 NDIS_STATUS Status;
2366 ULONG uIEsOffset;
2367 ULONG uIEsLength;
2368} DOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS, *PDOT11_GO_NEGOTIATION_RESPONSE_SEND_COMPLETE_PARAMETERS;
2369
2370typedef struct _DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS {
2371 NDIS_OBJECT_HEADER Header;
2372 DOT11_MAC_ADDRESS PeerDeviceAddress;
2373 DOT11_DIALOG_TOKEN DialogToken;
2374 PVOID ResponseContext;
2375 ULONG uIEsOffset;
2376 ULONG uIEsLength;
2377} DOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS, *PDOT11_RECEIVED_GO_NEGOTIATION_RESPONSE_PARAMETERS;
2378
2379typedef struct _DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS {
2380 NDIS_OBJECT_HEADER Header;
2381 DOT11_MAC_ADDRESS PeerDeviceAddress;
2382 DOT11_DIALOG_TOKEN DialogToken;
2383 NDIS_STATUS Status;
2384 ULONG uIEsOffset;
2385 ULONG uIEsLength;
2386} DOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS, *PDOT11_GO_NEGOTIATION_CONFIRMATION_SEND_COMPLETE_PARAMETERS;
2387
2388#define DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 1
2389typedef struct _DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS {
2390 NDIS_OBJECT_HEADER Header;
2391 DOT11_MAC_ADDRESS PeerDeviceAddress;
2392 DOT11_DIALOG_TOKEN DialogToken;
2393 ULONG uIEsOffset;
2394 ULONG uIEsLength;
2395} DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS, *PDOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS;
2396#define DOT11_SIZEOF_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_GO_NEGOTIATION_CONFIRMATION_PARAMETERS)
2397
2398#define DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2399typedef struct _DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS {
2400 NDIS_OBJECT_HEADER Header;
2401 DOT11_MAC_ADDRESS PeerDeviceAddress;
2402 DOT11_MAC_ADDRESS ReceiverAddress;
2403 DOT11_DIALOG_TOKEN DialogToken;
2404 NDIS_STATUS Status;
2405 ULONG uIEsOffset;
2406 ULONG uIEsLength;
2407} DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS, *PDOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS;
2408#define DOT11_SIZEOF_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_INVITATION_REQUEST_SEND_COMPLETE_PARAMETERS)
2409
2410#define DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS_REVISION_1 1
2411typedef struct _DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS {
2412 NDIS_OBJECT_HEADER Header;
2413 DOT11_MAC_ADDRESS TransmitterDeviceAddress;
2414 DOT11_MAC_ADDRESS BSSID;
2415 DOT11_DIALOG_TOKEN DialogToken;
2416 PVOID RequestContext;
2417 ULONG uIEsOffset;
2418 ULONG uIEsLength;
2419} DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS, *PDOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS;
2420#define DOT11_SIZEOF_RECEIVED_INVITATION_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_INVITATION_REQUEST_PARAMETERS)
2421
2422#define DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2423typedef struct _DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS {
2424 NDIS_OBJECT_HEADER Header;
2425 DOT11_MAC_ADDRESS ReceiverDeviceAddress;
2426 DOT11_DIALOG_TOKEN DialogToken;
2427 NDIS_STATUS Status;
2428 ULONG uIEsOffset;
2429 ULONG uIEsLength;
2430} DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS, *PDOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS;
2431#define DOT11_SIZEOF_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_INVITATION_RESPONSE_SEND_COMPLETE_PARAMETERS)
2432
2433#define DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS_REVISION_1 1
2434typedef struct _DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS {
2435 NDIS_OBJECT_HEADER Header;
2436 DOT11_MAC_ADDRESS TransmitterDeviceAddress;
2437 DOT11_MAC_ADDRESS BSSID;
2438 DOT11_DIALOG_TOKEN DialogToken;
2439 ULONG uIEsOffset;
2440 ULONG uIEsLength;
2441} DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS, *PDOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS;
2442#define DOT11_SIZEOF_RECEIVED_INVITATION_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_INVITATION_RESPONSE_PARAMETERS)
2443
2444#define DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2445typedef struct _DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS {
2446 NDIS_OBJECT_HEADER Header;
2447 DOT11_MAC_ADDRESS PeerDeviceAddress;
2448 DOT11_MAC_ADDRESS ReceiverAddress;
2449 DOT11_DIALOG_TOKEN DialogToken;
2450 NDIS_STATUS Status;
2451 ULONG uIEsOffset;
2452 ULONG uIEsLength;
2453} DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS, *PDOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS;
2454
2455#define NWF_WFD_DEVICE_OID (0x05U)
2456#define NWF_WFD_ROLE_OID (0x06U)
2457
2458#define DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 1
2459#define DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 1
2460#define DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 1
2461#define DOT11_WFD_DEVICE_CAPABILITY_CONFIG_REVISION_1 1
2462#define DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG_REVISION_1 1
2463#define DOT11_WFD_DEVICE_INFO_REVISION_1 1
2464#define DOT11_WFD_DISCOVER_DEVICE_FILTER_REVISION_1
2465#define DOT11_SIZEOF_WFD_DISCOVER_DEVICE_FILTER_REVISION_1
2466#define DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST_REVISION_1 1
2467#define DOT11_WFD_DISCOVER_REQUEST_REVISION_1 1
2468#define DOT11_WFD_ADDITIONAL_IE_REVISION_1 1
2469
2470#define DOT11_SIZEOF_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_PROVISION_DISCOVERY_REQUEST_SEND_COMPLETE_PARAMETERS)
2471#define DOT11_SIZEOF_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS)
2472#define DOT11_SIZEOF_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS_REVISION_1 sizeof (DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS)
2473#define DOT11_SIZEOF_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS)
2474#define DOT11_SIZEOF_WFD_DEVICE_CAPABILITY_CONFIG_1 sizeof (DOT11_WFD_DEVICE_CAPABILITY_CONFIG)
2475#define DOT11_SIZEOF_WFD_GROUP_CAPABILITY_CONFIG_1 sizeof (DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG)
2476#define DOT11_SIZEOF_WFD_DEVICE_INFO_REVISION_1 sizeof (DOT11_WFD_DEVICE_INFO)
2477#define DOT11_SIZEOF_WFD_SECONDARY_DEVICE_TYPE_LIST_REVISION_1 FIELD_OFFSET (DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST, SecondaryDeviceTypes)
2478#define DOT11_SIZEOF_WFD_DISCOVER_REQUEST_REVISION_1 sizeof (DOT11_WFD_DISCOVER_REQUEST)
2479
2480#define OID_DOT11_WFD_DEVICE_CAPABILITY NWF_DEFINE_OID (0x01, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2481#define OID_DOT11_WFD_GROUP_OWNER_CAPABILITY NWF_DEFINE_OID (0x02, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2482#define OID_DOT11_WFD_DEVICE_INFO NWF_DEFINE_OID (0x03, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2483#define OID_DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST NWF_DEFINE_OID (0x04, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2484#define OID_DOT11_WFD_DISCOVER_REQUEST NWF_DEFINE_OID (0x05, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2485#define OID_DOT11_WFD_ENUM_DEVICE_LIST NWF_DEFINE_OID (0x06, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2486#define OID_DOT11_WFD_LISTEN_STATE_DISCOVERABILITY NWF_DEFINE_OID (0x07, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2487#define OID_DOT11_WFD_ADDITIONAL_IE NWF_DEFINE_OID (0x08, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2488
2489#define DOT11_WFD_DEVICE_ENTRY_GET_DEVICE_SIZE(DEV) (sizeof (DOT11_WFD_DEVICE_ENTRY) + (DEV)->uBeaconIEsLength + (DEV)->uProbeResponseIEsLength)
2490
2491typedef struct _DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS {
2492 NDIS_OBJECT_HEADER Header;
2493 DOT11_MAC_ADDRESS TransmitterDeviceAddress;
2494 DOT11_MAC_ADDRESS BSSID;
2495 DOT11_DIALOG_TOKEN DialogToken;
2496 PVOID RequestContext;
2497 ULONG uIEsOffset;
2498 ULONG uIEsLength;
2499} DOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS, *PDOT11_RECEIVED_PROVISION_DISCOVERY_REQUEST_PARAMETERS;
2500
2501typedef struct _DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS {
2502 NDIS_OBJECT_HEADER Header;
2503 DOT11_MAC_ADDRESS ReceiverDeviceAddress;
2504 DOT11_DIALOG_TOKEN DialogToken;
2505 NDIS_STATUS Status;
2506 ULONG uIEsOffset;
2507 ULONG uIEsLength;
2508} DOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS, *PDOT11_PROVISION_DISCOVERY_RESPONSE_SEND_COMPLETE_PARAMETERS;
2509
2510typedef struct _DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS {
2511 NDIS_OBJECT_HEADER Header;
2512 DOT11_MAC_ADDRESS TransmitterDeviceAddress;
2513 DOT11_MAC_ADDRESS BSSID;
2514 DOT11_DIALOG_TOKEN DialogToken;
2515 ULONG uIEsOffset;
2516 ULONG uIEsLength;
2517} DOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS, *PDOT11_RECEIVED_PROVISION_DISCOVERY_RESPONSE_PARAMETERS;
2518
2519typedef struct _DOT11_WFD_DEVICE_CAPABILITY_CONFIG {
2520 NDIS_OBJECT_HEADER Header;
2521 BOOLEAN bServiceDiscoveryEnabled;
2522 BOOLEAN bClientDiscoverabilityEnabled;
2523 BOOLEAN bConcurrentOperationSupported;
2524 BOOLEAN bInfrastructureManagementEnabled;
2525 BOOLEAN bDeviceLimitReached;
2526 BOOLEAN bInvitationProcedureEnabled;
2527 ULONG WPSVersionsEnabled;
2528} DOT11_WFD_DEVICE_CAPABILITY_CONFIG, *PDOT11_WFD_DEVICE_CAPABILITY_CONFIG;
2529
2530typedef struct _DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG {
2531 NDIS_OBJECT_HEADER Header;
2532 BOOLEAN bPersistentGroupEnabled;
2533 BOOLEAN bIntraBSSDistributionSupported;
2534 BOOLEAN bCrossConnectionSupported;
2535 BOOLEAN bPersistentReconnectSupported;
2536 BOOLEAN bGroupFormationEnabled;
2537 ULONG uMaximumGroupLimit;
2538} DOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG, *PDOT11_WFD_GROUP_OWNER_CAPABILITY_CONFIG;
2539
2540typedef struct _DOT11_WFD_DEVICE_INFO {
2541 NDIS_OBJECT_HEADER Header;
2542 DOT11_MAC_ADDRESS DeviceAddress;
2543 USHORT ConfigMethods;
2544 DOT11_WFD_DEVICE_TYPE PrimaryDeviceType;
2545 DOT11_WPS_DEVICE_NAME DeviceName;
2546} DOT11_WFD_DEVICE_INFO, *PDOT11_WFD_DEVICE_INFO;
2547
2548typedef struct _DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST {
2549 NDIS_OBJECT_HEADER Header;
2550 ULONG uNumOfEntries;
2551 ULONG uTotalNumOfEntries;
2552 DOT11_WFD_DEVICE_TYPE SecondaryDeviceTypes[1];
2553} DOT11_WFD_SECONDARY_DEVICE_TYPE_LIST, *PDOT11_WFD_SECONDARY_DEVICE_TYPE_LIST;
2554
2555typedef enum _DOT11_WFD_DISCOVER_TYPE {
2556 dot11_wfd_discover_type_scan_only = 1,
2557 dot11_wfd_discover_type_find_only = 2,
2558 dot11_wfd_discover_type_auto = 3,
2559 dot11_wfd_discover_type_scan_social_channels = 4,
2560 dot11_wfd_discover_type_forced = 0x80000000
2561} DOT11_WFD_DISCOVER_TYPE, *PDOT11_WFD_DISCOVER_TYPE;
2562
2563typedef enum _DOT11_WFD_SCAN_TYPE {
2564 dot11_wfd_scan_type_active = 1,
2565 dot11_wfd_scan_type_passive = 2,
2566 dot11_wfd_scan_type_auto = 3
2567} DOT11_WFD_SCAN_TYPE, *PDOT11_WFD_SCAN_TYPE;
2568
2569#define DISCOVERY_FILTER_BITMASK_DEVICE 0x1
2570#define DISCOVERY_FILTER_BITMASK_GO 0x2
2571#define DISCOVERY_FILTER_BITMASK_ANY 0xf
2572
2573typedef struct _DOT11_WFD_DISCOVER_DEVICE_FILTER {
2574 DOT11_MAC_ADDRESS DeviceID;
2575 UCHAR ucBitmask;
2576 DOT11_SSID GroupSSID;
2577} DOT11_WFD_DISCOVER_DEVICE_FILTER, *PDOT11_WFD_DISCOVER_DEVICE_FILTER;
2578
2579typedef struct _DOT11_WFD_DISCOVER_REQUEST {
2580 NDIS_OBJECT_HEADER Header;
2581 DOT11_WFD_DISCOVER_TYPE DiscoverType;
2582 DOT11_WFD_SCAN_TYPE ScanType;
2583 ULONG uDiscoverTimeout;
2584 ULONG uDeviceFilterListOffset;
2585 ULONG uNumDeviceFilters;
2586 ULONG uIEsOffset;
2587 ULONG uIEsLength;
2588 BOOLEAN bForceScanLegacyNetworks;
2589} DOT11_WFD_DISCOVER_REQUEST, *PDOT11_WFD_DISCOVER_REQUEST;
2590
2591#ifndef __WIDL__
2592#define DOT11_DEVICE_ENTRY_BYTE_ARRAY_REVISION_1 1
2593typedef struct _DOT11_WFD_DEVICE_ENTRY {
2594 ULONG uPhyId;
2595 DOT11_BSS_ENTRY_PHY_SPECIFIC_INFO PhySpecificInfo;
2596 DOT11_MAC_ADDRESS dot11BSSID;
2597 DOT11_BSS_TYPE dot11BSSType;
2598 DOT11_MAC_ADDRESS TransmitterAddress;
2599 LONG lRSSI;
2600 ULONG uLinkQuality;
2601 USHORT usBeaconPeriod;
2602 ULONGLONG ullTimestamp;
2603 ULONGLONG ullBeaconHostTimestamp;
2604 ULONGLONG ullProbeResponseHostTimestamp;
2605 USHORT usCapabilityInformation;
2606 ULONG uBeaconIEsOffset;
2607 ULONG uBeaconIEsLength;
2608 ULONG uProbeResponseIEsOffset;
2609 ULONG uProbeResponseIEsLength;
2610} DOT11_WFD_DEVICE_ENTRY, *PDOT11_WFD_DEVICE_ENTRY;
2611#endif
2612
2613#define DOT11_WFD_DEVICE_NOT_DISCOVERABLE 0
2614#define DOT11_WFD_DEVICE_AUTO_AVAILABILITY 16
2615#define DOT11_WFD_DEVICE_HIGH_AVAILABILITY 24
2616
2617typedef struct _DOT11_WFD_ADDITIONAL_IE {
2618 NDIS_OBJECT_HEADER Header;
2619 ULONG uBeaconIEsOffset;
2620 ULONG uBeaconIEsLength;
2621 ULONG uProbeResponseIEsOffset;
2622 ULONG uProbeResponseIEsLength;
2623 ULONG uDefaultRequestIEsOffset;
2624 ULONG uDefaultRequestIEsLength;
2625} DOT11_WFD_ADDITIONAL_IE, *PDOT11_WFD_ADDITIONAL_IE;
2626
2627#define DOT11_SIZEOF_WFD_ADDITIONAL_IE_REVISION_1 sizeof (DOT11_WFD_ADDITIONAL_IE)
2628
2629#define DOT11_WFD_ADDITIONAL_IE_GET_HEADER_SIZE(ADDIE) (sizeof (DOT11_WFD_ADDITIONAL_IE))
2630#define DOT11_WFD_ADDITIONAL_IE_GET_HEADER_END(ADDIE) (((PCHAR) (ADDIE))+sizeof (DOT11_WFD_ADDITIONAL_IE))
2631#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE(ADDIE) (((PCHAR) (ADDIE))+ (ADDIE)->uBeaconIEsOffset)
2632#define DOT11_WFD_ADDITIONAL_IE_SET_BEACON_IE(ADDIE, B) (ADDIE)->uBeaconIEsOffset = (DWORD) (((SIZE_T) (B))- ((SIZE_T) (ADDIE)))
2633#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_SIZE(ADDIE) ((ADDIE)->uBeaconIEsLength)
2634#define DOT11_WFD_ADDITIONAL_IE_SET_BEACON_IE_SIZE(ADDIE, SZ) (ADDIE)->uBeaconIEsLength = (DWORD) (SZ)
2635#define DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_END(ADDIE) (((PCHAR) (ADDIE))+ (ADDIE)->uBeaconIEsOffset+DOT11_WFD_ADDITIONAL_IE_GET_BEACON_IE_SIZE (ADDIE))
2636#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE(ADDIE) (((PCHAR) (ADDIE))+ (ADDIE)->uProbeResponseIEsOffset)
2637#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_RESPONSE_IE(ADDIE, _response_) (ADDIE)->uProbeResponseIEsOffset = (DWORD) (((SIZE_T) (_response_))- ((SIZE_T) (ADDIE)))
2638#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_SIZE(ADDIE) ((ADDIE)->uProbeResponseIEsLength)
2639#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_RESPONSE_IE_SIZE(ADDIE, SZ) (ADDIE)->uProbeResponseIEsLength = (DWORD) (SZ)
2640#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_END(ADDIE) (((PCHAR) (ADDIE))+ (ADDIE)->uProbeResponseIEsOffset+DOT11_WFD_ADDITIONAL_IE_GET_PROBE_RESPONSE_IE_SIZE (ADDIE))
2641#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_REQUEST_IE(ADDIE) (((PCHAR) (ADDIE))+ (ADDIE)->uDefaultRequestIEsOffset)
2642#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_REQUEST_IE(ADDIE, REQ) (ADDIE)->uDefaultRequestIEsOffset = (DWORD) (((SIZE_T) (REQ))- ((SIZE_T) (ADDIE)))
2643#define DOT11_WFD_ADDITIONAL_IE_GET_PROBE_REQUEST_IE_SIZE(ADDIE) ((ADDIE)->uDefaultRequestIEsLength)
2644#define DOT11_WFD_ADDITIONAL_IE_SET_PROBE_REQUEST_IE_SIZE(ADDIE, SZ) (ADDIE)->uDefaultRequestIEsLength = (DWORD) (SZ)
2645#define DOT11_WFD_ADDITIONAL_IE_GET_ALL_IE_SIZE(ADDIE) ((ADDIE)->uBeaconIEsLength + (ADDIE)->uProbeResponseIEsLength + (ADDIE)->uDefaultRequestIEsLength)
2646#define DOT11_WFD_ADDITIONAL_IE_GET_TOTAL_SIZE(ADDIE) (DOT11_WFD_ADDITIONAL_IE_GET_HEADER_SIZE (ADDIE) + DOT11_WFD_ADDITIONAL_IE_GET_ALL_IE_SIZE (ADDIE))
2647
2648#define OID_DOT11_WFD_FLUSH_DEVICE_LIST NWF_DEFINE_OID (0x09, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2649#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_REQUEST NWF_DEFINE_OID (0x0a, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2650
2651#define DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 1
2652
2653typedef struct _DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS {
2654 NDIS_OBJECT_HEADER Header;
2655 DOT11_MAC_ADDRESS PeerDeviceAddress;
2656 DOT11_DIALOG_TOKEN DialogToken;
2657 ULONG uSendTimeout;
2658 DOT11_WFD_GO_INTENT GroupOwnerIntent;
2659 DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout;
2660 DOT11_MAC_ADDRESS IntendedInterfaceAddress;
2661 DOT11_WFD_GROUP_CAPABILITY GroupCapability;
2662 ULONG uIEsOffset;
2663 ULONG uIEsLength;
2664} DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS, *PDOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS;
2665
2666#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_GO_NEGOTIATION_REQUEST_PARAMETERS)
2667
2668#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_RESPONSE NWF_DEFINE_OID (0x0b, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2669
2670#define DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 1
2671
2672typedef struct _DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS {
2673 NDIS_OBJECT_HEADER Header;
2674 DOT11_MAC_ADDRESS PeerDeviceAddress;
2675 DOT11_DIALOG_TOKEN DialogToken;
2676 PVOID RequestContext;
2677 ULONG uSendTimeout;
2678 DOT11_WFD_STATUS_CODE Status;
2679 DOT11_WFD_GO_INTENT GroupOwnerIntent;
2680 DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout;
2681 DOT11_MAC_ADDRESS IntendedInterfaceAddress;
2682 DOT11_WFD_GROUP_CAPABILITY GroupCapability;
2683 DOT11_WFD_GROUP_ID GroupID;
2684 BOOLEAN bUseGroupID;
2685 ULONG uIEsOffset;
2686 ULONG uIEsLength;
2687} DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS, *PDOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS;
2688
2689#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_GO_NEGOTIATION_RESPONSE_PARAMETERS)
2690
2691#define OID_DOT11_WFD_SEND_GO_NEGOTIATION_CONFIRMATION NWF_DEFINE_OID (0x0c, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2692
2693#define DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 1
2694
2695typedef struct _DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS {
2696 NDIS_OBJECT_HEADER Header;
2697 DOT11_MAC_ADDRESS PeerDeviceAddress;
2698 DOT11_DIALOG_TOKEN DialogToken;
2699 PVOID ResponseContext;
2700 ULONG uSendTimeout;
2701 DOT11_WFD_STATUS_CODE Status;
2702 DOT11_WFD_GROUP_CAPABILITY GroupCapability;
2703 DOT11_WFD_GROUP_ID GroupID;
2704 BOOLEAN bUseGroupID;
2705 ULONG uIEsOffset;
2706 ULONG uIEsLength;
2707} DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS, *PDOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS;
2708
2709#define DOT11_SIZEOF_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_GO_NEGOTIATION_CONFIRMATION_PARAMETERS)
2710
2711#define OID_DOT11_WFD_SEND_INVITATION_REQUEST NWF_DEFINE_OID (0x0d, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2712
2713typedef struct _DOT11_WFD_INVITATION_FLAGS {
2714 UCHAR InvitationType:1;
2715 UCHAR Reserved:7;
2716} DOT11_WFD_INVITATION_FLAGS, *PDOT11_WFD_INVITATION_FLAGS;
2717
2718typedef struct _DOT11_SEND_INVITATION_REQUEST_PARAMETERS {
2719 NDIS_OBJECT_HEADER Header;
2720 DOT11_DIALOG_TOKEN DialogToken;
2721 DOT11_MAC_ADDRESS PeerDeviceAddress;
2722 ULONG uSendTimeout;
2723 DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout;
2724 DOT11_WFD_INVITATION_FLAGS InvitationFlags;
2725 DOT11_MAC_ADDRESS GroupBSSID;
2726 BOOLEAN bUseGroupBSSID;
2727 DOT11_WFD_CHANNEL OperatingChannel;
2728 BOOLEAN bUseSpecifiedOperatingChannel;
2729 DOT11_WFD_GROUP_ID GroupID;
2730 BOOLEAN bLocalGO;
2731 ULONG uIEsOffset;
2732 ULONG uIEsLength;
2733} DOT11_SEND_INVITATION_REQUEST_PARAMETERS, *PDOT11_SEND_INVITATION_REQUEST_PARAMETERS;
2734
2735typedef struct _DOT11_SEND_INVITATION_RESPONSE_PARAMETERS {
2736 NDIS_OBJECT_HEADER Header;
2737 DOT11_MAC_ADDRESS ReceiverDeviceAddress;
2738 DOT11_DIALOG_TOKEN DialogToken;
2739 PVOID RequestContext;
2740 ULONG uSendTimeout;
2741 DOT11_WFD_STATUS_CODE Status;
2742 DOT11_WFD_CONFIGURATION_TIMEOUT MinimumConfigTimeout;
2743 DOT11_MAC_ADDRESS GroupBSSID;
2744 BOOLEAN bUseGroupBSSID;
2745 DOT11_WFD_CHANNEL OperatingChannel;
2746 BOOLEAN bUseSpecifiedOperatingChannel;
2747 ULONG uIEsOffset;
2748 ULONG uIEsLength;
2749} DOT11_SEND_INVITATION_RESPONSE_PARAMETERS, *PDOT11_SEND_INVITATION_RESPONSE_PARAMETERS;
2750
2751#define DOT11_SIZEOF_SEND_INVITATION_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_INVITATION_REQUEST_PARAMETERS)
2752#define DOT11_SIZEOF_SEND_INVITATION_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_INVITATION_RESPONSE_PARAMETERS)
2753
2754#define OID_DOT11_WFD_SEND_INVITATION_RESPONSE NWF_DEFINE_OID (0x0e, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2755#define OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_REQUEST NWF_DEFINE_OID (0x0f, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2756
2757#define DOT11_SEND_INVITATION_REQUEST_PARAMETERS_REVISION_1 1
2758#define DOT11_SEND_INVITATION_RESPONSE_PARAMETERS_REVISION_1 1
2759#define DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 1
2760
2761typedef struct _DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS {
2762 NDIS_OBJECT_HEADER Header;
2763 DOT11_DIALOG_TOKEN DialogToken;
2764 DOT11_MAC_ADDRESS PeerDeviceAddress;
2765 ULONG uSendTimeout;
2766 DOT11_WFD_GROUP_CAPABILITY GroupCapability;
2767 DOT11_WFD_GROUP_ID GroupID;
2768 BOOLEAN bUseGroupID;
2769 ULONG uIEsOffset;
2770 ULONG uIEsLength;
2771} DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS, *PDOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS;
2772
2773typedef struct _DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS {
2774 NDIS_OBJECT_HEADER Header;
2775 DOT11_MAC_ADDRESS ReceiverDeviceAddress;
2776 DOT11_DIALOG_TOKEN DialogToken;
2777 PVOID RequestContext;
2778 ULONG uSendTimeout;
2779 ULONG uIEsOffset;
2780 ULONG uIEsLength;
2781} DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS, *PDOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS;
2782
2783typedef struct _DOT11_WFD_DEVICE_LISTEN_CHANNEL {
2784 NDIS_OBJECT_HEADER Header;
2785 UCHAR ChannelNumber;
2786} DOT11_WFD_DEVICE_LISTEN_CHANNEL, *PDOT11_WFD_DEVICE_LISTEN_CHANNEL;
2787
2788typedef struct _DOT11_WFD_GROUP_START_PARAMETERS {
2789 NDIS_OBJECT_HEADER Header;
2790 DOT11_WFD_CHANNEL AdvertisedOperatingChannel;
2791} DOT11_WFD_GROUP_START_PARAMETERS, *PDOT11_WFD_GROUP_START_PARAMETERS;
2792
2793typedef struct _DOT11_WFD_GROUP_JOIN_PARAMETERS {
2794 NDIS_OBJECT_HEADER Header;
2795 DOT11_WFD_CHANNEL GOOperatingChannel;
2796 ULONG GOConfigTime;
2797 BOOLEAN bInGroupFormation;
2798 BOOLEAN bWaitForWPSReady;
2799} DOT11_WFD_GROUP_JOIN_PARAMETERS, *PDOT11_WFD_GROUP_JOIN_PARAMETERS;
2800
2801#define OID_DOT11_WFD_SEND_PROVISION_DISCOVERY_RESPONSE NWF_DEFINE_OID (0x10, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2802#define OID_DOT11_WFD_GET_DIALOG_TOKEN NWF_DEFINE_OID (0x11, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2803#define OID_DOT11_WFD_STOP_DISCOVERY NWF_DEFINE_OID (0x12, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2804#define OID_DOT11_WFD_DEVICE_LISTEN_CHANNEL NWF_DEFINE_OID (0x13, NWF_WFD_DEVICE_OID, NWF_MANDATORY_OID)
2805#define OID_DOT11_WFD_DESIRED_GROUP_ID NWF_DEFINE_OID (0x01, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2806#define OID_DOT11_WFD_START_GO_REQUEST NWF_DEFINE_OID (0x02, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2807#define OID_DOT11_WFD_GROUP_START_PARAMETERS NWF_DEFINE_OID (0x03, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2808#define OID_DOT11_WFD_CONNECT_TO_GROUP_REQUEST NWF_DEFINE_OID (0x04, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2809#define OID_DOT11_WFD_DISCONNECT_FROM_GROUP_REQUEST NWF_DEFINE_OID (0x05, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2810#define OID_DOT11_WFD_GROUP_JOIN_PARAMETERS NWF_DEFINE_OID (0x06, NWF_WFD_ROLE_OID, NWF_MANDATORY_OID)
2811
2812#define DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 1
2813#define DOT11_WFD_DEVICE_LISTEN_CHANNEL_REVISION_1 1
2814#define DOT11_WFD_GROUP_JOIN_PARAMETERS_REVISION_1 1
2815#define DOT11_WFD_GROUP_START_PARAMETERS_REVISION_1 1
2816
2817#define DOT11_SIZEOF_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_PROVISION_DISCOVERY_REQUEST_PARAMETERS)
2818#define DOT11_SIZEOF_WFD_DEVICE_LISTEN_CHANNEL_REVISION_1 sizeof (DOT11_WFD_DEVICE_LISTEN_CHANNEL)
2819#define DOT11_SIZEOF_WFD_GROUP_START_PARAMETERS_REVISION_1 sizeof (DOT11_WFD_GROUP_START_PARAMETERS)
2820#define DOT11_SIZEOF_WFD_GROUP_JOIN_PARAMETERS_REVISION_1 sizeof (DOT11_WFD_GROUP_JOIN_PARAMETERS)
2821#define DOT11_SIZEOF_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS_REVISION_1 sizeof (DOT11_SEND_PROVISION_DISCOVERY_RESPONSE_PARAMETERS)
2822#endif
2823
2824#ifdef NWF_POWER_SAVE_SUPPORTED
2825#define NWF_POWER_SAVE_OID (0x07U)
2826
2827#define OID_DOT11_POWER_MGMT_MODE_AUTO_ENABLED NWF_DEFINE_OID (0x01, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID)
2828#define OID_DOT11_POWER_MGMT_MODE_STATUS NWF_DEFINE_OID (0x02, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID)
2829#define OID_DOT11_OFFLOAD_NETWORK_LIST NWF_DEFINE_OID (0x03, NWF_POWER_SAVE_OID, NWF_MANDATORY_OID)
2830
2831#define DOT11_MAX_CHANNEL_HINTS 4
2832#define DOT11_INVALID_CHANNEL_NUMBER 0
2833
2834#define DOT11_NLO_FLAG_STOP_NLO_INDICATION 0x00000001
2835#define DOT11_NLO_FLAG_SCAN_ON_AOAC_PLATFORM 0x00000002
2836#define DOT11_NLO_FLAG_SCAN_AT_SYSTEM_RESUME 0x00000004
2837
2838#define DOT11_POWER_MGMT_AUTO_MODE_ENABLED_REVISION_1 1
2839#define DOT11_OFFLOAD_NETWORK_LIST_REVISION_1 1
2840#define DOT11_POWER_MGMT_MODE_STATUS_INFO_REVISION_1 1
2841#define DOT11_SIZEOF_OFFLOAD_NETWORK_LIST_INFO_REVISION_1(UNOE) (FIELD_OFFSET (DOT11_OFFLOAD_NETWORK_LIST_INFO, offloadNetworkList)+ sizeof (DOT11_OFFLOAD_NETWORK) *(UNOE))
2842#define DOT11_MIN_SIZEOF_OFFLOAD_NETWORK_LIST_INFO_REVISION_1 (FIELD_OFFSET (DOT11_OFFLOAD_NETWORK_LIST_INFO, offloadNetworkList))
2843
2844#define DOT11_SIZEOF_POWER_MGMT_AUTO_MODE_ENABLE_INFO_REVISION_1 sizeof (DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO)
2845#define DOT11_SIZEOF_POWER_MGMT_MODE_STATUS_INFO_REVISION_1 sizeof (DOT11_POWER_MGMT_MODE_STATUS_INFO)
2846
2847typedef struct _DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO {
2848 NDIS_OBJECT_HEADER Header;
2849 BOOLEAN bEnabled;
2850} DOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO, *PDOT11_POWER_MGMT_AUTO_MODE_ENABLED_INFO;
2851
2852typedef enum _DOT11_POWER_MODE_REASON {
2853 dot11_power_mode_reason_no_change =0,
2854 dot11_power_mode_reason_noncompliant_AP =1,
2855 dot11_power_mode_reason_legacy_WFD_device =2,
2856 dot11_power_mode_reason_compliant_AP =3,
2857 dot11_power_mode_reason_compliant_WFD_device=4,
2858 dot11_power_mode_reason_others =5
2859} DOT11_POWER_MODE_REASON;
2860
2861typedef struct _DOT11_POWER_MGMT_MODE_STATUS_INFO {
2862 NDIS_OBJECT_HEADER Header;
2863 DOT11_POWER_MODE PowerSaveMode;
2864 ULONG uPowerSaveLevel;
2865 DOT11_POWER_MODE_REASON Reason;
2866} DOT11_POWER_MGMT_MODE_STATUS_INFO, *PDOT11_POWER_MGMT_MODE_STATUSINFO;
2867
2868typedef struct DOT11_CHANNEL_HINT {
2869 DOT11_PHY_TYPE Dot11PhyType;
2870 ULONG uChannelNumber;
2871} DOT11_CHANNEL_HINT, *PDOT11_CHANNEL_HINT;
2872
2873typedef struct DOT11_OFFLOAD_NETWORK {
2874 DOT11_SSID Ssid;
2875 DOT11_CIPHER_ALGORITHM UnicastCipher;
2876 DOT11_AUTH_ALGORITHM AuthAlgo;
2877 DOT11_CHANNEL_HINT Dot11ChannelHints[DOT11_MAX_CHANNEL_HINTS];
2878} DOT11_OFFLOAD_NETWORK, *PDOT11_OFFLOAD_NETWORK;
2879
2880typedef struct _DOT11_OFFLOAD_NETWORK_LIST_INFO {
2881 NDIS_OBJECT_HEADER Header;
2882 ULONG ulFlags;
2883 ULONG FastScanPeriod;
2884 ULONG FastScanIterations;
2885 ULONG SlowScanPeriod;
2886 ULONG uNumOfEntries;
2887 DOT11_OFFLOAD_NETWORK offloadNetworkList[1];
2888} DOT11_OFFLOAD_NETWORK_LIST_INFO, *PDOT11_OFFLOAD_NETWORK_LIST_INFO;
2889#endif
2890
2891typedef struct _DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS {
2892 NDIS_OBJECT_HEADER Header;
2893 NDIS_STATUS Status;
2894} DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS, *PDOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS;
2895
2896#define NWF_MANUFACTURING_OID (0x08U)
2897
2898#define DOT11_SIZEOF_OFFLOAD_NETWORK_STATUS_PARAMETERS_REVISION_1 sizeof (DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS)
2899
2900#define DOT11_MANUFACTURING_TEST_REVISION_1 1
2901#define DOT11_MANUFACTURING_CALLBACK_REVISION_1 1
2902#define DOT11_OFFLOAD_NETWORK_STATUS_PARAMETERS_REVISION_1 1
2903
2904#define OID_DOT11_MANUFACTURING_TEST NWF_DEFINE_OID (0x01, NWF_MANUFACTURING_OID, NWF_OPTIONAL_OID)
2905
2906typedef enum _DOT11_MANUFACTURING_TEST_TYPE {
2907 dot11_manufacturing_test_unknown = 0,
2908 dot11_manufacturing_test_self_start = 1,
2909 dot11_manufacturing_test_self_query_result = 2,
2910 dot11_manufacturing_test_rx = 3,
2911 dot11_manufacturing_test_tx = 4,
2912 dot11_manufacturing_test_query_adc = 5,
2913 dot11_manufacturing_test_set_data = 6,
2914 dot11_manufacturing_test_query_data = 7,
2915 dot11_manufacturing_test_sleep = 8,
2916 dot11_manufacturing_test_awake = 9,
2917 dot11_manufacturing_test_IHV_start = 0x80000000,
2918 dot11_manufacturing_test_IHV_end = 0xffffffff
2919} DOT11_MANUFACTURING_TEST_TYPE, *PDOT11_MANUFACTURING_TEST_TYPE;
2920
2921typedef struct _DOT11_MANUFACTURING_TEST {
2922 DOT11_MANUFACTURING_TEST_TYPE dot11ManufacturingTestType;
2923 ULONG uBufferLength;
2924 UCHAR ucBuffer[1];
2925} DOT11_MANUFACTURING_TEST, *PDOT11_MANUFACTURING_TEST;
2926
2927typedef enum DOT11_MANUFACTURING_SELF_TEST_TYPE {
2928 DOT11_MANUFACTURING_SELF_TEST_TYPE_INTERFACE = 1,
2929 DOT11_MANUFACTURING_SELF_TEST_TYPE_RF_INTERFACE,
2930 DOT11_MANUFACTURING_SELF_TEST_TYPE_BT_COEXISTENCE
2931} DOT11_MANUFACTURING_SELF_TEST_TYPE, *PDOT11_MANUFACTURING_SELF_TEST_TYPE;
2932
2933typedef struct _DOT11_MANUFACTURING_SELF_TEST_SET_PARAMS {
2934 DOT11_MANUFACTURING_SELF_TEST_TYPE SelfTestType;
2935 ULONG uTestID;
2936 ULONG uPinBitMask;
2937 PVOID pvContext;
2938 ULONG uBufferLength;
2939 UCHAR ucBufferIn[1];
2940} DOT11_MANUFACTURING_SELF_TEST_SET_PARAMS, *PDOT11_MANUFACTURING_SELF_TEST_SET_PARAMS;
2941
2942typedef struct _DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS {
2943 DOT11_MANUFACTURING_SELF_TEST_TYPE SelfTestType;
2944 ULONG uTestID;
2945 BOOLEAN bResult;
2946 ULONG uPinFailedBitMask;
2947 PVOID pvContext;
2948 ULONG uBytesWrittenOut;
2949 UCHAR ucBufferOut[1];
2950} DOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS, *PDOT11_MANUFACTURING_SELF_TEST_QUERY_RESULTS;
2951
2952typedef enum DOT11_BAND {
2953 dot11_band_2p4g = 1,
2954 dot11_band_4p9g,
2955 dot11_band_5g
2956} DOT11_BAND, *PDOT11_BAND;
2957
2958typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX {
2959 BOOLEAN bEnabled;
2960 DOT11_BAND Dot11Band;
2961 ULONG uChannel;
2962 LONG PowerLevel;
2963} DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX, *PDOT11_MANUFACTURING_FUNCTIONAL_TEST_RX;
2964
2965typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX {
2966 BOOLEAN bEnable;
2967 BOOLEAN bOpenLoop;
2968 DOT11_BAND Dot11Band;
2969 ULONG uChannel;
2970 ULONG uSetPowerLevel;
2971 LONG ADCPowerLevel;
2972} DOT11_MANUFACTURING_FUNCTIONAL_TEST_TX, *PDOT11_MANUFACTURING_FUNCTIONAL_TEST_TX;
2973
2974typedef struct _DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC {
2975 DOT11_BAND Dot11Band;
2976 ULONG uChannel;
2977 LONG ADCPowerLevel;
2978} DOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC, *PDOT11_MANUFACTURING_FUNCTIONAL_TEST_QUERY_ADC;
2979
2980typedef struct _DOT11_MANUFACTURING_TEST_SET_DATA {
2981 ULONG uKey;
2982 ULONG uOffset;
2983 ULONG uBufferLength;
2984 UCHAR ucBufferIn[1];
2985} DOT11_MANUFACTURING_TEST_SET_DATA, *PDOT11_MANUFACTURING_TEST_SET_DATA;
2986
2987typedef struct _DOT11_MANUFACTURING_TEST_QUERY_DATA {
2988 ULONG uKey;
2989 ULONG uOffset;
2990 ULONG uBufferLength;
2991 ULONG uBytesRead;
2992 UCHAR ucBufferOut[1];
2993} DOT11_MANUFACTURING_TEST_QUERY_DATA, *PDOT11_MANUFACTURING_TEST_QUERY_DATA;
2994
2995typedef struct _DOT11_MANUFACTURING_TEST_SLEEP {
2996 ULONG uSleepTime;
2997 PVOID pvContext;
2998} DOT11_MANUFACTURING_TEST_SLEEP, *PDOT11_MANUFACTURING_TEST_SLEEP;
2999
3000typedef enum _DOT11_MANUFACTURING_CALLBACK_TYPE {
3001 dot11_manufacturing_callback_unknown = 0,
3002 dot11_manufacturing_callback_self_test_complete = 1,
3003 dot11_manufacturing_callback_sleep_complete = 2,
3004 dot11_manufacturing_callback_IHV_start = 0x80000000,
3005 dot11_manufacturing_callback_IHV_end = 0xffffffff
3006} DOT11_MANUFACTURING_CALLBACK_TYPE, *PDOT11_MANUFACTURING_CALLBACK_TYPE;
3007
3008typedef struct DOT11_MANUFACTURING_CALLBACK_PARAMETERS {
3009 NDIS_OBJECT_HEADER Header;
3010 DOT11_MANUFACTURING_CALLBACK_TYPE dot11ManufacturingCallbackType;
3011 ULONG uStatus;
3012 PVOID pvContext;
3013} DOT11_MANUFACTURING_CALLBACK_PARAMETERS, *PDOT11_MANUFACTURING_CALLBACK_PARAMETERS;
3014#endif
3015
3016#endif
Note: See TracBrowser for help on using the repository browser.