diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-10 01:42:51 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-10 09:45:26 +0000 |
commit | dcd3e26a818f2a06fbac42dab0af876db47e151e (patch) | |
tree | ea2b12d4d85824a5f44bae6a5ac310ac4e518afd /epan/dissectors/packet-ieee80211-netmon.c | |
parent | 7b48fb91a07489a9f88925617baa0b01f6bf7cd3 (diff) |
several: make the phy reflect the packet modulation.
Use the data rate and channel to determine 11b vs. 11g vs. 11a for:
* Aruba Networks encapsulated remote mirroring;
* Prism headers;
* *Peek remote protocol;
* Network Instruments^W^WViavi Observer;
* *Peek classic format;
* Shomiti Surveyor.
Note why we *don't* need to do that for NetMon captures.
Diffstat (limited to 'epan/dissectors/packet-ieee80211-netmon.c')
-rw-r--r-- | epan/dissectors/packet-ieee80211-netmon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ieee80211-netmon.c b/epan/dissectors/packet-ieee80211-netmon.c index da0708ef8b..9d2d5ac4ba 100644 --- a/epan/dissectors/packet-ieee80211-netmon.c +++ b/epan/dissectors/packet-ieee80211-netmon.c @@ -175,6 +175,11 @@ dissect_netmon_802_11(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void phy_type = tvb_get_letohl(tvb, offset); memset(&phdr->phy_info, 0, sizeof(phdr->phy_info)); + /* + * Unlike the channel flags in radiotap, this appears + * to correctly indicate the modulation for this packet + * (no cases seen where this doesn't match the data rate). + */ switch (phy_type) { case PHY_TYPE_UNKNOWN: |