diff options
Diffstat (limited to 'wiretap/commview.c')
-rw-r--r-- | wiretap/commview.c | 3 |
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; |