16#include "ws_symbol_export.h"
23 bool association_has_mobility_domain_element;
24 bool has_ft_akm_suite;
25 bool has_non_ft_akm_suite;
26 bool has_fils_session;
27 uint32_t last_akm_suite;
35 uint16_t discovered_key_mic_len;
36 bool last_akm_suite_set;
37 uint32_t last_akm_suite;
42 bool last_akm_suite_set;
43 uint32_t last_akm_suite;
57 tvbuff_t *tvb,
int offset,
int ftype,
58 const uint8_t *valid_element_ids,
59 unsigned valid_element_ids_count,
63 tvbuff_t *tvb,
int offset,
int ftype,
64 const uint8_t *element_ids,
65 unsigned element_ids_count,
66 bool elements_ids_assume_invalid,
67 const uint8_t *ext_element_ids,
68 unsigned ext_element_ids_count,
69 bool ext_element_ids_assume_invalid,
74#define MAX_SSID_LEN 32
75#define MAX_PROTECT_LEN 10
81#define MAX_MCS_INDEX 76
83WS_DLL_PUBLIC
const uint16_t ieee80211_ht_Dbps[MAX_MCS_INDEX+1];
84float ieee80211_htrate(
int mcs_index,
bool bandwidth,
bool short_gi);
89bool is_broadcast_bssid(
const address *bssid);
98#define FCF_PROT_VERSION(x) ((x) & 0x3)
108#define FCF_FRAME_TYPE(x) (((x) & 0xC) >> 2)
109#define FCF_PV1_TYPE(x) (((x) >> 2) & 0x7)
114#define FCF_FRAME_SUBTYPE(x) (((x) & 0xF0) >> 4)
115#define FCF_PV1_SUBTYPE(x) (((x) >> 5) & 0x7)
120#define FCF_FRAME_EXTENSION(x) (((x) & 0xF00) >> 8)
125#define IS_FRAME_EXTENSION(x) ((FCF_FRAME_TYPE(x) == 0x1 && FCF_FRAME_SUBTYPE(x) == 0x6) ? 1 : 0)
132#define COMPOSE_FRAME_TYPE(x) ((FCF_FRAME_TYPE(x) == 0x1 && FCF_FRAME_SUBTYPE(x) == 0x6) ? (((x & 0x0C)<< 6) + ((x) & 0xF0) + FCF_FRAME_EXTENSION(x)) : (((x & 0x0C)<< 2)+FCF_FRAME_SUBTYPE(x)))
139#define DATA_FRAME_IS_CF_ACK(x) ((x) & 0x01)
140#define DATA_FRAME_IS_CF_POLL(x) ((x) & 0x02)
141#define DATA_FRAME_IS_NULL(x) ((x) & 0x04)
142#define DATA_FRAME_IS_QOS(x) ((x) & 0x08)
148#define FCF_FLAGS(x) ((FCF_FRAME_TYPE(x) == 0x1 && FCF_FRAME_SUBTYPE(x) == 0x6) ? (((x) & 0xF000) >> 12) : (((x) & 0xFF00) >> 8))
153#define FLAG_TO_DS 0x01
154#define FLAG_FROM_DS 0x02
155#define FLAG_MORE_FRAGMENTS 0x04
156#define FLAG_RETRY 0x08
157#define FLAG_POWER_MGT 0x10
158#define FLAG_MORE_DATA 0x20
159#define FLAG_PROTECTED 0x40
160#define FLAG_ORDER 0x80
169#define IS_TO_DS(x) ((x) & FLAG_TO_DS)
170#define IS_FROM_DS(x) ((x) & FLAG_FROM_DS)
171#define HAVE_FRAGMENTS(x) ((x) & FLAG_MORE_FRAGMENTS)
172#define IS_RETRY(x) ((x) & FLAG_RETRY)
173#define POWER_MGT_STATUS(x) ((x) & FLAG_POWER_MGT)
174#define HAS_MORE_DATA(x) ((x) & FLAG_MORE_DATA)
175#define IS_PROTECTED(x) ((x) & FLAG_PROTECTED)
176#define IS_STRICTLY_ORDERED(x) ((x) & FLAG_ORDER)
177#define HAS_HT_CONTROL(x) ((x) & FLAG_ORDER)
182#define FLAGS_DS_STATUS(x) ((x) & (FLAG_FROM_DS|FLAG_TO_DS))
188#define FCF_ADDR_SELECTOR(x) ((x) & ((FLAG_TO_DS|FLAG_FROM_DS) << 8))
190#define DATA_ADDR_T1 0
191#define DATA_ADDR_T2 (FLAG_FROM_DS << 8)
192#define DATA_ADDR_T3 (FLAG_TO_DS << 8)
193#define DATA_ADDR_T4 ((FLAG_TO_DS|FLAG_FROM_DS) << 8)
198#define MGT_ASSOC_REQ 0x00
199#define MGT_ASSOC_RESP 0x01
200#define MGT_REASSOC_REQ 0x02
201#define MGT_REASSOC_RESP 0x03
202#define MGT_PROBE_REQ 0x04
203#define MGT_PROBE_RESP 0x05
204#define MGT_MEASUREMENT_PILOT 0x06
205#define MGT_BEACON 0x08
207#define MGT_DISASS 0x0A
208#define MGT_AUTHENTICATION 0x0B
209#define MGT_DEAUTHENTICATION 0x0C
210#define MGT_ACTION 0x0D
211#define MGT_ACTION_NO_ACK 0x0E
212#define MGT_ARUBA_WLAN 0x0F
218#define CTRL_TRIGGER 0x12
219#define CTRL_TACK 0x13
220#define CTRL_BEAMFORM_RPT_POLL 0x14
221#define CTRL_VHT_NDP_ANNC 0x15
222#define CTRL_POLL 0x162
223#define CTRL_SPR 0x163
224#define CTRL_GRANT 0x164
225#define CTRL_DMG_CTS 0x165
226#define CTRL_DMG_DTS 0x166
227#define CTRL_GRANT_ACK 0x167
228#define CTRL_SSW 0x168
229#define CTRL_SSW_FEEDBACK 0x169
230#define CTRL_SSW_ACK 0x16A
231#define CTRL_CONTROL_WRAPPER 0x17
232#define CTRL_BLOCK_ACK_REQ 0x18
233#define CTRL_BLOCK_ACK 0x19
234#define CTRL_PS_POLL 0x1A
237#define CTRL_ACKNOWLEDGEMENT 0x1D
238#define CTRL_CFP_END 0x1E
239#define CTRL_CFP_ENDACK 0x1F
245#define DATA_CF_ACK 0x21
246#define DATA_CF_POLL 0x22
247#define DATA_CF_ACK_POLL 0x23
248#define DATA_NULL_FUNCTION 0x24
249#define DATA_CF_ACK_NOD 0x25
250#define DATA_CF_POLL_NOD 0x26
251#define DATA_CF_ACK_POLL_NOD 0x27
253#define DATA_QOS_DATA 0x28
254#define DATA_QOS_DATA_CF_ACK 0x29
255#define DATA_QOS_DATA_CF_POLL 0x2A
256#define DATA_QOS_DATA_CF_ACK_POLL 0x2B
257#define DATA_QOS_NULL 0x2C
258#define DATA_QOS_CF_POLL_NOD 0x2E
259#define DATA_QOS_CF_ACK_POLL_NOD 0x2F
264#define EXTENSION_DMG_BEACON 0x30
265#define EXTENSION_S1G_BEACON 0x31
270#define PV1_QOS_DATA_1MAC 0x00
271#define PV1_MANAGEMENT 0x01
272#define PV1_CONTROL 0x02
273#define PV1_QOS_DATA_2MAC 0x03
278#define PV1_CONTROL_STACK 0x00
279#define PV1_CONTROL_BAT 0x01
281#define PV1_MANAGEMENT_ACTION 0x00
282#define PV1_MANAGEMENT_ACTION_NO_ACK 0x01
283#define PV1_MANAGEMENT_PROBE_RESPONSE 0x02
284#define PV1_MANAGEMENT_RESOURCE_ALLOC 0x03
289#define SID_AID_MASK 0x1FFF
290#define SID_A3_PRESENT 0x2000
291#define SID_A4_PRESENT 0x4000
292#define SID_A_MSDU 0x8000
294#define TBTT_INFO(x) (((x) & 0x3) >> 0)
295#define TBTT_INFO_COUNT(x) (((x) & (0xf<<4)) >> 4)
296#define TBTT_INFO_LENGTH(x) (((x) & (0xff<<8)) >> 8)
301 unsigned char ssid[MAX_SSID_LEN];
302 char protection[MAX_PROTECT_LEN];
314#define WLANCAP_MAGIC_COOKIE_BASE 0x80211000
315#define WLANCAP_MAGIC_COOKIE_V1 0x80211001
316#define WLANCAP_MAGIC_COOKIE_V2 0x80211002
324#define ADV_PROTO_ID_ANQP 0
325#define ANV_PROTO_ID_MIH_IS 1
326#define ADV_PROTO_ID_MIH_CESCD 2
327#define ADV_PROTO_ID_EAS 3
328#define ADV_PROTO_ID_RLQP 4
329#define ADV_PROTO_ID_VS 221
337#define WFA_SUBTYPE_SUBSCRIPTION_REMEDIATION 0
338#define WFA_SUBTYPE_DEAUTHENTICATION_IMMINENT 1
339#define WFA_SUBTYPE_P2P 9
340#define WFA_SUBTYPE_WIFI_DISPLAY 10
341#define WFA_SUBTYPE_HS20_INDICATION 16
342#define WFA_SUBTYPE_NAN_IE 19
343#define WFA_SUBTYPE_OSEN 20
344#define WFA_SUBTYPE_MBO_OCE 22
345#define WFA_SUBTYPE_WIFI_60G 23
346#define WFA_SUBTYPE_NAN_ACTION 24
347#define WFA_SUBTYPE_DPP 26
348#define WFA_SUBTYPE_IEEE1905_MULTI_AP 27
349#define WFA_SUBTYPE_OWE_TRANSITION_MODE 28
350#define WFA_SUBTYPE_TRANSITION_DISABLE_KDE 32
351#define WFA_SUBTYPE_QOS_MGMT 34
352#define WFA_SUBTYPE_RSN_OVERRIDE 41
353#define WFA_SUBTYPE_RSN_OVERRIDE_2 42
354#define WFA_SUBTYPE_RSNX_OVERRIDE 43
355#define WFA_SUBTYPE_RSN_SELECTION 44
356#define WFA_SUBTYPE_RSN_OVERRIDE_LINK_KDE 45
359#define WFA_SUBTYPE_ACTION_QOS_MGMT 0x1A
362#define WFA_ANQP_SUBTYPE_HS20 17
363#define WFA_ANQP_SUBTYPE_MBO 18
366#define WFA_WNM_SUBTYPE_NON_PREF_CHAN_REPORT 2
367#define WFA_WNM_SUBTYPE_CELL_DATA_CAPABILITIES 3
371#define TAG_SUPP_RATES 1
372#define TAG_FH_PARAMETER 2
373#define TAG_DS_PARAMETER 3
374#define TAG_CF_PARAMETER 4
376#define TAG_IBSS_PARAMETER 6
377#define TAG_COUNTRY_INFO 7
378#define TAG_FH_HOPPING_PARAMETER 8
379#define TAG_FH_HOPPING_TABLE 9
380#define TAG_REQUEST 10
381#define TAG_QBSS_LOAD 11
382#define TAG_EDCA_PARAM_SET 12
385#define TAG_SCHEDULE 15
386#define TAG_CHALLENGE_TEXT 16
388#define TAG_POWER_CONSTRAINT 32
389#define TAG_POWER_CAPABILITY 33
390#define TAG_TPC_REQUEST 34
391#define TAG_TPC_REPORT 35
392#define TAG_SUPPORTED_CHANNELS 36
393#define TAG_CHANNEL_SWITCH_ANN 37
394#define TAG_MEASURE_REQ 38
395#define TAG_MEASURE_REP 39
397#define TAG_IBSS_DFS 41
398#define TAG_ERP_INFO 42
399#define TAG_TS_DELAY 43
400#define TAG_TCLAS_PROCESS 44
401#define TAG_HT_CAPABILITY 45
402#define TAG_QOS_CAPABILITY 46
403#define TAG_ERP_INFO_OLD 47
406#define TAG_EXT_SUPP_RATES 50
407#define TAG_AP_CHANNEL_REPORT 51
408#define TAG_NEIGHBOR_REPORT 52
410#define TAG_MOBILITY_DOMAIN 54
411#define TAG_FAST_BSS_TRANSITION 55
412#define TAG_TIMEOUT_INTERVAL 56
413#define TAG_RIC_DATA 57
414#define TAG_DSE_REG_LOCATION 58
415#define TAG_SUPPORTED_OPERATING_CLASSES 59
416#define TAG_EXTENDED_CHANNEL_SWITCH_ANNOUNCEMENT 60
417#define TAG_HT_INFO 61
418#define TAG_SECONDARY_CHANNEL_OFFSET 62
419#define TAG_BSS_AVG_ACCESS_DELAY 63
420#define TAG_ANTENNA 64
422#define TAG_MEASURE_PILOT_TRANS 66
423#define TAG_BSS_AVB_ADM_CAPACITY 67
424#define TAG_IE_68_CONFLICT 68
425#define TAG_WAPI_PARAM_SET 68
426#define TAG_BSS_AC_ACCESS_DELAY 68
427#define TAG_TIME_ADV 69
428#define TAG_RM_ENABLED_CAPABILITY 70
429#define TAG_MULTIPLE_BSSID 71
430#define TAG_20_40_BSS_CO_EX 72
431#define TAG_20_40_BSS_INTOL_CH_REP 73
432#define TAG_OVERLAP_BSS_SCAN_PAR 74
433#define TAG_RIC_DESCRIPTOR 75
435#define TAG_EVENT_REQUEST 78
436#define TAG_EVENT_REPORT 79
437#define TAG_DIAGNOSTIC_REQUEST 80
438#define TAG_DIAGNOSTIC_REPORT 81
439#define TAG_LOCATION_PARAMETERS 82
440#define TAG_NO_BSSID_CAPABILITY 83
441#define TAG_SSID_LIST 84
442#define TAG_MULTIPLE_BSSID_INDEX 85
443#define TAG_FMS_DESCRIPTOR 86
444#define TAG_FMS_REQUEST 87
445#define TAG_FMS_RESPONSE 88
446#define TAG_QOS_TRAFFIC_CAPABILITY 89
447#define TAG_BSS_MAX_IDLE_PERIOD 90
448#define TAG_TFS_REQUEST 91
449#define TAG_TFS_RESPONSE 92
450#define TAG_WNM_SLEEP_MODE 93
451#define TAG_TIM_BROADCAST_REQUEST 94
452#define TAG_TIM_BROADCAST_RESPONSE 95
453#define TAG_COLLOCATED_INTER_REPORT 96
454#define TAG_CHANNEL_USAGE 97
455#define TAG_TIME_ZONE 98
456#define TAG_DMS_REQUEST 99
457#define TAG_DMS_RESPONSE 100
458#define TAG_LINK_IDENTIFIER 101
459#define TAG_WAKEUP_SCHEDULE 102
460#define TAG_CHANNEL_SWITCH_TIMING 104
461#define TAG_PTI_CONTROL 105
462#define TAG_PU_BUFFER_STATUS 106
463#define TAG_INTERWORKING 107
464#define TAG_ADVERTISEMENT_PROTOCOL 108
465#define TAG_EXPIDITED_BANDWIDTH_REQ 109
466#define TAG_QOS_MAP_SET 110
467#define TAG_ROAMING_CONSORTIUM 111
468#define TAG_EMERGENCY_ALERT_ID 112
469#define TAG_MESH_CONFIGURATION 113
470#define TAG_MESH_ID 114
471#define TAG_MESH_LINK_METRIC_REPORT 115
472#define TAG_CONGESTION_NOTIFICATION 116
473#define TAG_MESH_PEERING_MGMT 117
474#define TAG_MESH_CHANNEL_SWITCH 118
475#define TAG_MESH_AWAKE_WINDOW 119
476#define TAG_BEACON_TIMING 120
477#define TAG_MCCAOP_SETUP_REQUEST 121
478#define TAG_MCCAOP_SETUP_REPLY 122
479#define TAG_MCCAOP_ADVERTISEMENT 123
480#define TAG_MCCAOP_TEARDOWN 124
483#define TAG_EXTENDED_CAPABILITIES 127
484#define TAG_AGERE_PROPRIETARY 128
485#define TAG_MESH_PREQ 130
486#define TAG_MESH_PREP 131
487#define TAG_MESH_PERR 132
488#define TAG_CISCO_CCX1_CKIP 133
489#define TAG_CISCO_CCX2 136
492#define TAG_AUTH_MESH_PEERING_EXCH 139
494#define TAG_DESTINATION_URI 141
495#define TAG_U_APSD_COEX 142
496#define TAG_WAKEUP_SCHEDULE_AD 143
497#define TAG_EXTENDED_SCHEDULE 144
498#define TAG_STA_AVAILABILITY 145
499#define TAG_DMG_TSPEC 146
500#define TAG_NEXT_DMG_ATI 147
501#define TAG_DMG_CAPABILITIES 148
502#define TAG_CISCO_CCX3 149
503#define TAG_CISCO_VENDOR_SPECIFIC 150
504#define TAG_DMG_OPERATION 151
505#define TAG_DMG_BSS_PARAMETER_CHANGE 152
506#define TAG_DMG_BEAM_REFINEMENT 153
507#define TAG_CHANNEL_MEASURMENT_FB 154
508#define TAG_AWAKE_WINDOW 157
509#define TAG_MULTI_BAND 158
510#define TAG_ADDBA_EXT 159
511#define TAG_NEXTPCP_LIST 160
512#define TAG_PCP_HANDOVER 161
513#define TAG_DMG_LINK_MARGIN 162
514#define TAG_SWITCHING_STREAM 163
515#define TAG_SESSION_TRANSMISSION 164
516#define TAG_DYN_TONE_PAIR_REP 165
517#define TAG_CLUSTER_REP 166
518#define TAG_RELAY_CAPABILITIES 167
519#define TAG_RELAY_TRANSFER_PARAM 168
520#define TAG_BEAMLINK_MAINTENANCE 169
521#define TAG_MULTIPLE_MAC_SUBLAYERS 170
523#define TAG_DMG_LINK_ADAPTION_ACK 172
524#define TAG_SYMBOL_PROPRIETARY 173
525#define TAG_MCCAOP_ADVERTISEMENT_OV 174
526#define TAG_QUIET_PERIOD_REQ 175
527#define TAG_QUIET_PERIOD_RES 177
528#define TAG_ECAPC_POLICY 182
529#define TAG_CLUSTER_TIME_OFFSET 183
530#define TAG_INTRA_ACCESS_CAT_PRIO 184
531#define TAG_SCS_DESCRIPTOR 185
532#define TAG_ANTENNA_SECTOR_ID 190
533#define TAG_VHT_CAPABILITY 191
534#define TAG_VHT_OPERATION 192
535#define TAG_EXT_BSS_LOAD 193
536#define TAG_WIDE_BW_CHANNEL_SWITCH 194
537#define TAG_TX_PWR_ENVELOPE 195
538#define TAG_CHANNEL_SWITCH_WRAPPER 196
539#define TAG_OPERATING_MODE_NOTIFICATION 199
540#define TAG_REDUCED_NEIGHBOR_REPORT 201
541#define TAG_FINE_TIME_MEASUREMENT_PARAM 206
542#define TAG_S1G_OPEN_LOOP_LINK_MARGIN_INDEX 207
544#define TAG_PAGE_SLICE 209
545#define TAG_AID_REQUEST 210
546#define TAG_AID_RESPONSE 211
547#define TAG_S1G_SECTOR_OPERATION 212
548#define TAG_S1G_BEACON_COMPATIBILITY 213
549#define TAG_SHORT_BEACON_INTERVAL 214
550#define TAG_CHANGE_SEQUENCE 215
552#define TAG_S1G_CAPABILITIES 217
553#define TAG_SUBCHANNEL_SELECTIVE_TRANSMISSION 220
554#define TAG_VENDOR_SPECIFIC_IE 221
555#define TAG_AUTHENTICATION_CONTROL 222
556#define TAG_TSF_TIMER_ACCURACY 223
557#define TAG_S1G_RELAY 224
558#define TAG_REACHABLE_ADDRESS 225
559#define TAG_S1G_RELAY_DISCOVERY 226
560#define TAG_AID_ANNOUNCEMENT 228
561#define TAG_PV1_PROBE_RESPONSE_OPTION 229
562#define TAG_EL_OPERATION 230
563#define TAG_SECTORIZED_GROUP_ID_LIST 231
564#define TAG_S1G_OPERATION 232
565#define TAG_HEADER_COMPRESSION 233
566#define TAG_SST_OPERATION 234
568#define TAG_S1G_RELAY_ACTIVATION 236
569#define TAG_CAG_NUMBER 237
570#define TAG_AP_CSN 239
571#define TAG_FILS_INDICATION 240
572#define TAG_DIFF_INITIAL_LINK_SETUP 241
573#define TAG_FRAGMENT 242
575#define TAG_ELEMENT_ID_EXTENSION 255
585 int offset, uint8_t code);
Definition packet_info.h:43
Definition value_string.h:169
Definition value_string.h:25
Definition packet-ieee80211.h:306
Definition packet-ieee80211.h:298
Definition packet-ieee80211.h:331
Definition packet-ieee80211.h:22
Definition packet-ieee80211.h:34
Definition packet-ieee80211.h:41
Definition packet-ieee80211.h:48
Definition tvbuff-int.h:35
Definition packet-ieee80211.h:319