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
This commit is contained in:
Guy Harris 2012-10-12 20:59:08 +00:00
parent 10b89e0430
commit a2c64e173e
1 changed files with 2 additions and 1 deletions

View File

@ -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;