summaryrefslogtreecommitdiffstats
path: root/tools/generate-nl80211-fields.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtools/generate-nl80211-fields.py28
1 files changed, 24 insertions, 4 deletions
diff --git a/tools/generate-nl80211-fields.py b/tools/generate-nl80211-fields.py
index dfa8faaf..ddd42575 100755
--- a/tools/generate-nl80211-fields.py
+++ b/tools/generate-nl80211-fields.py
@@ -34,7 +34,10 @@ EXPORT_ENUMS = {
'nl80211_sta_flags': (None, None, None),
'nl80211_sta_p2p_ps_status': ('Attribute Value', 'FT_UINT8', None),
'nl80211_he_gi': (None, None, None),
+ 'nl80211_he_ltf': (None, None, None),
'nl80211_he_ru_alloc': (None, None, None),
+ 'nl80211_eht_gi': (None, None, None),
+ 'nl80211_eht_ru_alloc': (None, None, None),
'nl80211_rate_info': (None, None, None),
'nl80211_sta_bss_param': (None, None, None),
'nl80211_sta_info': (None, None, None),
@@ -65,6 +68,8 @@ EXPORT_ENUMS = {
'nl80211_key_mode': (None, None, None),
'nl80211_chan_width': ('Attribute Value', 'FT_UINT32', None),
'nl80211_bss_scan_width': ('Attribute Value', 'FT_UINT32', None),
+ 'nl80211_bss_use_for': (None, None, None),
+ 'nl80211_bss_cannot_use_reasons': (None, None, None),
'nl80211_bss': (None, None, None),
'nl80211_bss_status': ('Attribute Value', 'FT_UINT32', None),
'nl80211_auth_type': ('Attribute Value', 'FT_UINT32', None),
@@ -80,6 +85,9 @@ EXPORT_ENUMS = {
'nl80211_attr_cqm': (None, None, None),
'nl80211_cqm_rssi_threshold_event': (None, None, None),
'nl80211_tx_power_setting': ('Attribute Value', 'FT_UINT32', None),
+ 'nl80211_tid_config': (None, None, None),
+ 'nl80211_tx_rate_setting': (None, None, None),
+ 'nl80211_tid_config_attr': (None, None, None),
'nl80211_packet_pattern_attr': (None, None, None),
'nl80211_wowlan_triggers': (None, None, None),
'nl80211_wowlan_tcp_attrs': (None, None, None),
@@ -88,13 +96,13 @@ EXPORT_ENUMS = {
'nl80211_iface_limit_attrs': (None, None, None),
'nl80211_if_combination_attrs': (None, None, None),
'nl80211_plink_state': ('Attribute Value', 'FT_UINT8', None),
- 'plink_actions': ('Attribute Value', 'FT_UINT8', None),
+ 'nl80211_plink_action': ('Attribute Value', 'FT_UINT8', None),
'nl80211_rekey_data': (None, None, None),
'nl80211_hidden_ssid': (None, None, None),
'nl80211_sta_wme_attr': (None, None, None),
'nl80211_pmksa_candidate_attr': (None, None, None),
'nl80211_tdls_operation': ('Attribute Value', 'FT_UINT8', None),
- #Reserved for future use 'nl80211_ap_sme_features': (None, None, None),
+ 'nl80211_ap_sme_features': (None, None, None),
'nl80211_feature_flags': (None, None, None),
'nl80211_ext_feature_index': (None, None, None),
'nl80211_probe_resp_offload_support_attr': (None, None, None),
@@ -132,6 +140,18 @@ EXPORT_ENUMS = {
'nl80211_peer_measurement_ftm_failure_reasons': (None, None, None),
'nl80211_peer_measurement_ftm_resp': (None, None, None),
'nl80211_obss_pd_attributes': (None, None, None),
+ 'nl80211_bss_color_attributes': (None, None, None),
+ 'nl80211_iftype_akm_attributes': (None, None, None),
+ 'nl80211_fils_discovery_attributes': (None, None, None),
+ 'nl80211_unsol_bcast_probe_resp_attributes': (None, None, None),
+ 'nl80211_sae_pwe_mechanism': (None, None, None),
+ 'nl80211_sar_type': (None, None, None),
+ 'nl80211_sar_attrs': (None, None, None),
+ 'nl80211_sar_specs_attrs': (None, None, None),
+ 'nl80211_mbssid_config_attributes': (None, None, None),
+ 'nl80211_ap_settings_flags': (None, None, None),
+ 'nl80211_wiphy_radio_attrs': (None, None, None),
+ 'nl80211_wiphy_radio_freq_range': (None, None, None),
}
# File to be patched
SOURCE_FILE = "epan/dissectors/packet-netlink-nl80211.c"
@@ -169,7 +189,7 @@ def remove_prefix(prefix, text):
return text
def make_hf_defs(name, indent):
- code = 'static gint hf_%s = -1;' % name
+ code = 'static int hf_%s;' % name
return code
def make_hf(name, indent):
@@ -202,7 +222,7 @@ def make_hf(name, indent):
return code
def make_ett_defs(name, indent):
- code = 'static gint ett_%s = -1;' % name
+ code = 'static int ett_%s;' % name
return code
def make_ett(name, indent):