Wireshark-dev: [Wireshark-dev] [PATCH] Fix 80211be u-sig decode.

Date: Wed, 17 Jul 2024 17:07:50 -0700
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>

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

Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx>
---
 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