From 75a522e67843334a3c2c261ebb4d185c37d749bd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 24 Feb 2016 15:21:40 -0800 Subject: Add 1 byte and 16 byte as separate values. The 1 is for the byte written with vht_ndp_flag; the 16 is for the PLCP header. Separate them out; no change to the actual code (as any compiler worth its salt would do constant folding). Change-Id: I5e081c67e605203153270ed9a3f9e30b9e9b968c Reviewed-on: https://code.wireshark.org/review/14125 Reviewed-by: Guy Harris --- wiretap/vwr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiretap') diff --git a/wiretap/vwr.c b/wiretap/vwr.c index 2a2107d9c0..c65b25ea93 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -1465,8 +1465,8 @@ static gboolean vwr_read_s2_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr, * * We include the length of the metadata headers in the packet lengths. */ - phdr->len = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 17 + actual_octets; - phdr->caplen = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 17 + actual_octets; + phdr->len = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 1 + 16 + actual_octets; + phdr->caplen = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN + 1 + 16 + actual_octets; phdr->ts.secs = (time_t)s_sec; phdr->ts.nsecs = (int)(s_usec * 1000); -- cgit v1.2.3