1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31#ifndef __80211MGR_H__
32#define __80211MGR_H__
33
34#include "ttype.h"
35#include "80211hdr.h"
36
37
38
39#define WLAN_MIN_ARRAY 1
40
41
42#define WLAN_EID_SSID 0
43#define WLAN_EID_SUPP_RATES 1
44#define WLAN_EID_FH_PARMS 2
45#define WLAN_EID_DS_PARMS 3
46#define WLAN_EID_CF_PARMS 4
47#define WLAN_EID_TIM 5
48#define WLAN_EID_IBSS_PARMS 6
49#define WLAN_EID_COUNTRY 7
50#define WLAN_EID_CHALLENGE 16
51#define WLAN_EID_PWR_CONSTRAINT 32
52#define WLAN_EID_PWR_CAPABILITY 33
53#define WLAN_EID_TPC_REQ 34
54#define WLAN_EID_TPC_REP 35
55#define WLAN_EID_SUPP_CH 36
56#define WLAN_EID_CH_SWITCH 37
57#define WLAN_EID_MEASURE_REQ 38
58#define WLAN_EID_MEASURE_REP 39
59#define WLAN_EID_QUIET 40
60#define WLAN_EID_IBSS_DFS 41
61#define WLAN_EID_ERP 42
62
63#define WLAN_EID_RSN 48
64#define WLAN_EID_EXTSUPP_RATES 50
65
66#define WLAN_EID_RSN_WPA 221
67
68#define WLAN_EID_ERP_NONERP_PRESENT 0x01
69#define WLAN_EID_ERP_USE_PROTECTION 0x02
70#define WLAN_EID_ERP_BARKER_MODE 0x04
71
72
73#define WLAN_MGMT_REASON_RSVD 0
74#define WLAN_MGMT_REASON_UNSPEC 1
75#define WLAN_MGMT_REASON_PRIOR_AUTH_INVALID 2
76#define WLAN_MGMT_REASON_DEAUTH_LEAVING 3
77#define WLAN_MGMT_REASON_DISASSOC_INACTIVE 4
78#define WLAN_MGMT_REASON_DISASSOC_AP_BUSY 5
79#define WLAN_MGMT_REASON_CLASS2_NONAUTH 6
80#define WLAN_MGMT_REASON_CLASS3_NONASSOC 7
81#define WLAN_MGMT_REASON_DISASSOC_STA_HASLEFT 8
82#define WLAN_MGMT_REASON_CANT_ASSOC_NONAUTH 9
83#define WLAN_MGMT_REASON_DISASSOC_PWR_CAP_UNACCEPT 10
84#define WLAN_MGMT_REASON_DISASSOC_SUPP_CH_UNACCEPT 11
85#define WLAN_MGMT_REASON_INVALID_IE 13
86#define WLAN_MGMT_REASON_MIC_FAILURE 14
87#define WLAN_MGMT_REASON_4WAY_HANDSHAKE_TIMEOUT 15
88#define WLAN_MGMT_REASON_GRPKEY_UPDATE_TIMEOUT 16
89#define WLAN_MGMT_REASON_4WAY_INFO_DIFFERENT 17
90#define WLAN_MGMT_REASON_MULTCAST_CIPHER_INVALID 18
91#define WLAN_MGMT_REASON_UNCAST_CIPHER_INVALID 19
92#define WLAN_MGMT_REASON_AKMP_INVALID 20
93#define WLAN_MGMT_REASON_RSNE_UNSUPPORTED 21
94#define WLAN_MGMT_REASON_RSNE_CAP_INVALID 22
95#define WLAN_MGMT_REASON_80211X_AUTH_FAILED 23
96
97
98#define WLAN_MGMT_STATUS_SUCCESS 0
99#define WLAN_MGMT_STATUS_UNSPEC_FAILURE 1
100#define WLAN_MGMT_STATUS_CAPS_UNSUPPORTED 10
101#define WLAN_MGMT_STATUS_REASSOC_NO_ASSOC 11
102#define WLAN_MGMT_STATUS_ASSOC_DENIED_UNSPEC 12
103#define WLAN_MGMT_STATUS_UNSUPPORTED_AUTHALG 13
104#define WLAN_MGMT_STATUS_RX_AUTH_NOSEQ 14
105#define WLAN_MGMT_STATUS_CHALLENGE_FAIL 15
106#define WLAN_MGMT_STATUS_AUTH_TIMEOUT 16
107#define WLAN_MGMT_STATUS_ASSOC_DENIED_BUSY 17
108#define WLAN_MGMT_STATUS_ASSOC_DENIED_RATES 18
109#define WLAN_MGMT_STATUS_ASSOC_DENIED_SHORTPREAMBLE 19
110#define WLAN_MGMT_STATUS_ASSOC_DENIED_PBCC 20
111#define WLAN_MGMT_STATUS_ASSOC_DENIED_AGILITY 21
112
113
114
115#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SPECTRUM_MNG 22
116#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_PWR_CAP 23
117#define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SUPP_CH 24
118
119
120
121#define WLAN_MGMT_STATUS_SHORTSLOTTIME_UNSUPPORTED 25
122#define WLAN_MGMT_STATUS_DSSSOFDM_UNSUPPORTED 26
123
124
125
126#define WLAN_MGMT_STATUS_INVALID_IE 40
127#define WLAN_MGMT_STATUS_GROUP_CIPHER_INVALID 41
128#define WLAN_MGMT_STATUS_PAIRWISE_CIPHER_INVALID 42
129#define WLAN_MGMT_STATUS_AKMP_INVALID 43
130#define WLAN_MGMT_STATUS_UNSUPPORT_RSN_IE_VER 44
131#define WLAN_MGMT_STATUS_INVALID_RSN_IE_CAP 45
132#define WLAN_MGMT_STATUS_CIPHER_REJECT 46
133
134
135#define WLAN_AUTH_ALG_OPENSYSTEM 0
136#define WLAN_AUTH_ALG_SHAREDKEY 1
137
138
139
140
141
142#define WLAN_BEACON_OFF_TS 0
143#define WLAN_BEACON_OFF_BCN_INT 8
144#define WLAN_BEACON_OFF_CAPINFO 10
145#define WLAN_BEACON_OFF_SSID 12
146
147#define WLAN_DISASSOC_OFF_REASON 0
148
149#define WLAN_ASSOCREQ_OFF_CAP_INFO 0
150#define WLAN_ASSOCREQ_OFF_LISTEN_INT 2
151#define WLAN_ASSOCREQ_OFF_SSID 4
152
153#define WLAN_ASSOCRESP_OFF_CAP_INFO 0
154#define WLAN_ASSOCRESP_OFF_STATUS 2
155#define WLAN_ASSOCRESP_OFF_AID 4
156#define WLAN_ASSOCRESP_OFF_SUPP_RATES 6
157
158#define WLAN_REASSOCREQ_OFF_CAP_INFO 0
159#define WLAN_REASSOCREQ_OFF_LISTEN_INT 2
160#define WLAN_REASSOCREQ_OFF_CURR_AP 4
161#define WLAN_REASSOCREQ_OFF_SSID 10
162
163#define WLAN_REASSOCRESP_OFF_CAP_INFO 0
164#define WLAN_REASSOCRESP_OFF_STATUS 2
165#define WLAN_REASSOCRESP_OFF_AID 4
166#define WLAN_REASSOCRESP_OFF_SUPP_RATES 6
167
168#define WLAN_PROBEREQ_OFF_SSID 0
169
170#define WLAN_PROBERESP_OFF_TS 0
171#define WLAN_PROBERESP_OFF_BCN_INT 8
172#define WLAN_PROBERESP_OFF_CAP_INFO 10
173#define WLAN_PROBERESP_OFF_SSID 12
174
175#define WLAN_AUTHEN_OFF_AUTH_ALG 0
176#define WLAN_AUTHEN_OFF_AUTH_SEQ 2
177#define WLAN_AUTHEN_OFF_STATUS 4
178#define WLAN_AUTHEN_OFF_CHALLENGE 6
179
180#define WLAN_DEAUTHEN_OFF_REASON 0
181
182
183
184
185#define WLAN_11i_CSS_USE_GROUP 0
186#define WLAN_11i_CSS_WEP40 1
187#define WLAN_11i_CSS_TKIP 2
188#define WLAN_11i_CSS_CCMP 4
189#define WLAN_11i_CSS_WEP104 5
190#define WLAN_11i_CSS_UNKNOWN 255
191
192
193
194
195#define WLAN_11i_AKMSS_802_1X 1
196#define WLAN_11i_AKMSS_PSK 2
197#define WLAN_11i_AKMSS_UNKNOWN 255
198
199
200#define MEASURE_TYPE_BASIC 0
201#define MEASURE_TYPE_CCA 1
202#define MEASURE_TYPE_RPI 2
203
204
205#define MEASURE_MODE_ENABLE 0x02
206#define MEASURE_MODE_REQ 0x04
207#define MEASURE_MODE_REP 0x08
208
209
210#define MEASURE_MODE_LATE 0x01
211#define MEASURE_MODE_INCAPABLE 0x02
212#define MEASURE_MODE_REFUSED 0x04
213
214
215
216
217
218
219
220
221
222#pragma pack(1)
223typedef struct tagWLAN_IE {
224 unsigned char byElementID;
225 unsigned char len;
226} __attribute__ ((__packed__))
227WLAN_IE, *PWLAN_IE;
228
229
230#pragma pack(1)
231typedef struct tagWLAN_IE_SSID {
232 unsigned char byElementID;
233 unsigned char len;
234 unsigned char abySSID[1];
235} __attribute__ ((__packed__))
236WLAN_IE_SSID, *PWLAN_IE_SSID;
237
238
239#pragma pack(1)
240typedef struct tagWLAN_IE_SUPP_RATES {
241 unsigned char byElementID;
242 unsigned char len;
243 unsigned char abyRates[1];
244} __attribute__ ((__packed__))
245WLAN_IE_SUPP_RATES, *PWLAN_IE_SUPP_RATES;
246
247
248#pragma pack(1)
249typedef struct _WLAN_IE_FH_PARMS {
250 unsigned char byElementID;
251 unsigned char len;
252 unsigned short wDwellTime;
253 unsigned char byHopSet;
254 unsigned char byHopPattern;
255 unsigned char byHopIndex;
256} WLAN_IE_FH_PARMS, *PWLAN_IE_FH_PARMS;
257
258
259#pragma pack(1)
260typedef struct tagWLAN_IE_DS_PARMS {
261 unsigned char byElementID;
262 unsigned char len;
263 unsigned char byCurrChannel;
264} __attribute__ ((__packed__))
265WLAN_IE_DS_PARMS, *PWLAN_IE_DS_PARMS;
266
267
268#pragma pack(1)
269typedef struct tagWLAN_IE_CF_PARMS {
270 unsigned char byElementID;
271 unsigned char len;
272 unsigned char byCFPCount;
273 unsigned char byCFPPeriod;
274 unsigned short wCFPMaxDuration;
275 unsigned short wCFPDurRemaining;
276} __attribute__ ((__packed__))
277WLAN_IE_CF_PARMS, *PWLAN_IE_CF_PARMS;
278
279
280#pragma pack(1)
281typedef struct tagWLAN_IE_TIM {
282 unsigned char byElementID;
283 unsigned char len;
284 unsigned char byDTIMCount;
285 unsigned char byDTIMPeriod;
286 unsigned char byBitMapCtl;
287 unsigned char byVirtBitMap[1];
288} __attribute__ ((__packed__))
289WLAN_IE_TIM, *PWLAN_IE_TIM;
290
291
292#pragma pack(1)
293typedef struct tagWLAN_IE_IBSS_PARMS {
294 unsigned char byElementID;
295 unsigned char len;
296 unsigned short wATIMWindow;
297} __attribute__ ((__packed__))
298WLAN_IE_IBSS_PARMS, *PWLAN_IE_IBSS_PARMS;
299
300
301#pragma pack(1)
302typedef struct tagWLAN_IE_CHALLENGE {
303 unsigned char byElementID;
304 unsigned char len;
305 unsigned char abyChallenge[1];
306} __attribute__ ((__packed__))
307WLAN_IE_CHALLENGE, *PWLAN_IE_CHALLENGE;
308
309#pragma pack(1)
310typedef struct tagWLAN_IE_RSN_EXT {
311 unsigned char byElementID;
312 unsigned char len;
313 unsigned char abyOUI[4];
314 unsigned short wVersion;
315 unsigned char abyMulticast[4];
316 unsigned short wPKCount;
317 struct {
318 unsigned char abyOUI[4];
319 } PKSList[1];
320
321} WLAN_IE_RSN_EXT, *PWLAN_IE_RSN_EXT;
322
323#pragma pack(1)
324typedef struct tagWLAN_IE_RSN_AUTH {
325 unsigned short wAuthCount;
326 struct {
327 unsigned char abyOUI[4];
328 } AuthKSList[1];
329} WLAN_IE_RSN_AUTH, *PWLAN_IE_RSN_AUTH;
330
331
332#pragma pack(1)
333typedef struct tagWLAN_IE_RSN {
334 unsigned char byElementID;
335 unsigned char len;
336 unsigned short wVersion;
337 unsigned char abyRSN[WLAN_MIN_ARRAY];
338} WLAN_IE_RSN, *PWLAN_IE_RSN;
339
340
341#pragma pack(1)
342typedef struct tagWLAN_IE_ERP {
343 unsigned char byElementID;
344 unsigned char len;
345 unsigned char byContext;
346} __attribute__ ((__packed__))
347WLAN_IE_ERP, *PWLAN_IE_ERP;
348
349#pragma pack(1)
350typedef struct _MEASEURE_REQ {
351 unsigned char byChannel;
352 unsigned char abyStartTime[8];
353 unsigned char abyDuration[2];
354} MEASEURE_REQ, *PMEASEURE_REQ,
355 MEASEURE_REQ_BASIC, *PMEASEURE_REQ_BASIC,
356 MEASEURE_REQ_CCA, *PMEASEURE_REQ_CCA,
357 MEASEURE_REQ_RPI, *PMEASEURE_REQ_RPI;
358
359typedef struct _MEASEURE_REP_BASIC {
360 unsigned char byChannel;
361 unsigned char abyStartTime[8];
362 unsigned char abyDuration[2];
363 unsigned char byMap;
364} MEASEURE_REP_BASIC, *PMEASEURE_REP_BASIC;
365
366typedef struct _MEASEURE_REP_CCA {
367 unsigned char byChannel;
368 unsigned char abyStartTime[8];
369 unsigned char abyDuration[2];
370 unsigned char byCCABusyFraction;
371} MEASEURE_REP_CCA, *PMEASEURE_REP_CCA;
372
373typedef struct _MEASEURE_REP_RPI {
374 unsigned char byChannel;
375 unsigned char abyStartTime[8];
376 unsigned char abyDuration[2];
377 unsigned char abyRPIdensity[8];
378} MEASEURE_REP_RPI, *PMEASEURE_REP_RPI;
379
380typedef union _MEASEURE_REP {
381 MEASEURE_REP_BASIC sBasic;
382 MEASEURE_REP_CCA sCCA;
383 MEASEURE_REP_RPI sRPI;
384} MEASEURE_REP, *PMEASEURE_REP;
385
386typedef struct _WLAN_IE_MEASURE_REQ {
387 unsigned char byElementID;
388 unsigned char len;
389 unsigned char byToken;
390 unsigned char byMode;
391 unsigned char byType;
392 MEASEURE_REQ sReq;
393} WLAN_IE_MEASURE_REQ, *PWLAN_IE_MEASURE_REQ;
394
395typedef struct _WLAN_IE_MEASURE_REP {
396 unsigned char byElementID;
397 unsigned char len;
398 unsigned char byToken;
399 unsigned char byMode;
400 unsigned char byType;
401 MEASEURE_REP sRep;
402} WLAN_IE_MEASURE_REP, *PWLAN_IE_MEASURE_REP;
403
404typedef struct _WLAN_IE_CH_SW {
405 unsigned char byElementID;
406 unsigned char len;
407 unsigned char byMode;
408 unsigned char byChannel;
409 unsigned char byCount;
410} WLAN_IE_CH_SW, *PWLAN_IE_CH_SW;
411
412typedef struct _WLAN_IE_QUIET {
413 unsigned char byElementID;
414 unsigned char len;
415 unsigned char byQuietCount;
416 unsigned char byQuietPeriod;
417 unsigned char abyQuietDuration[2];
418 unsigned char abyQuietOffset[2];
419} WLAN_IE_QUIET, *PWLAN_IE_QUIET;
420
421typedef struct _WLAN_IE_COUNTRY {
422 unsigned char byElementID;
423 unsigned char len;
424 unsigned char abyCountryString[3];
425 unsigned char abyCountryInfo[3];
426} WLAN_IE_COUNTRY, *PWLAN_IE_COUNTRY;
427
428typedef struct _WLAN_IE_PW_CONST {
429 unsigned char byElementID;
430 unsigned char len;
431 unsigned char byPower;
432} WLAN_IE_PW_CONST, *PWLAN_IE_PW_CONST;
433
434typedef struct _WLAN_IE_PW_CAP {
435 unsigned char byElementID;
436 unsigned char len;
437 unsigned char byMinPower;
438 unsigned char byMaxPower;
439} WLAN_IE_PW_CAP, *PWLAN_IE_PW_CAP;
440
441typedef struct _WLAN_IE_SUPP_CH {
442 unsigned char byElementID;
443 unsigned char len;
444 unsigned char abyChannelTuple[2];
445} WLAN_IE_SUPP_CH, *PWLAN_IE_SUPP_CH;
446
447typedef struct _WLAN_IE_TPC_REQ {
448 unsigned char byElementID;
449 unsigned char len;
450} WLAN_IE_TPC_REQ, *PWLAN_IE_TPC_REQ;
451
452typedef struct _WLAN_IE_TPC_REP {
453 unsigned char byElementID;
454 unsigned char len;
455 unsigned char byTxPower;
456 unsigned char byLinkMargin;
457} WLAN_IE_TPC_REP, *PWLAN_IE_TPC_REP;
458
459typedef struct _WLAN_IE_IBSS_DFS {
460 unsigned char byElementID;
461 unsigned char len;
462 unsigned char abyDFSOwner[6];
463 unsigned char byDFSRecovery;
464 unsigned char abyChannelMap[2];
465} WLAN_IE_IBSS_DFS, *PWLAN_IE_IBSS_DFS;
466
467#pragma pack()
468
469
470
471typedef struct tagWLAN_FR_MGMT {
472 unsigned int uType;
473 unsigned int len;
474 unsigned char *pBuf;
475 PUWLAN_80211HDR pHdr;
476} WLAN_FR_MGMT, *PWLAN_FR_MGMT;
477
478
479typedef struct tagWLAN_FR_BEACON {
480 unsigned int uType;
481 unsigned int len;
482 unsigned char *pBuf;
483 PUWLAN_80211HDR pHdr;
484
485 PQWORD pqwTimestamp;
486 unsigned short *pwBeaconInterval;
487 unsigned short *pwCapInfo;
488
489 PWLAN_IE_SSID pSSID;
490 PWLAN_IE_SUPP_RATES pSuppRates;
491
492 PWLAN_IE_DS_PARMS pDSParms;
493 PWLAN_IE_CF_PARMS pCFParms;
494 PWLAN_IE_TIM pTIM;
495 PWLAN_IE_IBSS_PARMS pIBSSParms;
496 PWLAN_IE_RSN pRSN;
497 PWLAN_IE_RSN_EXT pRSNWPA;
498 PWLAN_IE_ERP pERP;
499 PWLAN_IE_SUPP_RATES pExtSuppRates;
500 PWLAN_IE_COUNTRY pIE_Country;
501 PWLAN_IE_PW_CONST pIE_PowerConstraint;
502 PWLAN_IE_CH_SW pIE_CHSW;
503 PWLAN_IE_IBSS_DFS pIE_IBSSDFS;
504 PWLAN_IE_QUIET pIE_Quiet;
505} WLAN_FR_BEACON, *PWLAN_FR_BEACON;
506
507
508typedef struct tagWLAN_FR_IBSSATIM {
509 unsigned int uType;
510 unsigned int len;
511 unsigned char *pBuf;
512 PUWLAN_80211HDR pHdr;
513
514
515
516
517} WLAN_FR_IBSSATIM, *PWLAN_FR_IBSSATIM;
518
519
520typedef struct tagWLAN_FR_DISASSOC {
521 unsigned int uType;
522 unsigned int len;
523 unsigned char *pBuf;
524 PUWLAN_80211HDR pHdr;
525
526 unsigned short *pwReason;
527
528} WLAN_FR_DISASSOC, *PWLAN_FR_DISASSOC;
529
530
531typedef struct tagWLAN_FR_ASSOCREQ {
532 unsigned int uType;
533 unsigned int len;
534 unsigned char *pBuf;
535 PUWLAN_80211HDR pHdr;
536
537 unsigned short *pwCapInfo;
538 unsigned short *pwListenInterval;
539
540 PWLAN_IE_SSID pSSID;
541 PWLAN_IE_SUPP_RATES pSuppRates;
542 PWLAN_IE_RSN pRSN;
543 PWLAN_IE_RSN_EXT pRSNWPA;
544 PWLAN_IE_SUPP_RATES pExtSuppRates;
545 PWLAN_IE_PW_CAP pCurrPowerCap;
546 PWLAN_IE_SUPP_CH pCurrSuppCh;
547} WLAN_FR_ASSOCREQ, *PWLAN_FR_ASSOCREQ;
548
549
550typedef struct tagWLAN_FR_ASSOCRESP {
551 unsigned int uType;
552 unsigned int len;
553 unsigned char *pBuf;
554 PUWLAN_80211HDR pHdr;
555
556 unsigned short *pwCapInfo;
557 unsigned short *pwStatus;
558 unsigned short *pwAid;
559
560 PWLAN_IE_SUPP_RATES pSuppRates;
561 PWLAN_IE_SUPP_RATES pExtSuppRates;
562} WLAN_FR_ASSOCRESP, *PWLAN_FR_ASSOCRESP;
563
564
565typedef struct tagWLAN_FR_REASSOCREQ {
566 unsigned int uType;
567 unsigned int len;
568 unsigned char *pBuf;
569 PUWLAN_80211HDR pHdr;
570
571
572 unsigned short *pwCapInfo;
573 unsigned short *pwListenInterval;
574 PIEEE_ADDR pAddrCurrAP;
575
576
577 PWLAN_IE_SSID pSSID;
578 PWLAN_IE_SUPP_RATES pSuppRates;
579 PWLAN_IE_RSN pRSN;
580 PWLAN_IE_RSN_EXT pRSNWPA;
581 PWLAN_IE_SUPP_RATES pExtSuppRates;
582} WLAN_FR_REASSOCREQ, *PWLAN_FR_REASSOCREQ;
583
584
585typedef struct tagWLAN_FR_REASSOCRESP {
586 unsigned int uType;
587 unsigned int len;
588 unsigned char *pBuf;
589 PUWLAN_80211HDR pHdr;
590
591 unsigned short *pwCapInfo;
592 unsigned short *pwStatus;
593 unsigned short *pwAid;
594
595 PWLAN_IE_SUPP_RATES pSuppRates;
596 PWLAN_IE_SUPP_RATES pExtSuppRates;
597} WLAN_FR_REASSOCRESP, *PWLAN_FR_REASSOCRESP;
598
599
600typedef struct tagWLAN_FR_PROBEREQ {
601 unsigned int uType;
602 unsigned int len;
603 unsigned char *pBuf;
604 PUWLAN_80211HDR pHdr;
605
606
607 PWLAN_IE_SSID pSSID;
608 PWLAN_IE_SUPP_RATES pSuppRates;
609 PWLAN_IE_SUPP_RATES pExtSuppRates;
610} WLAN_FR_PROBEREQ, *PWLAN_FR_PROBEREQ;
611
612
613typedef struct tagWLAN_FR_PROBERESP {
614 unsigned int uType;
615 unsigned int len;
616 unsigned char *pBuf;
617 PUWLAN_80211HDR pHdr;
618
619 PQWORD pqwTimestamp;
620 unsigned short *pwBeaconInterval;
621 unsigned short *pwCapInfo;
622
623 PWLAN_IE_SSID pSSID;
624 PWLAN_IE_SUPP_RATES pSuppRates;
625 PWLAN_IE_DS_PARMS pDSParms;
626 PWLAN_IE_CF_PARMS pCFParms;
627 PWLAN_IE_IBSS_PARMS pIBSSParms;
628 PWLAN_IE_RSN pRSN;
629 PWLAN_IE_RSN_EXT pRSNWPA;
630 PWLAN_IE_ERP pERP;
631 PWLAN_IE_SUPP_RATES pExtSuppRates;
632 PWLAN_IE_COUNTRY pIE_Country;
633 PWLAN_IE_PW_CONST pIE_PowerConstraint;
634 PWLAN_IE_CH_SW pIE_CHSW;
635 PWLAN_IE_IBSS_DFS pIE_IBSSDFS;
636 PWLAN_IE_QUIET pIE_Quiet;
637} WLAN_FR_PROBERESP, *PWLAN_FR_PROBERESP;
638
639
640typedef struct tagWLAN_FR_AUTHEN {
641 unsigned int uType;
642 unsigned int len;
643 unsigned char *pBuf;
644 PUWLAN_80211HDR pHdr;
645
646 unsigned short *pwAuthAlgorithm;
647 unsigned short *pwAuthSequence;
648 unsigned short *pwStatus;
649
650 PWLAN_IE_CHALLENGE pChallenge;
651} WLAN_FR_AUTHEN, *PWLAN_FR_AUTHEN;
652
653
654typedef struct tagWLAN_FR_DEAUTHEN {
655 unsigned int uType;
656 unsigned int len;
657 unsigned char *pBuf;
658 PUWLAN_80211HDR pHdr;
659
660 unsigned short *pwReason;
661
662
663} WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN;
664
665
666
667void
668vMgrEncodeBeacon(
669 PWLAN_FR_BEACON pFrame
670);
671
672void
673vMgrDecodeBeacon(
674 PWLAN_FR_BEACON pFrame
675);
676
677void
678vMgrEncodeIBSSATIM(
679 PWLAN_FR_IBSSATIM pFrame
680);
681
682void
683vMgrDecodeIBSSATIM(
684 PWLAN_FR_IBSSATIM pFrame
685);
686
687void
688vMgrEncodeDisassociation(
689 PWLAN_FR_DISASSOC pFrame
690);
691
692void
693vMgrDecodeDisassociation(
694 PWLAN_FR_DISASSOC pFrame
695);
696
697void
698vMgrEncodeAssocRequest(
699 PWLAN_FR_ASSOCREQ pFrame
700);
701
702void
703vMgrDecodeAssocRequest(
704 PWLAN_FR_ASSOCREQ pFrame
705);
706
707void
708vMgrEncodeAssocResponse(
709 PWLAN_FR_ASSOCRESP pFrame
710);
711
712void
713vMgrDecodeAssocResponse(
714 PWLAN_FR_ASSOCRESP pFrame
715);
716
717void
718vMgrEncodeReassocRequest(
719 PWLAN_FR_REASSOCREQ pFrame
720);
721
722void
723vMgrDecodeReassocRequest(
724 PWLAN_FR_REASSOCREQ pFrame
725);
726
727void
728vMgrEncodeProbeRequest(
729 PWLAN_FR_PROBEREQ pFrame
730);
731
732void
733vMgrDecodeProbeRequest(
734 PWLAN_FR_PROBEREQ pFrame
735);
736
737void
738vMgrEncodeProbeResponse(
739 PWLAN_FR_PROBERESP pFrame
740);
741
742void
743vMgrDecodeProbeResponse(
744 PWLAN_FR_PROBERESP pFrame
745);
746
747void
748vMgrEncodeAuthen(
749 PWLAN_FR_AUTHEN pFrame
750);
751
752void
753vMgrDecodeAuthen(
754 PWLAN_FR_AUTHEN pFrame
755);
756
757void
758vMgrEncodeDeauthen(
759 PWLAN_FR_DEAUTHEN pFrame
760);
761
762void
763vMgrDecodeDeauthen(
764 PWLAN_FR_DEAUTHEN pFrame
765);
766
767void
768vMgrEncodeReassocResponse(
769 PWLAN_FR_REASSOCRESP pFrame
770);
771
772void
773vMgrDecodeReassocResponse(
774 PWLAN_FR_REASSOCRESP pFrame
775);
776
777#endif
778