]> The Tcpdump Group git mirrors - tcpdump/commit
Try to handle radiotap Rate values > 127 better.
authorGuy Harris <[email protected]>
Wed, 27 Apr 2011 22:15:09 +0000 (15:15 -0700)
committerGuy Harris <[email protected]>
Wed, 27 Apr 2011 22:15:09 +0000 (15:15 -0700)
commit6bfcf8d87ecedd6676a91380401e205c675c1381
treeb95b969d3f1359db986b1c3ba94f3d32f9779b43
parent54db122321d0eb50ba5f990df2f5bbc74db3e880
Try to handle radiotap Rate values > 127 better.

Use the same heuristic Wireshark uses, i.e. assume that FreeBSD only
reports MCS indices between 0 and 15, and that any other values with the
0x80 bit set are rate values.  (Yes, those do exist.)

Also note, as I did in Wireshark, that it might be possible to extract
from the XChannel and Flags field the additional information to convert
an MCS index from the Rate field into a rate.  (Whether that's possible
depends on what platforms using the FreeBSD convention do with the
channel width and guard interval information.)
print-802_11.c