I have a Wi-Fi capture (.pcap
) that I'm analysing and have run across what appear to me to be inconsistencies between the 802.11 spec and Wireshark's interpretation of the data. Specifically what I'm trying to pull apart is the 2-byte 802.11 Frame Control field.
Taken from http://www4.ncsu.edu/~aliu3/802.bmp, the format of the Frame Control field's subfields are as follows:
And below is a Wireshark screen cap of the packet that has me confused:
So as per the Wireshark screenshot, the flags portion (last 8 bits) of the Frame Control field is 0x22, which is fine. How the Version/Type/Subtype being 0x08
matches up with Wireshark's description of the frame is what has me confused.
0x08
= 0000 1000b
, which I thought would translate to Version = 00
, Type = 00
(which I thought meant management not data frame) and Subtype = 1000
(which I thought would be a beacon frame). So I would expect this frame to be a management frame and more specifically, a beacon frame. Wireshark however reports it as a Data frame. The second thing that is confusing me is where Wireshark is even pulling 0x20
from in the line Type/Subtype: Data (0x20)
.
Can anyone clarify my interpretation of the 802.11 spec/Wireshark capture for me and why the two aren't consistent?
0000b
, type =10b
/0x2
, version =00b
, and a reasonable way to represent type and subtype together would betype << 4 & subtype
, i.e.0x20
in this case. I'd be happy to have this confirmed or denied by someone knowledgeable, though. – Determinant