I plan to use Wi-Fi by radio to navigate my drone. I want so send packets from laptop to the drone. Currently I can send packets out, but only when the Wi-Fi card is in monitor mode.
static const u8 u8aRadiotapHeader[] = {
0x00, 0x00, // <-- radiotap version
0x0c, 0x00, // <- radiotap header length
0x04, 0x0c, 0x00, 0x00, // <-- bitmap
0x22, // <-- rate
0x0, //<-- tx power
0x18, 0x00 //<-- antenna
};
static u8 u8aIeeeHeader[] = {
0x08, 0x01, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x13, 0x22, 0x33, 0x44, 0x55, 0x66,
0x13, 0x22, 0x33, 0x44, 0x55, 0x66,
0x10, 0x86,
};
Is it possible to set up my headers so that the Wi-Fi card will receive the packet without being in monitor mode, and if so, how can I achieve it? Or am I forced to filter all packets in air?
Regards, Kokos Bot.
My systems:
Sender: Linux 64-bit with PCAP for my sending program in C
Reciever: R-Pi2
I use TL-WN722N on both the sending and receiving sides.