Using ath9k as a sniffer
I'm using a few ath9k-based cards as sniffers, and it would be nice if there was a way to get the MCS rate information out of the captured frames in some form that wireshark/tshark can be made to read. Currently I can tell that a frame was sent using an MCS rate because radiotap.datarate is absent from the header, but that's all I can tell.
Quoted 8 lines · Timothy Smith
I'm using a few ath9k-based cards as sniffers, and it would be nice if there was a way to get the MCS rate information out of the captured frames in some form that wireshark/tshark can be made to read. Currently I can tell that a frame was sent using an MCS rate because radiotap.datarate is absent from the header, but that's all I can tell.
From where I'm standing it doesn't look like radiotap has a way of doing this yet, but I wonder if anyone else has solved this with a vendor extension?
There is ongoing work on (finally) getting the HT rate parameters standardized in radiotap. I don't see Linux changing before this gets approved, but once that happens, I would expect this information to become available shortly.
I have used some of the not-yet-approved (but already interpreted by wireshark) extensions in my tests and submitted a patch to add that into mac80211 (which ath9k would use to get this information included):
http://marc.info/?l=linux-wireless&m=122908558801147&w=2
That is from last year, so I have no idea whether it still applies to the current mac80211, though.
- Jouni