aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vwr.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-03-15 02:45:34 -0700
committerGuy Harris <guy@alum.mit.edu>2014-03-15 09:46:03 +0000
commit41c8cd62bf9df07e981de4e46f59a5452baae472 (patch)
tree672b542669c0825e66ea3248308b52a759f914c4 /wiretap/vwr.c
parent0d6cdb5f26973818ff891d20a0c72587f2427bf0 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/vwr.c')
-rw-r--r--wiretap/vwr.c3
1 files changed, 1 insertions, 2 deletions
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;