31 #ifndef __80211MGR_H__
32 #define __80211MGR_H__
39 #define WLAN_MIN_ARRAY 1
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
63 #define WLAN_EID_RSN 48
64 #define WLAN_EID_EXTSUPP_RATES 50
66 #define WLAN_EID_RSN_WPA 221
69 #define WLAN_EID_ERP_NONERP_PRESENT 0x01
70 #define WLAN_EID_ERP_USE_PROTECTION 0x02
71 #define WLAN_EID_ERP_BARKER_MODE 0x04
74 #define WLAN_MGMT_REASON_RSVD 0
75 #define WLAN_MGMT_REASON_UNSPEC 1
76 #define WLAN_MGMT_REASON_PRIOR_AUTH_INVALID 2
77 #define WLAN_MGMT_REASON_DEAUTH_LEAVING 3
78 #define WLAN_MGMT_REASON_DISASSOC_INACTIVE 4
79 #define WLAN_MGMT_REASON_DISASSOC_AP_BUSY 5
80 #define WLAN_MGMT_REASON_CLASS2_NONAUTH 6
81 #define WLAN_MGMT_REASON_CLASS3_NONASSOC 7
82 #define WLAN_MGMT_REASON_DISASSOC_STA_HASLEFT 8
83 #define WLAN_MGMT_REASON_CANT_ASSOC_NONAUTH 9
84 #define WLAN_MGMT_REASON_DISASSOC_PWR_CAP_UNACCEPT 10
85 #define WLAN_MGMT_REASON_DISASSOC_SUPP_CH_UNACCEPT 11
86 #define WLAN_MGMT_REASON_INVALID_IE 13
87 #define WLAN_MGMT_REASON_MIC_FAILURE 14
88 #define WLAN_MGMT_REASON_4WAY_HANDSHAKE_TIMEOUT 15
89 #define WLAN_MGMT_REASON_GRPKEY_UPDATE_TIMEOUT 16
90 #define WLAN_MGMT_REASON_4WAY_INFO_DIFFERENT 17
91 #define WLAN_MGMT_REASON_MULTCAST_CIPHER_INVALID 18
92 #define WLAN_MGMT_REASON_UNCAST_CIPHER_INVALID 19
93 #define WLAN_MGMT_REASON_AKMP_INVALID 20
94 #define WLAN_MGMT_REASON_RSNE_UNSUPPORTED 21
95 #define WLAN_MGMT_REASON_RSNE_CAP_INVALID 22
96 #define WLAN_MGMT_REASON_80211X_AUTH_FAILED 23
99 #define WLAN_MGMT_STATUS_SUCCESS 0
100 #define WLAN_MGMT_STATUS_UNSPEC_FAILURE 1
101 #define WLAN_MGMT_STATUS_CAPS_UNSUPPORTED 10
102 #define WLAN_MGMT_STATUS_REASSOC_NO_ASSOC 11
103 #define WLAN_MGMT_STATUS_ASSOC_DENIED_UNSPEC 12
104 #define WLAN_MGMT_STATUS_UNSUPPORTED_AUTHALG 13
105 #define WLAN_MGMT_STATUS_RX_AUTH_NOSEQ 14
106 #define WLAN_MGMT_STATUS_CHALLENGE_FAIL 15
107 #define WLAN_MGMT_STATUS_AUTH_TIMEOUT 16
108 #define WLAN_MGMT_STATUS_ASSOC_DENIED_BUSY 17
109 #define WLAN_MGMT_STATUS_ASSOC_DENIED_RATES 18
110 #define WLAN_MGMT_STATUS_ASSOC_DENIED_SHORTPREAMBLE 19
111 #define WLAN_MGMT_STATUS_ASSOC_DENIED_PBCC 20
112 #define WLAN_MGMT_STATUS_ASSOC_DENIED_AGILITY 21
116 #define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SPECTRUM_MNG 22
117 #define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_PWR_CAP 23
118 #define WLAN_MGMT_STATUS_ASSOC_REJECT_BCS_SUPP_CH 24
122 #define WLAN_MGMT_STATUS_SHORTSLOTTIME_UNSUPPORTED 25
123 #define WLAN_MGMT_STATUS_DSSSOFDM_UNSUPPORTED 26
127 #define WLAN_MGMT_STATUS_INVALID_IE 40
128 #define WLAN_MGMT_STATUS_GROUP_CIPHER_INVALID 41
129 #define WLAN_MGMT_STATUS_PAIRWISE_CIPHER_INVALID 42
130 #define WLAN_MGMT_STATUS_AKMP_INVALID 43
131 #define WLAN_MGMT_STATUS_UNSUPPORT_RSN_IE_VER 44
132 #define WLAN_MGMT_STATUS_INVALID_RSN_IE_CAP 45
133 #define WLAN_MGMT_STATUS_CIPHER_REJECT 46
138 #define WLAN_AUTH_ALG_OPENSYSTEM 0
139 #define WLAN_AUTH_ALG_SHAREDKEY 1
147 #define WLAN_BEACON_OFF_TS 0
148 #define WLAN_BEACON_OFF_BCN_INT 8
149 #define WLAN_BEACON_OFF_CAPINFO 10
150 #define WLAN_BEACON_OFF_SSID 12
152 #define WLAN_DISASSOC_OFF_REASON 0
154 #define WLAN_ASSOCREQ_OFF_CAP_INFO 0
155 #define WLAN_ASSOCREQ_OFF_LISTEN_INT 2
156 #define WLAN_ASSOCREQ_OFF_SSID 4
158 #define WLAN_ASSOCRESP_OFF_CAP_INFO 0
159 #define WLAN_ASSOCRESP_OFF_STATUS 2
160 #define WLAN_ASSOCRESP_OFF_AID 4
161 #define WLAN_ASSOCRESP_OFF_SUPP_RATES 6
163 #define WLAN_REASSOCREQ_OFF_CAP_INFO 0
164 #define WLAN_REASSOCREQ_OFF_LISTEN_INT 2
165 #define WLAN_REASSOCREQ_OFF_CURR_AP 4
166 #define WLAN_REASSOCREQ_OFF_SSID 10
168 #define WLAN_REASSOCRESP_OFF_CAP_INFO 0
169 #define WLAN_REASSOCRESP_OFF_STATUS 2
170 #define WLAN_REASSOCRESP_OFF_AID 4
171 #define WLAN_REASSOCRESP_OFF_SUPP_RATES 6
173 #define WLAN_PROBEREQ_OFF_SSID 0
175 #define WLAN_PROBERESP_OFF_TS 0
176 #define WLAN_PROBERESP_OFF_BCN_INT 8
177 #define WLAN_PROBERESP_OFF_CAP_INFO 10
178 #define WLAN_PROBERESP_OFF_SSID 12
180 #define WLAN_AUTHEN_OFF_AUTH_ALG 0
181 #define WLAN_AUTHEN_OFF_AUTH_SEQ 2
182 #define WLAN_AUTHEN_OFF_STATUS 4
183 #define WLAN_AUTHEN_OFF_CHALLENGE 6
185 #define WLAN_DEAUTHEN_OFF_REASON 0
191 #define WLAN_11i_CSS_USE_GROUP 0
192 #define WLAN_11i_CSS_WEP40 1
193 #define WLAN_11i_CSS_TKIP 2
194 #define WLAN_11i_CSS_CCMP 4
195 #define WLAN_11i_CSS_WEP104 5
196 #define WLAN_11i_CSS_UNKNOWN 255
201 #define WLAN_11i_AKMSS_802_1X 1
202 #define WLAN_11i_AKMSS_PSK 2
203 #define WLAN_11i_AKMSS_UNKNOWN 255
206 #define MEASURE_TYPE_BASIC 0
207 #define MEASURE_TYPE_CCA 1
208 #define MEASURE_TYPE_RPI 2
211 #define MEASURE_MODE_ENABLE 0x02
212 #define MEASURE_MODE_REQ 0x04
213 #define MEASURE_MODE_REP 0x08
216 #define MEASURE_MODE_LATE 0x01
217 #define MEASURE_MODE_INCAPABLE 0x02
218 #define MEASURE_MODE_REFUSED 0x04
719 PWLAN_FR_BEACON pFrame
724 PWLAN_FR_BEACON pFrame
729 PWLAN_FR_IBSSATIM pFrame
734 PWLAN_FR_IBSSATIM pFrame
739 PWLAN_FR_DISASSOC pFrame
744 PWLAN_FR_DISASSOC pFrame
749 PWLAN_FR_ASSOCREQ pFrame
754 PWLAN_FR_ASSOCREQ pFrame
759 PWLAN_FR_ASSOCRESP pFrame
764 PWLAN_FR_ASSOCRESP pFrame
769 PWLAN_FR_REASSOCREQ pFrame
774 PWLAN_FR_REASSOCREQ pFrame
779 PWLAN_FR_PROBEREQ pFrame
784 PWLAN_FR_PROBEREQ pFrame
789 PWLAN_FR_PROBERESP pFrame
794 PWLAN_FR_PROBERESP pFrame
799 PWLAN_FR_AUTHEN pFrame
804 PWLAN_FR_AUTHEN pFrame
809 PWLAN_FR_DEAUTHEN pFrame
814 PWLAN_FR_DEAUTHEN pFrame
819 PWLAN_FR_REASSOCRESP pFrame
824 PWLAN_FR_REASSOCRESP pFrame
827 #endif// __80211MGR_H__