From 41c8cd62bf9df07e981de4e46f59a5452baae472 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 15 Mar 2014 02:45:34 -0700 Subject: Fix setting of STATS_LEN - it's what's in the file, not what we *generate*. vwr->STATS_LEN is the length of the statistics trailer at the end of the packet, and it's the same for S2 and S3 versions of the WLAN card. It should *not* be set to the length of the metadata headers that we *generate and put in front of the packet data that we hand to our callers*. Get rid of a debugging message while we're at it. Change-Id: I465b5ba4dedb88f1f401d34439b44b16a4bb01cc Reviewed-on: https://code.wireshark.org/review/671 Reviewed-by: Guy Harris --- wiretap/vwr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wiretap/vwr.c') diff --git a/wiretap/vwr.c b/wiretap/vwr.c index a0fce69d93..ff077bb2f5 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -1806,8 +1806,7 @@ static void setup_defaults(vwr_t *vwr, guint16 fpga) break; case S3_W_FPGA: -fprintf(stderr, "You must be kidding\n"); - vwr->STATS_LEN = STATS_COMMON_FIELDS_LEN + EXT_WLAN_FIELDS_LEN; + vwr->STATS_LEN = vVW510021_W_STATS_LEN; vwr->PLCP_LENGTH_OFF = 16; vwr->HEADER_IS_RX = vVW510021_W_HEADER_IS_RX; vwr->HEADER_IS_TX = vVW510021_W_HEADER_IS_TX; -- cgit v1.2.3