From: Ben Greear <gree...@candelatech.com>

It is 32-bit instead of 16-bit.  This fixes invalid parsing of the
bandwidth, probably among other things.

Signed-off-by: Ben Greear <gree...@candelatech.com>
---
 epan/dissectors/packet-ieee80211-radiotap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/epan/dissectors/packet-ieee80211-radiotap.c 
b/epan/dissectors/packet-ieee80211-radiotap.c
index 34bd377a3f..28af26b745 100644
--- a/epan/dissectors/packet-ieee80211-radiotap.c
+++ b/epan/dissectors/packet-ieee80211-radiotap.c
@@ -2053,7 +2053,7 @@ dissect_radiotap_u_sig(tvbuff_t *tvb, packet_info *pinfo 
_U_, proto_tree *tree,
        uint32_t mask;
        bool bw_known = false;
        struct ieee_802_11be *info_11be = &phdr->phy_info.info_11be;
-       uint32_t usig_common = tvb_get_letohs(tvb, offset);
+       uint32_t usig_common = tvb_get_letohl(tvb, offset);
 
        phdr->phy = PHDR_802_11_PHY_11BE;
 
-- 
2.42.0

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to