diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-06-25 12:14:39 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-06-25 19:15:56 +0000 |
commit | f1bc598d87aeba56f2bd4a1151543664388bb8c7 (patch) | |
tree | 0ae46fdda5a2183986739bbed78f97c5bba59dbd /wiretap/network_instruments.c | |
parent | 8a89ebbf40b5931fc2a8afd6ed6f5bf166354687 (diff) |
Clean up 802.11 radio information handling.
Have a field that holds the PHY type but nothing else. Have
a union with structures holding PHY-type-specific information, as a
bunch of attributes are PHY-specific.
If we have a channel and band, but don't have the frequency, attempt to
calculate the frequency, and add that to the radio information if we
succeed. If we have the frequency, but don't have the channel, attempt
to calculate the channel, and add that to the radio information if we
succeed.
Handle FHSS information, 11a "half/quarter-clocked" and turbo
information, 11g normal vs. Super G, additional 11n and 11ac
information, and the "short preamble" flag for 11b and 11g.
Add a PHY type for 11 legacy DSSS and detect it if possible.
Clean up the AVS dissector - make all fields wlancap. fields (if you
want generic fields, use the wlan_radio. fields).
Set more fields when writing out Commview Wi-Fi files.
Change-Id: I691ac59f5e9e1a23779b56a65124049914b72e69
Reviewed-on: https://code.wireshark.org/review/9146
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/network_instruments.c')
-rw-r--r-- | wiretap/network_instruments.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/network_instruments.c b/wiretap/network_instruments.c index a4e3b67bd7..93e9005728 100644 --- a/wiretap/network_instruments.c +++ b/wiretap/network_instruments.c @@ -377,6 +377,7 @@ read_packet_header(wtap *wth, FILE_T fh, union wtap_pseudo_header *pseudo_header pseudo_header->ieee_802_11.fcs_len = 0; pseudo_header->ieee_802_11.decrypted = FALSE; pseudo_header->ieee_802_11.datapad = FALSE; + pseudo_header->ieee_802_11.phy = PHDR_802_11_PHY_UNKNOWN; pseudo_header->ieee_802_11.presence_flags = 0; /* Updated below */ break; |