I'm capturing wirless frames the first structure i'm using is
struct mgmt_header_t {
u_int16_t fc;
u_int16_t duration;
u_int8_t da[6];
u_int8_t sa[6];
u_int8_t bssid[6];
u_int16_t seq_ctrl;
};
but this header mismatch , because my captured packet start with destination address followed by source address ?! I think i'm on 802.11g is there a difference ? the above structure following tcpdump and ieee802.11-2007 standard
-- UPDATE -- After taking a look at wireshark it says [Protocols in frame : eth:ip:tcp:http ] and testing these structures in this order worked but I'm still looking for analyzing 802.11 frame