From 855662f8dcacc0eec3ce4e785497b28f1a96f067 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 27 Apr 2021 12:32:48 -0700 Subject: [PATCH] ieee80211: Fix the handling of the ISTA Availability bit map. Forgot to multiply by 8. So we get garbage displayed once the number of bits is more than 15. Change-Id: I069b9a9f47e3fa15ad9ae404a70555561fb496ba --- epan/dissectors/packet-ieee80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index ef919fdb3f..2ebcb8eaac 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -23379,7 +23379,7 @@ dissect_ista_availability_window(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tr bits = tvb_get_guint8(tvb, offset); for (j = 0; j < 8; j++) { - avail_string[(i - 1) + j] = (bits & 0x01) ? '1' : '0'; + avail_string[(i - 1) * 8 + j] = (bits & 0x01) ? '1' : '0'; bits = bits >> 1; }