7002 802.11 Monitor Mode

Does the 7002 support 802.11 monitor mode? https://en.wikipedia.org/wiki/Monitor_mode

Some chips call it promiscuous mode even though that should be something separate (esp32 specifically). There is a zephyr promiscuous mode example which looks like its actually monitor mode. However, when I try to run the example on the 7002DK, at the command:

net_promisc_mode_on(iface);

I get the error:

 Cannot set promiscuous mode for interface 0x200012a0 (-134)

Not all 802.11 chips support monitor mode so I wanted to verify before I do a deep dive to fixing this. I changed the code a bit to run better on the 7002DK, see below.

Thanks

Chris

void main(void)
{
	struct net_pkt *pkt;


	int ret;
	struct net_if *iface = net_if_get_default();
    if (!iface) {
        printk("Failed to get default network interface\n");
        return;
    }

	ret = net_promisc_mode_on(iface);
	if (ret < 0) {
		LOG_INF("Cannot set promiscuous mode for interface %p (%d)",
			iface, ret);
		return;
	}

	LOG_INF("Promiscuous mode enabled for interface %p", iface);
}

Parents Reply Children
No Data
Related