I'm trying to send 802.11 frames using pcap_sendpacket with the following radiotap:
u_char RADIOTAP_HDR[] = {
0x00, // it_version
0x00, // padding
0x0a, 0x00, // length
0x00, 0x00, 0x80, 0x00, // IEEE80211_RADIOTAP_TX_FLAGS
0x00, 0x08, // no-ack required
};
I'm also using 802.11 header defined in include/linux/ieee80211.h:
struct ieee80211_hdr {
uint16_t /*__le16*/ frame_control;
uint16_t /*__le16*/ duration_id;
uint8_t addr1[6];
uint8_t addr2[6];
uint8_t addr3[6];
uint16_t /*__le16*/ seq_ctrl;
//uint8_t addr4[6];
} __attribute__ ((packed));
When capturing the frame with Wireshark, it looks like an Ethernet frame where the radiotap header is traduced as an Ehternet header.
Did I make a mistake somewhere ? Regards