diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-13 21:58:02 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-14 04:58:37 +0000 |
commit | 9e905abe54bdc5a9409cd4b6f340909ae1bb3b91 (patch) | |
tree | 4669868371b66c7abc7c966994fb2c6bda6913b8 /wiretap | |
parent | 1e26510a6a795402f77ba5cb94f102fe6d0000bd (diff) |
Replace a magic constant with an expression that represents what it is.
(In the hope of making the code slightly less opaque.)
Change-Id: Ic635eedac4eb9fb764b3633c9003608b9b4ae3df
Reviewed-on: https://code.wireshark.org/review/23533
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/vwr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c index e96f4ac26c..5883c98f92 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -1987,7 +1987,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr, /*** Add the PLCP length for S3_W_FPGA version VHT frames for Beamforming decode ***/ if (log_mode == 3) { - frame_size = rec_size - 80 - stats_offset; + frame_size = rec_size - (stats_offset + vwr->MPDU_OFF + vVW510021_W_STATS_TRAILER_LEN); if (frame_size > ((int) msdu_length)) actual_octets = msdu_length; else |