2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 * Purpose: 802.11 management frames pre-defines.
31 #ifndef __80211MGR_H__
32 #define __80211MGR_H__
37 /*--------------------- Export Definitions -------------------------*/
39 #define WLAN_MIN_ARRAY 1
41 // Information Element ID value
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 // reference 802.11i 7.3.2 table 20
63 #define WLAN_EID_RSN 48
64 #define WLAN_EID_EXTSUPP_RATES 50
65 // reference WiFi WPA spec.
66 #define WLAN_EID_RSN_WPA 221
68 #define WLAN_EID_ERP_NONERP_PRESENT 0x01
69 #define WLAN_EID_ERP_USE_PROTECTION 0x02
70 #define WLAN_EID_ERP_BARKER_MODE 0x04
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
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
113 // reference 802.11h 7.3.1.9
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
119 // reference 802.11g 7.3.1.9
121 #define WLAN_MGMT_STATUS_SHORTSLOTTIME_UNSUPPORTED 25
122 #define WLAN_MGMT_STATUS_DSSSOFDM_UNSUPPORTED 26
124 // reference 802.11i 7.3.1.9 table 19
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
135 #define WLAN_AUTH_ALG_OPENSYSTEM 0
136 #define WLAN_AUTH_ALG_SHAREDKEY 1
138 // Management Frame Field Offsets
139 // Note: Not all fields are listed because of variable lengths.
140 // Note: These offsets are from the start of the frame data
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
147 #define WLAN_DISASSOC_OFF_REASON 0
149 #define WLAN_ASSOCREQ_OFF_CAP_INFO 0
150 #define WLAN_ASSOCREQ_OFF_LISTEN_INT 2
151 #define WLAN_ASSOCREQ_OFF_SSID 4
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
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
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
168 #define WLAN_PROBEREQ_OFF_SSID 0
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
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
180 #define WLAN_DEAUTHEN_OFF_REASON 0
183 // Cipher Suite Selectors defined in 802.11i
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
193 // Authentication and Key Management Suite Selectors defined in 802.11i
195 #define WLAN_11i_AKMSS_802_1X 1
196 #define WLAN_11i_AKMSS_PSK 2
197 #define WLAN_11i_AKMSS_UNKNOWN 255
199 // Measurement type definitions reference ieee 802.11h Table 20b
200 #define MEASURE_TYPE_BASIC 0
201 #define MEASURE_TYPE_CCA 1
202 #define MEASURE_TYPE_RPI 2
204 // Measurement request mode definitions reference ieee 802.11h Figure 46h
205 #define MEASURE_MODE_ENABLE 0x02
206 #define MEASURE_MODE_REQ 0x04
207 #define MEASURE_MODE_REP 0x08
209 // Measurement report mode definitions reference ieee 802.11h Figure 46m
210 #define MEASURE_MODE_LATE 0x01
211 #define MEASURE_MODE_INCAPABLE 0x02
212 #define MEASURE_MODE_REFUSED 0x04
214 /*--------------------- Export Classes ----------------------------*/
216 /*--------------------- Export Variables --------------------------*/
218 /*--------------------- Export Types ------------------------------*/
220 // Information Element Types
223 typedef struct tagWLAN_IE
{
224 unsigned char byElementID
;
226 } __attribute__ ((__packed__
))
229 // Service Set Identity (SSID)
231 typedef struct tagWLAN_IE_SSID
{
232 unsigned char byElementID
;
234 unsigned char abySSID
[1];
235 } __attribute__ ((__packed__
))
236 WLAN_IE_SSID
, *PWLAN_IE_SSID
;
240 typedef struct tagWLAN_IE_SUPP_RATES
{
241 unsigned char byElementID
;
243 unsigned char abyRates
[1];
244 } __attribute__ ((__packed__
))
245 WLAN_IE_SUPP_RATES
, *PWLAN_IE_SUPP_RATES
;
249 typedef struct _WLAN_IE_FH_PARMS
{
250 unsigned char byElementID
;
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
;
260 typedef struct tagWLAN_IE_DS_PARMS
{
261 unsigned char byElementID
;
263 unsigned char byCurrChannel
;
264 } __attribute__ ((__packed__
))
265 WLAN_IE_DS_PARMS
, *PWLAN_IE_DS_PARMS
;
269 typedef struct tagWLAN_IE_CF_PARMS
{
270 unsigned char byElementID
;
272 unsigned char byCFPCount
;
273 unsigned char byCFPPeriod
;
274 unsigned short wCFPMaxDuration
;
275 unsigned short wCFPDurRemaining
;
276 } __attribute__ ((__packed__
))
277 WLAN_IE_CF_PARMS
, *PWLAN_IE_CF_PARMS
;
281 typedef struct tagWLAN_IE_TIM
{
282 unsigned char byElementID
;
284 unsigned char byDTIMCount
;
285 unsigned char byDTIMPeriod
;
286 unsigned char byBitMapCtl
;
287 unsigned char byVirtBitMap
[1];
288 } __attribute__ ((__packed__
))
289 WLAN_IE_TIM
, *PWLAN_IE_TIM
;
291 // IBSS Parameter Set
293 typedef struct tagWLAN_IE_IBSS_PARMS
{
294 unsigned char byElementID
;
296 unsigned short wATIMWindow
;
297 } __attribute__ ((__packed__
))
298 WLAN_IE_IBSS_PARMS
, *PWLAN_IE_IBSS_PARMS
;
302 typedef struct tagWLAN_IE_CHALLENGE
{
303 unsigned char byElementID
;
305 unsigned char abyChallenge
[1];
306 } __attribute__ ((__packed__
))
307 WLAN_IE_CHALLENGE
, *PWLAN_IE_CHALLENGE
;
310 typedef struct tagWLAN_IE_RSN_EXT
{
311 unsigned char byElementID
;
313 unsigned char abyOUI
[4];
314 unsigned short wVersion
;
315 unsigned char abyMulticast
[4];
316 unsigned short wPKCount
;
318 unsigned char abyOUI
[4];
319 } PKSList
[1]; // the rest is variable so need to
320 // overlay ieauth structure
321 } WLAN_IE_RSN_EXT
, *PWLAN_IE_RSN_EXT
;
324 typedef struct tagWLAN_IE_RSN_AUTH
{
325 unsigned short wAuthCount
;
327 unsigned char abyOUI
[4];
329 } WLAN_IE_RSN_AUTH
, *PWLAN_IE_RSN_AUTH
;
333 typedef struct tagWLAN_IE_RSN
{
334 unsigned char byElementID
;
336 unsigned short wVersion
;
337 unsigned char abyRSN
[WLAN_MIN_ARRAY
];
338 } WLAN_IE_RSN
, *PWLAN_IE_RSN
;
342 typedef struct tagWLAN_IE_ERP
{
343 unsigned char byElementID
;
345 unsigned char byContext
;
346 } __attribute__ ((__packed__
))
347 WLAN_IE_ERP
, *PWLAN_IE_ERP
;
350 typedef 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
;
359 typedef struct _MEASEURE_REP_BASIC
{
360 unsigned char byChannel
;
361 unsigned char abyStartTime
[8];
362 unsigned char abyDuration
[2];
364 } MEASEURE_REP_BASIC
, *PMEASEURE_REP_BASIC
;
366 typedef 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
;
373 typedef 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
;
380 typedef union _MEASEURE_REP
{
381 MEASEURE_REP_BASIC sBasic
;
382 MEASEURE_REP_CCA sCCA
;
383 MEASEURE_REP_RPI sRPI
;
384 } MEASEURE_REP
, *PMEASEURE_REP
;
386 typedef struct _WLAN_IE_MEASURE_REQ
{
387 unsigned char byElementID
;
389 unsigned char byToken
;
390 unsigned char byMode
;
391 unsigned char byType
;
393 } WLAN_IE_MEASURE_REQ
, *PWLAN_IE_MEASURE_REQ
;
395 typedef struct _WLAN_IE_MEASURE_REP
{
396 unsigned char byElementID
;
398 unsigned char byToken
;
399 unsigned char byMode
;
400 unsigned char byType
;
402 } WLAN_IE_MEASURE_REP
, *PWLAN_IE_MEASURE_REP
;
404 typedef struct _WLAN_IE_CH_SW
{
405 unsigned char byElementID
;
407 unsigned char byMode
;
408 unsigned char byChannel
;
409 unsigned char byCount
;
410 } WLAN_IE_CH_SW
, *PWLAN_IE_CH_SW
;
412 typedef struct _WLAN_IE_QUIET
{
413 unsigned char byElementID
;
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
;
421 typedef struct _WLAN_IE_COUNTRY
{
422 unsigned char byElementID
;
424 unsigned char abyCountryString
[3];
425 unsigned char abyCountryInfo
[3];
426 } WLAN_IE_COUNTRY
, *PWLAN_IE_COUNTRY
;
428 typedef struct _WLAN_IE_PW_CONST
{
429 unsigned char byElementID
;
431 unsigned char byPower
;
432 } WLAN_IE_PW_CONST
, *PWLAN_IE_PW_CONST
;
434 typedef struct _WLAN_IE_PW_CAP
{
435 unsigned char byElementID
;
437 unsigned char byMinPower
;
438 unsigned char byMaxPower
;
439 } WLAN_IE_PW_CAP
, *PWLAN_IE_PW_CAP
;
441 typedef struct _WLAN_IE_SUPP_CH
{
442 unsigned char byElementID
;
444 unsigned char abyChannelTuple
[2];
445 } WLAN_IE_SUPP_CH
, *PWLAN_IE_SUPP_CH
;
447 typedef struct _WLAN_IE_TPC_REQ
{
448 unsigned char byElementID
;
450 } WLAN_IE_TPC_REQ
, *PWLAN_IE_TPC_REQ
;
452 typedef struct _WLAN_IE_TPC_REP
{
453 unsigned char byElementID
;
455 unsigned char byTxPower
;
456 unsigned char byLinkMargin
;
457 } WLAN_IE_TPC_REP
, *PWLAN_IE_TPC_REP
;
459 typedef struct _WLAN_IE_IBSS_DFS
{
460 unsigned char byElementID
;
462 unsigned char abyDFSOwner
[6];
463 unsigned char byDFSRecovery
;
464 unsigned char abyChannelMap
[2];
465 } WLAN_IE_IBSS_DFS
, *PWLAN_IE_IBSS_DFS
;
470 // prototype structure, all mgmt frame types will start with these members
471 typedef struct tagWLAN_FR_MGMT
{
475 PUWLAN_80211HDR pHdr
;
476 } WLAN_FR_MGMT
, *PWLAN_FR_MGMT
;
479 typedef struct tagWLAN_FR_BEACON
{
483 PUWLAN_80211HDR pHdr
;
486 unsigned short *pwBeaconInterval
;
487 unsigned short *pwCapInfo
;
488 /*-- info elements ----------*/
490 PWLAN_IE_SUPP_RATES pSuppRates
;
491 // PWLAN_IE_FH_PARMS pFHParms;
492 PWLAN_IE_DS_PARMS pDSParms
;
493 PWLAN_IE_CF_PARMS pCFParms
;
495 PWLAN_IE_IBSS_PARMS pIBSSParms
;
497 PWLAN_IE_RSN_EXT pRSNWPA
;
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
;
508 typedef struct tagWLAN_FR_IBSSATIM
{
512 PUWLAN_80211HDR pHdr
;
516 // this frame type has a null body
517 } WLAN_FR_IBSSATIM
, *PWLAN_FR_IBSSATIM
;
520 typedef struct tagWLAN_FR_DISASSOC
{
524 PUWLAN_80211HDR pHdr
;
525 /*-- fixed fields -----------*/
526 unsigned short *pwReason
;
527 /*-- info elements ----------*/
528 } WLAN_FR_DISASSOC
, *PWLAN_FR_DISASSOC
;
530 // Association Request
531 typedef struct tagWLAN_FR_ASSOCREQ
{
535 PUWLAN_80211HDR pHdr
;
536 /*-- fixed fields -----------*/
537 unsigned short *pwCapInfo
;
538 unsigned short *pwListenInterval
;
539 /*-- info elements ----------*/
541 PWLAN_IE_SUPP_RATES pSuppRates
;
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
;
549 // Association Response
550 typedef struct tagWLAN_FR_ASSOCRESP
{
554 PUWLAN_80211HDR pHdr
;
555 /*-- fixed fields -----------*/
556 unsigned short *pwCapInfo
;
557 unsigned short *pwStatus
;
558 unsigned short *pwAid
;
559 /*-- info elements ----------*/
560 PWLAN_IE_SUPP_RATES pSuppRates
;
561 PWLAN_IE_SUPP_RATES pExtSuppRates
;
562 } WLAN_FR_ASSOCRESP
, *PWLAN_FR_ASSOCRESP
;
564 // Reassociation Request
565 typedef struct tagWLAN_FR_REASSOCREQ
{
569 PUWLAN_80211HDR pHdr
;
571 /*-- fixed fields -----------*/
572 unsigned short *pwCapInfo
;
573 unsigned short *pwListenInterval
;
574 PIEEE_ADDR pAddrCurrAP
;
576 /*-- info elements ----------*/
578 PWLAN_IE_SUPP_RATES pSuppRates
;
580 PWLAN_IE_RSN_EXT pRSNWPA
;
581 PWLAN_IE_SUPP_RATES pExtSuppRates
;
582 } WLAN_FR_REASSOCREQ
, *PWLAN_FR_REASSOCREQ
;
584 // Reassociation Response
585 typedef struct tagWLAN_FR_REASSOCRESP
{
589 PUWLAN_80211HDR pHdr
;
590 /*-- fixed fields -----------*/
591 unsigned short *pwCapInfo
;
592 unsigned short *pwStatus
;
593 unsigned short *pwAid
;
594 /*-- info elements ----------*/
595 PWLAN_IE_SUPP_RATES pSuppRates
;
596 PWLAN_IE_SUPP_RATES pExtSuppRates
;
597 } WLAN_FR_REASSOCRESP
, *PWLAN_FR_REASSOCRESP
;
600 typedef struct tagWLAN_FR_PROBEREQ
{
604 PUWLAN_80211HDR pHdr
;
605 /*-- fixed fields -----------*/
606 /*-- info elements ----------*/
608 PWLAN_IE_SUPP_RATES pSuppRates
;
609 PWLAN_IE_SUPP_RATES pExtSuppRates
;
610 } WLAN_FR_PROBEREQ
, *PWLAN_FR_PROBEREQ
;
613 typedef struct tagWLAN_FR_PROBERESP
{
617 PUWLAN_80211HDR pHdr
;
618 /*-- fixed fields -----------*/
620 unsigned short *pwBeaconInterval
;
621 unsigned short *pwCapInfo
;
622 /*-- info elements ----------*/
624 PWLAN_IE_SUPP_RATES pSuppRates
;
625 PWLAN_IE_DS_PARMS pDSParms
;
626 PWLAN_IE_CF_PARMS pCFParms
;
627 PWLAN_IE_IBSS_PARMS pIBSSParms
;
629 PWLAN_IE_RSN_EXT pRSNWPA
;
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
;
640 typedef struct tagWLAN_FR_AUTHEN
{
644 PUWLAN_80211HDR pHdr
;
645 /*-- fixed fields -----------*/
646 unsigned short *pwAuthAlgorithm
;
647 unsigned short *pwAuthSequence
;
648 unsigned short *pwStatus
;
649 /*-- info elements ----------*/
650 PWLAN_IE_CHALLENGE pChallenge
;
651 } WLAN_FR_AUTHEN
, *PWLAN_FR_AUTHEN
;
654 typedef struct tagWLAN_FR_DEAUTHEN
{
658 PUWLAN_80211HDR pHdr
;
659 /*-- fixed fields -----------*/
660 unsigned short *pwReason
;
662 /*-- info elements ----------*/
663 } WLAN_FR_DEAUTHEN
, *PWLAN_FR_DEAUTHEN
;
665 /*--------------------- Export Functions --------------------------*/
669 PWLAN_FR_BEACON pFrame
674 PWLAN_FR_BEACON pFrame
679 PWLAN_FR_IBSSATIM pFrame
684 PWLAN_FR_IBSSATIM pFrame
688 vMgrEncodeDisassociation(
689 PWLAN_FR_DISASSOC pFrame
693 vMgrDecodeDisassociation(
694 PWLAN_FR_DISASSOC pFrame
698 vMgrEncodeAssocRequest(
699 PWLAN_FR_ASSOCREQ pFrame
703 vMgrDecodeAssocRequest(
704 PWLAN_FR_ASSOCREQ pFrame
708 vMgrEncodeAssocResponse(
709 PWLAN_FR_ASSOCRESP pFrame
713 vMgrDecodeAssocResponse(
714 PWLAN_FR_ASSOCRESP pFrame
718 vMgrEncodeReassocRequest(
719 PWLAN_FR_REASSOCREQ pFrame
723 vMgrDecodeReassocRequest(
724 PWLAN_FR_REASSOCREQ pFrame
728 vMgrEncodeProbeRequest(
729 PWLAN_FR_PROBEREQ pFrame
733 vMgrDecodeProbeRequest(
734 PWLAN_FR_PROBEREQ pFrame
738 vMgrEncodeProbeResponse(
739 PWLAN_FR_PROBERESP pFrame
743 vMgrDecodeProbeResponse(
744 PWLAN_FR_PROBERESP pFrame
749 PWLAN_FR_AUTHEN pFrame
754 PWLAN_FR_AUTHEN pFrame
759 PWLAN_FR_DEAUTHEN pFrame
764 PWLAN_FR_DEAUTHEN pFrame
768 vMgrEncodeReassocResponse(
769 PWLAN_FR_REASSOCRESP pFrame
773 vMgrDecodeReassocResponse(
774 PWLAN_FR_REASSOCRESP pFrame
777 #endif// __80211MGR_H__