6 #ifndef IEEE802_11_DEFS_H
7 #define IEEE802_11_DEFS_H
13 #define WLAN_FC_PVER 0x0003
14 #define WLAN_FC_TODS 0x0100
15 #define WLAN_FC_FROMDS 0x0200
16 #define WLAN_FC_MOREFRAG 0x0400
17 #define WLAN_FC_RETRY 0x0800
18 #define WLAN_FC_PWRMGT 0x1000
19 #define WLAN_FC_MOREDATA 0x2000
20 #define WLAN_FC_ISWEP 0x4000
21 #define WLAN_FC_ORDER 0x8000
23 #define WLAN_FC_GET_TYPE(fc) (((fc) & 0x000c) >> 2)
24 #define WLAN_FC_GET_STYPE(fc) (((fc) & 0x00f0) >> 4)
26 #define WLAN_INVALID_MGMT_SEQ 0xFFFF
28 #define WLAN_GET_SEQ_FRAG(seq) ((seq) & (BIT(3) | BIT(2) | BIT(1) | BIT(0)))
29 #define WLAN_GET_SEQ_SEQ(seq) \
30 (((seq) & (~(BIT(3) | BIT(2) | BIT(1) | BIT(0)))) >> 4)
32 #define WLAN_FC_TYPE_MGMT 0
33 #define WLAN_FC_TYPE_CTRL 1
34 #define WLAN_FC_TYPE_DATA 2
37 #define WLAN_FC_STYPE_ASSOC_REQ 0
38 #define WLAN_FC_STYPE_ASSOC_RESP 1
39 #define WLAN_FC_STYPE_REASSOC_REQ 2
40 #define WLAN_FC_STYPE_REASSOC_RESP 3
41 #define WLAN_FC_STYPE_PROBE_REQ 4
42 #define WLAN_FC_STYPE_PROBE_RESP 5
43 #define WLAN_FC_STYPE_BEACON 8
44 #define WLAN_FC_STYPE_ATIM 9
45 #define WLAN_FC_STYPE_DISASSOC 10
46 #define WLAN_FC_STYPE_AUTH 11
47 #define WLAN_FC_STYPE_DEAUTH 12
48 #define WLAN_FC_STYPE_ACTION 13
51 #define WLAN_FC_STYPE_PSPOLL 10
52 #define WLAN_FC_STYPE_RTS 11
53 #define WLAN_FC_STYPE_CTS 12
54 #define WLAN_FC_STYPE_ACK 13
55 #define WLAN_FC_STYPE_CFEND 14
56 #define WLAN_FC_STYPE_CFENDACK 15
59 #define WLAN_FC_STYPE_DATA 0
60 #define WLAN_FC_STYPE_DATA_CFACK 1
61 #define WLAN_FC_STYPE_DATA_CFPOLL 2
62 #define WLAN_FC_STYPE_DATA_CFACKPOLL 3
63 #define WLAN_FC_STYPE_NULLFUNC 4
64 #define WLAN_FC_STYPE_CFACK 5
65 #define WLAN_FC_STYPE_CFPOLL 6
66 #define WLAN_FC_STYPE_CFACKPOLL 7
67 #define WLAN_FC_STYPE_QOS_DATA 8
68 #define WLAN_FC_STYPE_QOS_DATA_CFACK 9
69 #define WLAN_FC_STYPE_QOS_DATA_CFPOLL 10
70 #define WLAN_FC_STYPE_QOS_DATA_CFACKPOLL 11
71 #define WLAN_FC_STYPE_QOS_NULL 12
72 #define WLAN_FC_STYPE_QOS_CFPOLL 14
73 #define WLAN_FC_STYPE_QOS_CFACKPOLL 15
76 #define WLAN_AUTH_OPEN 0
77 #define WLAN_AUTH_SHARED_KEY 1
78 #define WLAN_AUTH_FT 2
79 #define WLAN_AUTH_SAE 3
80 #define WLAN_AUTH_LEAP 128
82 #define WLAN_AUTH_CHALLENGE_LEN 128
84 #define WLAN_CAPABILITY_ESS BIT(0)
85 #define WLAN_CAPABILITY_IBSS BIT(1)
86 #define WLAN_CAPABILITY_CF_POLLABLE BIT(2)
87 #define WLAN_CAPABILITY_CF_POLL_REQUEST BIT(3)
88 #define WLAN_CAPABILITY_PRIVACY BIT(4)
89 #define WLAN_CAPABILITY_SHORT_PREAMBLE BIT(5)
90 #define WLAN_CAPABILITY_PBCC BIT(6)
91 #define WLAN_CAPABILITY_CHANNEL_AGILITY BIT(7)
92 #define WLAN_CAPABILITY_SPECTRUM_MGMT BIT(8)
93 #define WLAN_CAPABILITY_SHORT_SLOT_TIME BIT(10)
94 #define WLAN_CAPABILITY_DSSS_OFDM BIT(13)
97 #define WLAN_STATUS_SUCCESS 0
98 #define WLAN_STATUS_UNSPECIFIED_FAILURE 1
99 #define WLAN_STATUS_TDLS_WAKEUP_ALTERNATE 2
100 #define WLAN_STATUS_TDLS_WAKEUP_REJECT 3
101 #define WLAN_STATUS_SECURITY_DISABLED 5
102 #define WLAN_STATUS_UNACCEPTABLE_LIFETIME 6
103 #define WLAN_STATUS_NOT_IN_SAME_BSS 7
104 #define WLAN_STATUS_CAPS_UNSUPPORTED 10
105 #define WLAN_STATUS_REASSOC_NO_ASSOC 11
106 #define WLAN_STATUS_ASSOC_DENIED_UNSPEC 12
107 #define WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG 13
108 #define WLAN_STATUS_UNKNOWN_AUTH_TRANSACTION 14
109 #define WLAN_STATUS_CHALLENGE_FAIL 15
110 #define WLAN_STATUS_AUTH_TIMEOUT 16
111 #define WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA 17
112 #define WLAN_STATUS_ASSOC_DENIED_RATES 18
114 #define WLAN_STATUS_ASSOC_DENIED_NOSHORT 19
115 #define WLAN_STATUS_ASSOC_DENIED_NOPBCC 20
116 #define WLAN_STATUS_ASSOC_DENIED_NOAGILITY 21
118 #define WLAN_STATUS_SPEC_MGMT_REQUIRED 22
119 #define WLAN_STATUS_PWR_CAPABILITY_NOT_VALID 23
120 #define WLAN_STATUS_SUPPORTED_CHANNEL_NOT_VALID 24
122 #define WLAN_STATUS_ASSOC_DENIED_NO_SHORT_SLOT_TIME 25
123 #define WLAN_STATUS_ASSOC_DENIED_NO_DSSS_OFDM 26
124 #define WLAN_STATUS_ASSOC_DENIED_NO_HT 27
125 #define WLAN_STATUS_R0KH_UNREACHABLE 28
126 #define WLAN_STATUS_ASSOC_DENIED_NO_PCO 29
128 #define WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY 30
129 #define WLAN_STATUS_ROBUST_MGMT_FRAME_POLICY_VIOLATION 31
130 #define WLAN_STATUS_UNSPECIFIED_QOS_FAILURE 32
131 #define WLAN_STATUS_REQUEST_DECLINED 37
132 #define WLAN_STATUS_INVALID_PARAMETERS 38
134 #define WLAN_STATUS_INVALID_IE 40
135 #define WLAN_STATUS_GROUP_CIPHER_NOT_VALID 41
136 #define WLAN_STATUS_PAIRWISE_CIPHER_NOT_VALID 42
137 #define WLAN_STATUS_AKMP_NOT_VALID 43
138 #define WLAN_STATUS_UNSUPPORTED_RSN_IE_VERSION 44
139 #define WLAN_STATUS_INVALID_RSN_IE_CAPAB 45
140 #define WLAN_STATUS_CIPHER_REJECTED_PER_POLICY 46
141 #define WLAN_STATUS_TS_NOT_CREATED 47
142 #define WLAN_STATUS_DIRECT_LINK_NOT_ALLOWED 48
143 #define WLAN_STATUS_DEST_STA_NOT_PRESENT 49
144 #define WLAN_STATUS_DEST_STA_NOT_QOS_STA 50
145 #define WLAN_STATUS_ASSOC_DENIED_LISTEN_INT_TOO_LARGE 51
147 #define WLAN_STATUS_INVALID_FT_ACTION_FRAME_COUNT 52
148 #define WLAN_STATUS_INVALID_PMKID 53
149 #define WLAN_STATUS_INVALID_MDIE 54
150 #define WLAN_STATUS_INVALID_FTIE 55
151 #define WLAN_STATUS_GAS_ADV_PROTO_NOT_SUPPORTED 59
152 #define WLAN_STATUS_NO_OUTSTANDING_GAS_REQ 60
153 #define WLAN_STATUS_GAS_RESP_NOT_RECEIVED 61
154 #define WLAN_STATUS_STA_TIMED_OUT_WAITING_FOR_GAS_RESP 62
155 #define WLAN_STATUS_GAS_RESP_LARGER_THAN_LIMIT 63
156 #define WLAN_STATUS_REQ_REFUSED_HOME 64
157 #define WLAN_STATUS_ADV_SRV_UNREACHABLE 65
158 #define WLAN_STATUS_REQ_REFUSED_SSPN 67
159 #define WLAN_STATUS_REQ_REFUSED_UNAUTH_ACCESS 68
160 #define WLAN_STATUS_INVALID_RSNIE 72
161 #define WLAN_STATUS_ANTI_CLOGGING_TOKEN_REQ 76
162 #define WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED 77
163 #define WLAN_STATUS_TRANSMISSION_FAILURE 79
164 #define WLAN_STATUS_REJECTED_WITH_SUGGESTED_BSS_TRANSITION 82
165 #define WLAN_STATUS_PENDING_ADMITTING_FST_SESSION 86
166 #define WLAN_STATUS_QUERY_RESP_OUTSTANDING 95
167 #define WLAN_STATUS_DENIED_WITH_SUGGESTED_BAND_AND_CHANNEL 99
168 #define WLAN_STATUS_ASSOC_DENIED_NO_VHT 104
171 #define WLAN_REASON_UNSPECIFIED 1
172 #define WLAN_REASON_PREV_AUTH_NOT_VALID 2
173 #define WLAN_REASON_DEAUTH_LEAVING 3
174 #define WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY 4
175 #define WLAN_REASON_DISASSOC_AP_BUSY 5
176 #define WLAN_REASON_CLASS2_FRAME_FROM_NONAUTH_STA 6
177 #define WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA 7
178 #define WLAN_REASON_DISASSOC_STA_HAS_LEFT 8
179 #define WLAN_REASON_STA_REQ_ASSOC_WITHOUT_AUTH 9
181 #define WLAN_REASON_PWR_CAPABILITY_NOT_VALID 10
182 #define WLAN_REASON_SUPPORTED_CHANNEL_NOT_VALID 11
184 #define WLAN_REASON_INVALID_IE 13
185 #define WLAN_REASON_MICHAEL_MIC_FAILURE 14
186 #define WLAN_REASON_4WAY_HANDSHAKE_TIMEOUT 15
187 #define WLAN_REASON_GROUP_KEY_UPDATE_TIMEOUT 16
188 #define WLAN_REASON_IE_IN_4WAY_DIFFERS 17
189 #define WLAN_REASON_GROUP_CIPHER_NOT_VALID 18
190 #define WLAN_REASON_PAIRWISE_CIPHER_NOT_VALID 19
191 #define WLAN_REASON_AKMP_NOT_VALID 20
192 #define WLAN_REASON_UNSUPPORTED_RSN_IE_VERSION 21
193 #define WLAN_REASON_INVALID_RSN_IE_CAPAB 22
194 #define WLAN_REASON_IEEE_802_1X_AUTH_FAILED 23
195 #define WLAN_REASON_CIPHER_SUITE_REJECTED 24
196 #define WLAN_REASON_TDLS_TEARDOWN_UNREACHABLE 25
197 #define WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED 26
199 #define WLAN_REASON_DISASSOC_LOW_ACK 34
201 #define WLAN_REASON_MESH_PEERING_CANCELLED 52
202 #define WLAN_REASON_MESH_MAX_PEERS 53
203 #define WLAN_REASON_MESH_CONFIG_POLICY_VIOLATION 54
204 #define WLAN_REASON_MESH_CLOSE_RCVD 55
205 #define WLAN_REASON_MESH_MAX_RETRIES 56
206 #define WLAN_REASON_MESH_CONFIRM_TIMEOUT 57
207 #define WLAN_REASON_MESH_INVALID_GTK 58
208 #define WLAN_REASON_MESH_INCONSISTENT_PARAMS 59
209 #define WLAN_REASON_MESH_INVALID_SECURITY_CAP 60
213 #define WLAN_EID_SSID 0
214 #define WLAN_EID_SUPP_RATES 1
215 #define WLAN_EID_FH_PARAMS 2
216 #define WLAN_EID_DS_PARAMS 3
217 #define WLAN_EID_CF_PARAMS 4
218 #define WLAN_EID_TIM 5
219 #define WLAN_EID_IBSS_PARAMS 6
220 #define WLAN_EID_COUNTRY 7
221 #define WLAN_EID_BSS_LOAD 11
222 #define WLAN_EID_CHALLENGE 16
224 #define WLAN_EID_PWR_CONSTRAINT 32
225 #define WLAN_EID_PWR_CAPABILITY 33
226 #define WLAN_EID_TPC_REQUEST 34
227 #define WLAN_EID_TPC_REPORT 35
228 #define WLAN_EID_SUPPORTED_CHANNELS 36
229 #define WLAN_EID_CHANNEL_SWITCH 37
230 #define WLAN_EID_MEASURE_REQUEST 38
231 #define WLAN_EID_MEASURE_REPORT 39
232 #define WLAN_EID_QUITE 40
233 #define WLAN_EID_IBSS_DFS 41
235 #define WLAN_EID_ERP_INFO 42
236 #define WLAN_EID_HT_CAP 45
237 #define WLAN_EID_QOS 46
238 #define WLAN_EID_RSN 48
239 #define WLAN_EID_EXT_SUPP_RATES 50
240 #define WLAN_EID_NEIGHBOR_REPORT 52
241 #define WLAN_EID_MOBILITY_DOMAIN 54
242 #define WLAN_EID_FAST_BSS_TRANSITION 55
243 #define WLAN_EID_TIMEOUT_INTERVAL 56
244 #define WLAN_EID_RIC_DATA 57
245 #define WLAN_EID_SUPPORTED_OPERATING_CLASSES 59
246 #define WLAN_EID_HT_OPERATION 61
247 #define WLAN_EID_SECONDARY_CHANNEL_OFFSET 62
248 #define WLAN_EID_WAPI 68
249 #define WLAN_EID_TIME_ADVERTISEMENT 69
250 #define WLAN_EID_RRM_ENABLED_CAPABILITIES 70
251 #define WLAN_EID_20_40_BSS_COEXISTENCE 72
252 #define WLAN_EID_20_40_BSS_INTOLERANT 73
253 #define WLAN_EID_OVERLAPPING_BSS_SCAN_PARAMS 74
254 #define WLAN_EID_MMIE 76
255 #define WLAN_EID_SSID_LIST 84
256 #define WLAN_EID_BSS_MAX_IDLE_PERIOD 90
257 #define WLAN_EID_TFS_REQ 91
258 #define WLAN_EID_TFS_RESP 92
259 #define WLAN_EID_WNMSLEEP 93
260 #define WLAN_EID_TIME_ZONE 98
261 #define WLAN_EID_LINK_ID 101
262 #define WLAN_EID_INTERWORKING 107
263 #define WLAN_EID_ADV_PROTO 108
264 #define WLAN_EID_QOS_MAP_SET 110
265 #define WLAN_EID_ROAMING_CONSORTIUM 111
266 #define WLAN_EID_MESH_CONFIG 113
267 #define WLAN_EID_MESH_ID 114
268 #define WLAN_EID_PEER_MGMT 117
269 #define WLAN_EID_EXT_CAPAB 127
270 #define WLAN_EID_AMPE 139
271 #define WLAN_EID_MIC 140
272 #define WLAN_EID_CCKM 156
273 #define WLAN_EID_MULTI_BAND 158
274 #define WLAN_EID_SESSION_TRANSITION 164
275 #define WLAN_EID_VHT_CAP 191
276 #define WLAN_EID_VHT_OPERATION 192
277 #define WLAN_EID_VHT_EXTENDED_BSS_LOAD 193
278 #define WLAN_EID_VHT_WIDE_BW_CHSWITCH 194
279 #define WLAN_EID_VHT_TRANSMIT_POWER_ENVELOPE 195
280 #define WLAN_EID_VHT_CHANNEL_SWITCH_WRAPPER 196
281 #define WLAN_EID_VHT_AID 197
282 #define WLAN_EID_VHT_QUIET_CHANNEL 198
283 #define WLAN_EID_VHT_OPERATING_MODE_NOTIFICATION 199
284 #define WLAN_EID_VENDOR_SPECIFIC 221
288 #define WLAN_ACTION_SPECTRUM_MGMT 0
289 #define WLAN_ACTION_QOS 1
290 #define WLAN_ACTION_DLS 2
291 #define WLAN_ACTION_BLOCK_ACK 3
292 #define WLAN_ACTION_PUBLIC 4
293 #define WLAN_ACTION_RADIO_MEASUREMENT 5
294 #define WLAN_ACTION_FT 6
295 #define WLAN_ACTION_HT 7
296 #define WLAN_ACTION_SA_QUERY 8
297 #define WLAN_ACTION_PROTECTED_DUAL 9
298 #define WLAN_ACTION_WNM 10
299 #define WLAN_ACTION_UNPROTECTED_WNM 11
300 #define WLAN_ACTION_TDLS 12
301 #define WLAN_ACTION_SELF_PROTECTED 15
302 #define WLAN_ACTION_WMM 17
303 #define WLAN_ACTION_FST 18
304 #define WLAN_ACTION_VENDOR_SPECIFIC 127
307 #define WLAN_PA_20_40_BSS_COEX 0
308 #define WLAN_PA_VENDOR_SPECIFIC 9
309 #define WLAN_PA_GAS_INITIAL_REQ 10
310 #define WLAN_PA_GAS_INITIAL_RESP 11
311 #define WLAN_PA_GAS_COMEBACK_REQ 12
312 #define WLAN_PA_GAS_COMEBACK_RESP 13
313 #define WLAN_TDLS_DISCOVERY_RESPONSE 14
316 #define WLAN_PROT_DSE_ENABLEMENT 1
317 #define WLAN_PROT_DSE_DEENABLEMENT 2
318 #define WLAN_PROT_EXT_CSA 4
319 #define WLAN_PROT_MEASUREMENT_REQ 5
320 #define WLAN_PROT_MEASUREMENT_REPORT 6
321 #define WLAN_PROT_DSE_POWER_CONSTRAINT 8
322 #define WLAN_PROT_VENDOR_SPECIFIC 9
323 #define WLAN_PROT_GAS_INITIAL_REQ 10
324 #define WLAN_PROT_GAS_INITIAL_RESP 11
325 #define WLAN_PROT_GAS_COMEBACK_REQ 12
326 #define WLAN_PROT_GAS_COMEBACK_RESP 13
329 #define WLAN_SA_QUERY_REQUEST 0
330 #define WLAN_SA_QUERY_RESPONSE 1
332 #define WLAN_SA_QUERY_TR_ID_LEN 2
335 #define WLAN_TDLS_SETUP_REQUEST 0
336 #define WLAN_TDLS_SETUP_RESPONSE 1
337 #define WLAN_TDLS_SETUP_CONFIRM 2
338 #define WLAN_TDLS_TEARDOWN 3
339 #define WLAN_TDLS_PEER_TRAFFIC_INDICATION 4
340 #define WLAN_TDLS_CHANNEL_SWITCH_REQUEST 5
341 #define WLAN_TDLS_CHANNEL_SWITCH_RESPONSE 6
342 #define WLAN_TDLS_PEER_PSM_REQUEST 7
343 #define WLAN_TDLS_PEER_PSM_RESPONSE 8
344 #define WLAN_TDLS_PEER_TRAFFIC_RESPONSE 9
345 #define WLAN_TDLS_DISCOVERY_REQUEST 10
348 #define WLAN_RRM_RADIO_MEASUREMENT_REQUEST 0
349 #define WLAN_RRM_RADIO_MEASUREMENT_REPORT 1
350 #define WLAN_RRM_LINK_MEASUREMENT_REQUEST 2
351 #define WLAN_RRM_LINK_MEASUREMENT_REPORT 3
352 #define WLAN_RRM_NEIGHBOR_REPORT_REQUEST 4
353 #define WLAN_RRM_NEIGHBOR_REPORT_RESPONSE 5
357 #define WLAN_RRM_CAPS_LINK_MEASUREMENT BIT(0)
358 #define WLAN_RRM_CAPS_NEIGHBOR_REPORT BIT(1)
361 #define WLAN_TIMEOUT_REASSOC_DEADLINE 1
362 #define WLAN_TIMEOUT_KEY_LIFETIME 2
363 #define WLAN_TIMEOUT_ASSOC_COMEBACK 3
366 #define INTERWORKING_ANO_ACCESS_NETWORK_MASK 0x0f
367 #define INTERWORKING_ANO_INTERNET 0x10
368 #define INTERWORKING_ANO_ASRA 0x20
369 #define INTERWORKING_ANO_ESR 0x40
370 #define INTERWORKING_ANO_UESA 0x80
372 #define INTERWORKING_ANT_PRIVATE 0
373 #define INTERWORKING_ANT_PRIVATE_WITH_GUEST 1
374 #define INTERWORKING_ANT_CHARGEABLE_PUBLIC 2
375 #define INTERWORKING_ANT_FREE_PUBLIC 3
376 #define INTERWORKING_ANT_PERSONAL_DEVICE 4
377 #define INTERWORKING_ANT_EMERGENCY_SERVICES 5
378 #define INTERWORKING_ANT_TEST 6
379 #define INTERWORKING_ANT_WILDCARD 15
383 ACCESS_NETWORK_QUERY_PROTOCOL = 0,
384 MIH_INFO_SERVICE = 1,
385 MIH_CMD_AND_EVENT_DISCOVERY = 2,
386 EMERGENCY_ALERT_SYSTEM = 3,
387 ADV_PROTO_VENDOR_SPECIFIC = 221
392 ANQP_QUERY_LIST = 256,
393 ANQP_CAPABILITY_LIST = 257,
394 ANQP_VENUE_NAME = 258,
395 ANQP_EMERGENCY_CALL_NUMBER = 259,
396 ANQP_NETWORK_AUTH_TYPE = 260,
397 ANQP_ROAMING_CONSORTIUM = 261,
398 ANQP_IP_ADDR_TYPE_AVAILABILITY = 262,
399 ANQP_NAI_REALM = 263,
400 ANQP_3GPP_CELLULAR_NETWORK = 264,
401 ANQP_AP_GEOSPATIAL_LOCATION = 265,
402 ANQP_AP_CIVIC_LOCATION = 266,
403 ANQP_AP_LOCATION_PUBLIC_URI = 267,
404 ANQP_DOMAIN_NAME = 268,
405 ANQP_EMERGENCY_ALERT_URI = 269,
406 ANQP_EMERGENCY_NAI = 271,
407 ANQP_VENDOR_SPECIFIC = 56797
411 enum nai_realm_eap_auth_param {
412 NAI_REALM_EAP_AUTH_EXPANDED_EAP_METHOD = 1,
413 NAI_REALM_EAP_AUTH_NON_EAP_INNER_AUTH = 2,
414 NAI_REALM_EAP_AUTH_INNER_AUTH_EAP_METHOD = 3,
415 NAI_REALM_EAP_AUTH_EXPANDED_INNER_EAP_METHOD = 4,
416 NAI_REALM_EAP_AUTH_CRED_TYPE = 5,
417 NAI_REALM_EAP_AUTH_TUNNELED_CRED_TYPE = 6,
418 NAI_REALM_EAP_AUTH_VENDOR_SPECIFIC = 221
421 enum nai_realm_eap_auth_inner_non_eap {
422 NAI_REALM_INNER_NON_EAP_PAP = 1,
423 NAI_REALM_INNER_NON_EAP_CHAP = 2,
424 NAI_REALM_INNER_NON_EAP_MSCHAP = 3,
425 NAI_REALM_INNER_NON_EAP_MSCHAPV2 = 4
428 enum nai_realm_eap_cred_type {
429 NAI_REALM_CRED_TYPE_SIM = 1,
430 NAI_REALM_CRED_TYPE_USIM = 2,
431 NAI_REALM_CRED_TYPE_NFC_SECURE_ELEMENT = 3,
432 NAI_REALM_CRED_TYPE_HARDWARE_TOKEN = 4,
433 NAI_REALM_CRED_TYPE_SOFTOKEN = 5,
434 NAI_REALM_CRED_TYPE_CERTIFICATE = 6,
435 NAI_REALM_CRED_TYPE_USERNAME_PASSWORD = 7,
436 NAI_REALM_CRED_TYPE_NONE = 8,
437 NAI_REALM_CRED_TYPE_ANONYMOUS = 9,
438 NAI_REALM_CRED_TYPE_VENDOR_SPECIFIC = 10
442 #pragma pack(push, 1)
456 #define IEEE80211_DA_FROMDS addr1
457 #define IEEE80211_BSSID_FROMDS addr2
458 #define IEEE80211_SA_FROMDS addr3
460 #define IEEE80211_HDRLEN (sizeof(struct ieee80211_hdr))
462 #define IEEE80211_FC(type, stype) host_to_le16((type << 2) | (stype << 4))
474 le16 auth_transaction;
478 } STRUCT_PACKED auth;
482 } STRUCT_PACKED deauth;
485 le16 listen_interval;
488 } STRUCT_PACKED assoc_req;
495 } STRUCT_PACKED assoc_resp, reassoc_resp;
498 le16 listen_interval;
502 } STRUCT_PACKED reassoc_req;
506 } STRUCT_PACKED disassoc;
514 } STRUCT_PACKED beacon;
518 } STRUCT_PACKED probe_req;
526 } STRUCT_PACKED probe_resp;
535 } STRUCT_PACKED wmm_action;
543 } STRUCT_PACKED chan_switch;
546 u8 sta_addr[ETH_ALEN];
547 u8 target_ap_addr[ETH_ALEN];
549 } STRUCT_PACKED ft_action_req;
552 u8 sta_addr[ETH_ALEN];
553 u8 target_ap_addr[ETH_ALEN];
556 } STRUCT_PACKED ft_action_resp;
559 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
560 } STRUCT_PACKED sa_query_req;
563 u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
564 } STRUCT_PACKED sa_query_resp;
569 } STRUCT_PACKED wnm_sleep_req;
575 } STRUCT_PACKED wnm_sleep_resp;
579 } STRUCT_PACKED public_action;
585 } STRUCT_PACKED vs_public_action;
591 u8 validity_interval;
597 } STRUCT_PACKED bss_tm_req;
602 u8 bss_termination_delay;
607 } STRUCT_PACKED bss_tm_resp;
615 } STRUCT_PACKED bss_tm_query;
619 } STRUCT_PACKED slf_prot_action;
623 } STRUCT_PACKED fst_action;
625 } STRUCT_PACKED action;
631 #define IEEE80211_HT_MCS_MASK_LEN 10
635 le16 ht_capabilities_info;
639 u8 supported_mcs_set[16];
640 le16 ht_extended_capabilities;
641 le32 tx_bf_capability_info;
642 u8 asel_capabilities;
653 u8 basic_mcs_set[16];
658 le16 scan_passive_dwell;
659 le16 scan_active_dwell;
660 le16 width_trigger_scan_interval;
661 le16 scan_passive_total_per_channel;
662 le16 scan_active_total_per_channel;
663 le16 channel_transition_delay_factor;
664 le16 scan_activity_threshold;
669 le32 vht_capabilities_info;
675 } vht_supported_mcs_set;
679 u8 vht_op_info_chwidth;
680 u8 vht_op_info_chan_center_freq_seg0_idx;
681 u8 vht_op_info_chan_center_freq_seg1_idx;
682 le16 vht_basic_mcs_set;
686 u8 selected_pairwise_suite[4];
691 u8 key_expiration[4];
698 #define ERP_INFO_NON_ERP_PRESENT BIT(0)
699 #define ERP_INFO_USE_PROTECTION BIT(1)
700 #define ERP_INFO_BARKER_PREAMBLE_MODE BIT(2)
702 #define OVERLAPPING_BSS_TRANS_DELAY_FACTOR 5
705 #define HT_CAP_INFO_LDPC_CODING_CAP ((u16) BIT(0))
706 #define HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET ((u16) BIT(1))
707 #define HT_CAP_INFO_SMPS_MASK ((u16) (BIT(2) | BIT(3)))
708 #define HT_CAP_INFO_SMPS_STATIC ((u16) 0)
709 #define HT_CAP_INFO_SMPS_DYNAMIC ((u16) BIT(2))
710 #define HT_CAP_INFO_SMPS_DISABLED ((u16) (BIT(2) | BIT(3)))
711 #define HT_CAP_INFO_GREEN_FIELD ((u16) BIT(4))
712 #define HT_CAP_INFO_SHORT_GI20MHZ ((u16) BIT(5))
713 #define HT_CAP_INFO_SHORT_GI40MHZ ((u16) BIT(6))
714 #define HT_CAP_INFO_TX_STBC ((u16) BIT(7))
715 #define HT_CAP_INFO_RX_STBC_MASK ((u16) (BIT(8) | BIT(9)))
716 #define HT_CAP_INFO_RX_STBC_1 ((u16) BIT(8))
717 #define HT_CAP_INFO_RX_STBC_12 ((u16) BIT(9))
718 #define HT_CAP_INFO_RX_STBC_123 ((u16) (BIT(8) | BIT(9)))
719 #define HT_CAP_INFO_DELAYED_BA ((u16) BIT(10))
720 #define HT_CAP_INFO_MAX_AMSDU_SIZE ((u16) BIT(11))
721 #define HT_CAP_INFO_DSSS_CCK40MHZ ((u16) BIT(12))
723 #define HT_CAP_INFO_40MHZ_INTOLERANT ((u16) BIT(14))
724 #define HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT ((u16) BIT(15))
727 #define EXT_HT_CAP_INFO_PCO ((u16) BIT(0))
728 #define EXT_HT_CAP_INFO_PCO_TRANS_TIME_MASK ((u16) (BIT(1) | BIT(2)))
729 #define EXT_HT_CAP_INFO_TRANS_TIME_OFFSET 1
731 #define EXT_HT_CAP_INFO_MCS_FEEDBACK_MASK ((u16) (BIT(8) | BIT(9)))
732 #define EXT_HT_CAP_INFO_MCS_FEEDBACK_OFFSET 8
733 #define EXT_HT_CAP_INFO_HTC_SUPPORT ((u16) BIT(10))
734 #define EXT_HT_CAP_INFO_RD_RESPONDER ((u16) BIT(11))
738 #define TX_BF_CAP_IMPLICIT_TXBF_RX_CAP ((u32) BIT(0))
739 #define TX_BF_CAP_RX_STAGGERED_SOUNDING_CAP ((u32) BIT(1))
740 #define TX_BF_CAP_TX_STAGGERED_SOUNDING_CAP ((u32) BIT(2))
741 #define TX_BF_CAP_RX_NDP_CAP ((u32) BIT(3))
742 #define TX_BF_CAP_TX_NDP_CAP ((u32) BIT(4))
743 #define TX_BF_CAP_IMPLICIT_TX_BF_CAP ((u32) BIT(5))
744 #define TX_BF_CAP_CALIBRATION_MASK ((u32) (BIT(6) | BIT(7))
745 #define TX_BF_CAP_CALIB_OFFSET 6
746 #define TX_BF_CAP_EXPLICIT_CSI_TXBF_CAP ((u32) BIT(8))
747 #define TX_BF_CAP_EXPLICIT_NONCOMPR_STEERING_CAP ((u32) BIT(9))
748 #define TX_BF_CAP_EXPLICIT_COMPR_STEERING_CAP ((u32) BIT(10))
749 #define TX_BF_CAP_EXPLICIT_TX_BF_CSI_FEEDBACK_MASK ((u32) (BIT(10) | BIT(11)))
750 #define TX_BF_CAP_EXPLICIT_BF_CSI_FEEDBACK_OFFSET 11
751 #define TX_BF_CAP_EXPLICIT_UNCOMPR_STEERING_MATRIX_FEEDBACK_OFFSET 13
752 #define TX_BF_CAP_EXPLICIT_COMPRESSED_STEERING_MATRIX_FEEDBACK_OFFSET 15
753 #define TX_BF_CAP_MINIMAL_GROUPING_OFFSET 17
754 #define TX_BF_CAP_CSI_NUM_BEAMFORMER_ANT_OFFSET 19
755 #define TX_BF_CAP_UNCOMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 21
756 #define TX_BF_CAP_COMPRESSED_STEERING_MATRIX_BEAMFORMER_ANT_OFFSET 23
757 #define TX_BF_CAP_SCI_MAX_OF_ROWS_BEANFORMER_SUPPORTED_OFFSET 25
758 #define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_MASK ((u32) (BIT(27) | BIT(28)))
759 #define TX_BF_CAP_CHANNEL_ESTIMATION_CAP_OFFSET 27
763 #define ASEL_CAP_ASEL_CAPABLE ((u8) BIT(0))
764 #define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(1))
765 #define ASEL_CAP_ANT_INDICES_FEEDBACK_BASED_TX_AS_CAP ((u8) BIT(2))
766 #define ASEL_CAP_EXPLICIT_CSI_FEEDBACK_CAP ((u8) BIT(3))
767 #define ASEL_CAP_ANT_INDICES_FEEDBACK_CAP ((u8) BIT(4))
768 #define ASEL_CAP_RX_AS_CAP ((u8) BIT(5))
769 #define ASEL_CAP_TX_SOUNDING_PPDUS_CAP ((u8) BIT(6))
773 #define HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK ((u8) BIT(0) | BIT(1))
774 #define HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE ((u8) BIT(0))
775 #define HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW ((u8) BIT(0) | BIT(1))
776 #define HT_INFO_HT_PARAM_STA_CHNL_WIDTH ((u8) BIT(2))
777 #define HT_INFO_HT_PARAM_RIFS_MODE ((u8) BIT(3))
781 #define HT_PROT_NO_PROTECTION 0
782 #define HT_PROT_NONMEMBER_PROTECTION 1
783 #define HT_PROT_20MHZ_PROTECTION 2
784 #define HT_PROT_NON_HT_MIXED 3
787 #define HT_OPER_OP_MODE_HT_PROT_MASK ((u16) (BIT(0) | BIT(1)))
788 #define HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT ((u16) BIT(2))
790 #define HT_OPER_OP_MODE_OBSS_NON_HT_STAS_PRESENT ((u16) BIT(4))
795 #define HT_OPER_PARAM_DUAL_BEACON ((u16) BIT(6))
796 #define HT_OPER_PARAM_DUAL_CTS_PROTECTION ((u16) BIT(7))
797 #define HT_OPER_PARAM_STBC_BEACON ((u16) BIT(8))
798 #define HT_OPER_PARAM_LSIG_TXOP_PROT_FULL_SUPP ((u16) BIT(9))
799 #define HT_OPER_PARAM_PCO_ACTIVE ((u16) BIT(10))
800 #define HT_OPER_PARAM_PCO_PHASE ((u16) BIT(11))
803 #define BSS_MEMBERSHIP_SELECTOR_VHT_PHY 126
804 #define BSS_MEMBERSHIP_SELECTOR_HT_PHY 127
807 #define VHT_CAP_MAX_MPDU_LENGTH_7991 ((u32) BIT(0))
808 #define VHT_CAP_MAX_MPDU_LENGTH_11454 ((u32) BIT(1))
809 #define VHT_CAP_MAX_MPDU_LENGTH_MASK ((u32) BIT(0) | BIT(1))
810 #define VHT_CAP_MAX_MPDU_LENGTH_MASK_SHIFT 0
811 #define VHT_CAP_SUPP_CHAN_WIDTH_160MHZ ((u32) BIT(2))
812 #define VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ ((u32) BIT(3))
813 #define VHT_CAP_SUPP_CHAN_WIDTH_MASK ((u32) BIT(2) | BIT(3))
814 #define VHT_CAP_RXLDPC ((u32) BIT(4))
815 #define VHT_CAP_SHORT_GI_80 ((u32) BIT(5))
816 #define VHT_CAP_SHORT_GI_160 ((u32) BIT(6))
817 #define VHT_CAP_TXSTBC ((u32) BIT(7))
818 #define VHT_CAP_RXSTBC_1 ((u32) BIT(8))
819 #define VHT_CAP_RXSTBC_2 ((u32) BIT(9))
820 #define VHT_CAP_RXSTBC_3 ((u32) BIT(8) | BIT(9))
821 #define VHT_CAP_RXSTBC_4 ((u32) BIT(10))
822 #define VHT_CAP_RXSTBC_MASK ((u32) BIT(8) | BIT(9) | \
824 #define VHT_CAP_RXSTBC_MASK_SHIFT 8
825 #define VHT_CAP_SU_BEAMFORMER_CAPABLE ((u32) BIT(11))
826 #define VHT_CAP_SU_BEAMFORMEE_CAPABLE ((u32) BIT(12))
827 #define VHT_CAP_BEAMFORMEE_STS_MAX ((u32) BIT(13) | \
829 #define VHT_CAP_BEAMFORMEE_STS_MAX_SHIFT 13
830 #define VHT_CAP_BEAMFORMEE_STS_OFFSET 13
831 #define VHT_CAP_SOUNDING_DIMENSION_MAX ((u32) BIT(16) | \
833 #define VHT_CAP_SOUNDING_DIMENSION_MAX_SHIFT 16
834 #define VHT_CAP_SOUNDING_DIMENSION_OFFSET 16
835 #define VHT_CAP_MU_BEAMFORMER_CAPABLE ((u32) BIT(19))
836 #define VHT_CAP_MU_BEAMFORMEE_CAPABLE ((u32) BIT(20))
837 #define VHT_CAP_VHT_TXOP_PS ((u32) BIT(21))
838 #define VHT_CAP_HTC_VHT ((u32) BIT(22))
840 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_1 ((u32) BIT(23))
841 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_2 ((u32) BIT(24))
842 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_3 ((u32) BIT(23) | BIT(24))
843 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_4 ((u32) BIT(25))
844 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_5 ((u32) BIT(23) | BIT(25))
845 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_6 ((u32) BIT(24) | BIT(25))
846 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX ((u32) BIT(23) | \
848 #define VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX_SHIFT 23
849 #define VHT_CAP_VHT_LINK_ADAPTATION_VHT_UNSOL_MFB ((u32) BIT(27))
850 #define VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB ((u32) BIT(26) | BIT(27))
851 #define VHT_CAP_RX_ANTENNA_PATTERN ((u32) BIT(28))
852 #define VHT_CAP_TX_ANTENNA_PATTERN ((u32) BIT(29))
854 #define VHT_OPMODE_CHANNEL_WIDTH_MASK ((u8) BIT(0) | BIT(1))
855 #define VHT_OPMODE_CHANNEL_RxNSS_MASK ((u8) BIT(4) | BIT(5) | \
857 #define VHT_OPMODE_NOTIF_RX_NSS_SHIFT 4
859 #define VHT_RX_NSS_MAX_STREAMS 8
862 #define VHT_CHANWIDTH_USE_HT 0
863 #define VHT_CHANWIDTH_80MHZ 1
864 #define VHT_CHANWIDTH_160MHZ 2
865 #define VHT_CHANWIDTH_80P80MHZ 3
867 #define OUI_MICROSOFT 0x0050f2
869 #define WPA_IE_VENDOR_TYPE 0x0050f201
870 #define WMM_IE_VENDOR_TYPE 0x0050f202
871 #define WPS_IE_VENDOR_TYPE 0x0050f204
872 #define OUI_WFA 0x506f9a
873 #define P2P_IE_VENDOR_TYPE 0x506f9a09
874 #define WFD_IE_VENDOR_TYPE 0x506f9a0a
875 #define WFD_OUI_TYPE 10
876 #define HS20_IE_VENDOR_TYPE 0x506f9a10
877 #define OSEN_IE_VENDOR_TYPE 0x506f9a12
879 #define WMM_OUI_TYPE 2
880 #define WMM_OUI_SUBTYPE_INFORMATION_ELEMENT 0
881 #define WMM_OUI_SUBTYPE_PARAMETER_ELEMENT 1
882 #define WMM_OUI_SUBTYPE_TSPEC_ELEMENT 2
883 #define WMM_VERSION 1
885 #define WMM_ACTION_CODE_ADDTS_REQ 0
886 #define WMM_ACTION_CODE_ADDTS_RESP 1
887 #define WMM_ACTION_CODE_DELTS 2
889 #define WMM_ADDTS_STATUS_ADMISSION_ACCEPTED 0
890 #define WMM_ADDTS_STATUS_INVALID_PARAMETERS 1
892 #define WMM_ADDTS_STATUS_REFUSED 3
896 #define WMM_TSPEC_DIRECTION_UPLINK 0
897 #define WMM_TSPEC_DIRECTION_DOWNLINK 1
899 #define WMM_TSPEC_DIRECTION_BI_DIRECTIONAL 3
916 #define WMM_QOSINFO_AP_UAPSD 0x80
918 #define WMM_QOSINFO_STA_AC_MASK 0x0f
919 #define WMM_QOSINFO_STA_SP_MASK 0x03
920 #define WMM_QOSINFO_STA_SP_SHIFT 5
922 #define WMM_AC_AIFSN_MASK 0x0f
923 #define WMM_AC_AIFNS_SHIFT 0
924 #define WMM_AC_ACM 0x10
925 #define WMM_AC_ACI_MASK 0x60
926 #define WMM_AC_ACI_SHIFT 5
928 #define WMM_AC_ECWMIN_MASK 0x0f
929 #define WMM_AC_ECWMIN_SHIFT 0
930 #define WMM_AC_ECWMAX_MASK 0xf0
931 #define WMM_AC_ECWMAX_SHIFT 4
966 le16 nominal_msdu_size;
967 le16 maximum_msdu_size;
968 le32 minimum_service_interval;
969 le32 maximum_service_interval;
970 le32 inactivity_interval;
971 le32 suspension_interval;
972 le32 service_start_time;
973 le32 minimum_data_rate;
976 le32 maximum_burst_size;
978 le32 minimum_phy_rate;
979 le16 surplus_bandwidth_allowance;
994 #define HS20_INDICATION_OUI_TYPE 16
995 #define HS20_ANQP_OUI_TYPE 17
996 #define HS20_OSEN_OUI_TYPE 18
997 #define HS20_STYPE_QUERY_LIST 1
998 #define HS20_STYPE_CAPABILITY_LIST 2
999 #define HS20_STYPE_OPERATOR_FRIENDLY_NAME 3
1000 #define HS20_STYPE_WAN_METRICS 4
1001 #define HS20_STYPE_CONNECTION_CAPABILITY 5
1002 #define HS20_STYPE_NAI_HOME_REALM_QUERY 6
1003 #define HS20_STYPE_OPERATING_CLASS 7
1004 #define HS20_STYPE_OSU_PROVIDERS_LIST 8
1005 #define HS20_STYPE_ICON_REQUEST 10
1006 #define HS20_STYPE_ICON_BINARY_FILE 11
1008 #define HS20_DGAF_DISABLED 0x01
1009 #define HS20_PPS_MO_ID_PRESENT 0x02
1010 #define HS20_ANQP_DOMAIN_ID_PRESENT 0x04
1011 #define HS20_VERSION 0x10
1014 #define HS20_WNM_SUB_REM_NEEDED 0
1015 #define HS20_WNM_DEAUTH_IMMINENT_NOTICE 1
1017 #define HS20_DEAUTH_REASON_CODE_BSS 0
1018 #define HS20_DEAUTH_REASON_CODE_ESS 1
1022 #define P2P_OUI_TYPE 9
1025 P2P_ATTR_STATUS = 0,
1026 P2P_ATTR_MINOR_REASON_CODE = 1,
1027 P2P_ATTR_CAPABILITY = 2,
1028 P2P_ATTR_DEVICE_ID = 3,
1029 P2P_ATTR_GROUP_OWNER_INTENT = 4,
1030 P2P_ATTR_CONFIGURATION_TIMEOUT = 5,
1031 P2P_ATTR_LISTEN_CHANNEL = 6,
1032 P2P_ATTR_GROUP_BSSID = 7,
1033 P2P_ATTR_EXT_LISTEN_TIMING = 8,
1034 P2P_ATTR_INTENDED_INTERFACE_ADDR = 9,
1035 P2P_ATTR_MANAGEABILITY = 10,
1036 P2P_ATTR_CHANNEL_LIST = 11,
1037 P2P_ATTR_NOTICE_OF_ABSENCE = 12,
1038 P2P_ATTR_DEVICE_INFO = 13,
1039 P2P_ATTR_GROUP_INFO = 14,
1040 P2P_ATTR_GROUP_ID = 15,
1041 P2P_ATTR_INTERFACE = 16,
1042 P2P_ATTR_OPERATING_CHANNEL = 17,
1043 P2P_ATTR_INVITATION_FLAGS = 18,
1044 P2P_ATTR_OOB_GO_NEG_CHANNEL = 19,
1045 P2P_ATTR_SERVICE_HASH = 21,
1046 P2P_ATTR_SESSION_INFORMATION_DATA = 22,
1047 P2P_ATTR_CONNECTION_CAPABILITY = 23,
1048 P2P_ATTR_ADVERTISEMENT_ID = 24,
1049 P2P_ATTR_ADVERTISED_SERVICE = 25,
1050 P2P_ATTR_SESSION_ID = 26,
1051 P2P_ATTR_FEATURE_CAPABILITY = 27,
1052 P2P_ATTR_PERSISTENT_GROUP = 28,
1053 P2P_ATTR_VENDOR_SPECIFIC = 221
1056 #define P2P_MAX_GO_INTENT 15
1059 #define P2P_DEV_CAPAB_SERVICE_DISCOVERY BIT(0)
1060 #define P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY BIT(1)
1061 #define P2P_DEV_CAPAB_CONCURRENT_OPER BIT(2)
1062 #define P2P_DEV_CAPAB_INFRA_MANAGED BIT(3)
1063 #define P2P_DEV_CAPAB_DEVICE_LIMIT BIT(4)
1064 #define P2P_DEV_CAPAB_INVITATION_PROCEDURE BIT(5)
1067 #define P2P_GROUP_CAPAB_GROUP_OWNER BIT(0)
1068 #define P2P_GROUP_CAPAB_PERSISTENT_GROUP BIT(1)
1069 #define P2P_GROUP_CAPAB_GROUP_LIMIT BIT(2)
1070 #define P2P_GROUP_CAPAB_INTRA_BSS_DIST BIT(3)
1071 #define P2P_GROUP_CAPAB_CROSS_CONN BIT(4)
1072 #define P2P_GROUP_CAPAB_PERSISTENT_RECONN BIT(5)
1073 #define P2P_GROUP_CAPAB_GROUP_FORMATION BIT(6)
1074 #define P2P_GROUP_CAPAB_IP_ADDR_ALLOCATION BIT(7)
1077 #define P2PS_FEATURE_CAPAB_UDP_TRANSPORT BIT(0)
1078 #define P2PS_FEATURE_CAPAB_MAC_TRANSPORT BIT(1)
1086 #define P2P_INVITATION_FLAGS_TYPE BIT(0)
1089 #define P2P_MAN_DEVICE_MANAGEMENT BIT(0)
1090 #define P2P_MAN_CROSS_CONNECTION_PERMITTED BIT(1)
1091 #define P2P_MAN_COEXISTENCE_OPTIONAL BIT(2)
1093 enum p2p_status_code {
1095 P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE = 1,
1096 P2P_SC_FAIL_INCOMPATIBLE_PARAMS = 2,
1097 P2P_SC_FAIL_LIMIT_REACHED = 3,
1098 P2P_SC_FAIL_INVALID_PARAMS = 4,
1099 P2P_SC_FAIL_UNABLE_TO_ACCOMMODATE = 5,
1100 P2P_SC_FAIL_PREV_PROTOCOL_ERROR = 6,
1101 P2P_SC_FAIL_NO_COMMON_CHANNELS = 7,
1102 P2P_SC_FAIL_UNKNOWN_GROUP = 8,
1103 P2P_SC_FAIL_BOTH_GO_INTENT_15 = 9,
1104 P2P_SC_FAIL_INCOMPATIBLE_PROV_METHOD = 10,
1105 P2P_SC_FAIL_REJECTED_BY_USER = 11,
1106 P2P_SC_SUCCESS_DEFERRED = 12,
1109 enum p2p_role_indication {
1110 P2P_DEVICE_NOT_IN_GROUP = 0x00,
1111 P2P_CLIENT_IN_A_GROUP = 0x01,
1112 P2P_GO_IN_A_GROUP = 0x02,
1115 #define P2P_WILDCARD_SSID "DIRECT-"
1116 #define P2P_WILDCARD_SSID_LEN 7
1119 enum p2p_act_frame_type {
1121 P2P_PRESENCE_REQ = 1,
1122 P2P_PRESENCE_RESP = 2,
1127 enum p2p_action_frame_type {
1129 P2P_GO_NEG_RESP = 1,
1130 P2P_GO_NEG_CONF = 2,
1131 P2P_INVITATION_REQ = 3,
1132 P2P_INVITATION_RESP = 4,
1133 P2P_DEV_DISC_REQ = 5,
1134 P2P_DEV_DISC_RESP = 6,
1135 P2P_PROV_DISC_REQ = 7,
1136 P2P_PROV_DISC_RESP = 8
1139 enum p2p_service_protocol_type {
1140 P2P_SERV_ALL_SERVICES = 0,
1141 P2P_SERV_BONJOUR = 1,
1143 P2P_SERV_WS_DISCOVERY = 3,
1144 P2P_SERV_WIFI_DISPLAY = 4,
1146 P2P_SERV_VENDOR_SPECIFIC = 255
1149 enum p2p_sd_status {
1151 P2P_SD_PROTO_NOT_AVAILABLE = 1,
1152 P2P_SD_REQUESTED_INFO_NOT_AVAILABLE = 2,
1153 P2P_SD_BAD_REQUEST = 3
1157 enum wifi_display_subelem {
1158 WFD_SUBELEM_DEVICE_INFO = 0,
1159 WFD_SUBELEM_ASSOCIATED_BSSID = 1,
1160 WFD_SUBELEM_AUDIO_FORMATS = 2,
1161 WFD_SUBELEM_VIDEO_FORMATS = 3,
1162 WFD_SUBELEM_3D_VIDEO_FORMATS = 4,
1163 WFD_SUBELEM_CONTENT_PROTECTION = 5,
1164 WFD_SUBELEM_COUPLED_SINK = 6,
1165 WFD_SUBELEM_EXT_CAPAB = 7,
1166 WFD_SUBELEM_LOCAL_IP_ADDRESS = 8,
1167 WFD_SUBELEM_SESSION_INFO = 9
1171 #define MESH_SYNC_METHOD_NEIGHBOR_OFFSET 1
1172 #define MESH_SYNC_METHOD_VENDOR 255
1173 #define MESH_PATH_PROTOCOL_HWMP 1
1174 #define MESH_PATH_PROTOCOL_VENDOR 255
1175 #define MESH_PATH_METRIC_AIRTIME 1
1176 #define MESH_PATH_METRIC_VENDOR 255
1178 enum plink_action_field {
1184 #define OUI_BROADCOM 0x00904c
1185 #define VENDOR_VHT_TYPE 0x04
1186 #define VENDOR_VHT_SUBTYPE 0x08
1187 #define VENDOR_VHT_SUBTYPE2 0x00
1189 #define VENDOR_HT_CAPAB_OUI_TYPE 0x33
1192 #define WLAN_CIPHER_SUITE_USE_GROUP 0x000FAC00
1193 #define WLAN_CIPHER_SUITE_WEP40 0x000FAC01
1194 #define WLAN_CIPHER_SUITE_TKIP 0x000FAC02
1196 #define WLAN_CIPHER_SUITE_CCMP 0x000FAC04
1197 #define WLAN_CIPHER_SUITE_WEP104 0x000FAC05
1198 #define WLAN_CIPHER_SUITE_AES_CMAC 0x000FAC06
1199 #define WLAN_CIPHER_SUITE_NO_GROUP_ADDR 0x000FAC07
1200 #define WLAN_CIPHER_SUITE_GCMP 0x000FAC08
1201 #define WLAN_CIPHER_SUITE_GCMP_256 0x000FAC09
1202 #define WLAN_CIPHER_SUITE_CCMP_256 0x000FAC0A
1203 #define WLAN_CIPHER_SUITE_BIP_GMAC_128 0x000FAC0B
1204 #define WLAN_CIPHER_SUITE_BIP_GMAC_256 0x000FAC0C
1205 #define WLAN_CIPHER_SUITE_BIP_CMAC_256 0x000FAC0D
1207 #define WLAN_CIPHER_SUITE_SMS4 0x00147201
1209 #define WLAN_CIPHER_SUITE_CKIP 0x00409600
1210 #define WLAN_CIPHER_SUITE_CKIP_CMIC 0x00409601
1211 #define WLAN_CIPHER_SUITE_CMIC 0x00409602
1212 #define WLAN_CIPHER_SUITE_KRK 0x004096FF
1215 #define WLAN_AKM_SUITE_8021X 0x000FAC01
1216 #define WLAN_AKM_SUITE_PSK 0x000FAC02
1217 #define WLAN_AKM_SUITE_FT_8021X 0x000FAC03
1218 #define WLAN_AKM_SUITE_FT_PSK 0x000FAC04
1219 #define WLAN_AKM_SUITE_8021X_SHA256 0x000FAC05
1220 #define WLAN_AKM_SUITE_PSK_SHA256 0x000FAC06
1221 #define WLAN_AKM_SUITE_8021X_SUITE_B 0x000FAC11
1222 #define WLAN_AKM_SUITE_8021X_SUITE_B_192 0x000FAC12
1223 #define WLAN_AKM_SUITE_CCKM 0x00409600
1224 #define WLAN_AKM_SUITE_OSEN 0x506f9a01
1230 WNM_EVENT_REPORT = 1,
1231 WNM_DIAGNOSTIC_REQ = 2,
1232 WNM_DIAGNOSTIC_REPORT = 3,
1233 WNM_LOCATION_CFG_REQ = 4,
1234 WNM_LOCATION_CFG_RESP = 5,
1235 WNM_BSS_TRANS_MGMT_QUERY = 6,
1236 WNM_BSS_TRANS_MGMT_REQ = 7,
1237 WNM_BSS_TRANS_MGMT_RESP = 8,
1240 WNM_COLLOCATED_INTERFERENCE_REQ = 11,
1241 WNM_COLLOCATED_INTERFERENCE_REPORT = 12,
1244 WNM_TFS_NOTIFY = 15,
1245 WNM_SLEEP_MODE_REQ = 16,
1246 WNM_SLEEP_MODE_RESP = 17,
1247 WNM_TIM_BROADCAST_REQ = 18,
1248 WNM_TIM_BROADCAST_RESP = 19,
1249 WNM_QOS_TRAFFIC_CAPAB_UPDATE = 20,
1250 WNM_CHANNEL_USAGE_REQ = 21,
1251 WNM_CHANNEL_USAGE_RESP = 22,
1254 WNM_TIMING_MEASUREMENT_REQ = 25,
1255 WNM_NOTIFICATION_REQ = 26,
1256 WNM_NOTIFICATION_RESP = 27
1260 #define WNM_BSS_TM_REQ_PREF_CAND_LIST_INCLUDED BIT(0)
1261 #define WNM_BSS_TM_REQ_ABRIDGED BIT(1)
1262 #define WNM_BSS_TM_REQ_DISASSOC_IMMINENT BIT(2)
1263 #define WNM_BSS_TM_REQ_BSS_TERMINATION_INCLUDED BIT(3)
1264 #define WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT BIT(4)
1267 enum bss_trans_mgmt_status_code {
1268 WNM_BSS_TM_ACCEPT = 0,
1269 WNM_BSS_TM_REJECT_UNSPECIFIED = 1,
1270 WNM_BSS_TM_REJECT_INSUFFICIENT_BEACON = 2,
1271 WNM_BSS_TM_REJECT_INSUFFICIENT_CAPABITY = 3,
1272 WNM_BSS_TM_REJECT_UNDESIRED = 4,
1273 WNM_BSS_TM_REJECT_DELAY_REQUEST = 5,
1274 WNM_BSS_TM_REJECT_STA_CANDIDATE_LIST_PROVIDED = 6,
1275 WNM_BSS_TM_REJECT_NO_SUITABLE_CANDIDATES = 7,
1276 WNM_BSS_TM_REJECT_LEAVING_ESS = 8
1279 #define WNM_NEIGHBOR_TSF 1
1280 #define WNM_NEIGHBOR_CONDENSED_COUNTRY_STRING 2
1281 #define WNM_NEIGHBOR_BSS_TRANSITION_CANDIDATE 3
1282 #define WNM_NEIGHBOR_BSS_TERMINATION_DURATION 4
1283 #define WNM_NEIGHBOR_BEARING 5
1284 #define WNM_NEIGHBOR_MEASUREMENT_PILOT 66
1285 #define WNM_NEIGHBOR_RRM_ENABLED_CAPABILITIES 70
1286 #define WNM_NEIGHBOR_MULTIPLE_BSSID 71
1294 QOS_QOS_MAP_CONFIG = 4,
1298 #define WLAN_20_40_BSS_COEX_INFO_REQ BIT(0)
1299 #define WLAN_20_40_BSS_COEX_40MHZ_INTOL BIT(1)
1300 #define WLAN_20_40_BSS_COEX_20MHZ_WIDTH_REQ BIT(2)
1301 #define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_REQ BIT(3)
1302 #define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_GRNT BIT(4)
1326 #define WNM_SLEEP_MODE_ENTER 0
1327 #define WNM_SLEEP_MODE_EXIT 1
1329 enum wnm_sleep_mode_response_status {
1330 WNM_STATUS_SLEEP_ACCEPT = 0,
1331 WNM_STATUS_SLEEP_EXIT_ACCEPT_GTK_UPDATE = 1,
1332 WNM_STATUS_DENIED_ACTION = 2,
1333 WNM_STATUS_DENIED_TMP = 3,
1334 WNM_STATUS_DENIED_KEY = 4,
1335 WNM_STATUS_DENIED_OTHER_WNM_SERVICE = 5
1339 enum wnm_sleep_mode_subelement_id {
1340 WNM_SLEEP_SUBELEM_GTK = 0,
1341 WNM_SLEEP_SUBELEM_IGTK = 1
1345 #define CHAN_SWITCH_MODE_ALLOW_TX 0
1346 #define CHAN_SWITCH_MODE_BLOCK_TX 1
1374 #define SSID_MAX_LEN 32
1387 u8 mb_connection_capability;
1388 u8 fst_session_tmout;
1397 enum mb_ctrl_sta_role {
1399 MB_STA_ROLE_TDLS_STA = 1,
1400 MB_STA_ROLE_IBSS_STA = 2,
1401 MB_STA_ROLE_PCP = 3,
1402 MB_STA_ROLE_NON_PCP_NON_AP = 4
1405 #define MB_CTRL_ROLE_MASK (BIT(0) | BIT(1) | BIT(2))
1406 #define MB_CTRL_ROLE(ctrl) ((u8) ((ctrl) & MB_CTRL_ROLE_MASK))
1407 #define MB_CTRL_STA_MAC_PRESENT ((u8) (BIT(3)))
1408 #define MB_CTRL_PAIRWISE_CIPHER_SUITE_PRESENT ((u8) (BIT(4)))
1411 MB_BAND_ID_WIFI_2_4GHZ = 2,
1412 MB_BAND_ID_WIFI_5GHZ = 4,
1413 MB_BAND_ID_WIFI_60GHZ = 5,
1416 #define MB_CONNECTION_CAPABILITY_AP ((u8) (BIT(0)))
1417 #define MB_CONNECTION_CAPABILITY_PCP ((u8) (BIT(1)))
1418 #define MB_CONNECTION_CAPABILITY_DLS ((u8) (BIT(2)))
1419 #define MB_CONNECTION_CAPABILITY_TDLS ((u8) (BIT(3)))
1420 #define MB_CONNECTION_CAPABILITY_IBSS ((u8) (BIT(4)))
1424 FST_ACTION_SETUP_REQUEST = 0,
1425 FST_ACTION_SETUP_RESPONSE = 1,
1426 FST_ACTION_TEAR_DOWN = 2,
1427 FST_ACTION_ACK_REQUEST = 3,
1428 FST_ACTION_ACK_RESPONSE = 4,
1429 FST_ACTION_ON_CHANNEL_TUNNEL = 5,
Definition: ieee802_11_defs.h:1356
Definition: ieee802_11_defs.h:943
Definition: ieee802_11_defs.h:685
Definition: ieee802_11_defs.h:1348
Definition: ieee802_11_defs.h:933
Definition: ieee802_11_defs.h:634
Definition: ieee802_11_defs.h:668
Definition: ieee802_11_defs.h:1310
Definition: ieee802_11_defs.h:445
Definition: ieee802_11_defs.h:647
Definition: ieee802_11_defs.h:657
Definition: ieee802_11_defs.h:1364
Definition: ieee802_11_defs.h:464
Definition: ieee802_11_defs.h:1080
Definition: ieee802_11_defs.h:957
Definition: ieee802_11_defs.h:1304
wpa_supplicant/hostapd / common helper functions, etc.
Definition: ieee802_11_defs.h:1377
Definition: ieee802_11_defs.h:678
Definition: ieee802_11_defs.h:1318