aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/commview.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-10-12 20:59:08 +0000
committerGuy Harris <guy@alum.mit.edu>2012-10-12 20:59:08 +0000
commita2c64e173e075dd857731a22dd47b34b56898d1d (patch)
tree9e4726bf9ee0c8ab8fd2d921433c8824f3580faf /wiretap/commview.c
parent10b89e0430d1fbeb142fe816b49b9a691e4364c1 (diff)
And that also means that we need to split the data rate from the
pseudo-header into two bytes and fill in both the rate and direction fields when writing CommView NCF files out. svn path=/trunk/; revision=45507
Diffstat (limited to 'wiretap/commview.c')
-rw-r--r--wiretap/commview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/commview.c b/wiretap/commview.c
index ca187ac79e..81bcfcd802 100644
--- a/wiretap/commview.c
+++ b/wiretap/commview.c
@@ -358,7 +358,8 @@ static gboolean commview_dump(wtap_dumper *wdh,
cv_hdr.flags |= MEDIUM_WIFI;
cv_hdr.channel = pseudo_header->ieee_802_11.channel;
- cv_hdr.rate = pseudo_header->ieee_802_11.data_rate;
+ cv_hdr.rate = (guint8)(pseudo_header->ieee_802_11.data_rate & 0xFF);
+ cv_hdr.direction = (guint8)((pseudo_header->ieee_802_11.data_rate >> 8) & 0xFF);
cv_hdr.signal_level_percent = pseudo_header->ieee_802_11.signal_level;
break;