Page 1 of 1

How do I configure promiscuous mode so that I receive packets from all channels

Posted: Thu Jul 02, 2020 8:49 pm
by Weigen Qiu
Hi,
following the sample code simple_sniffer, I was able to run the code I modified to receive detected packets. However, it seems all detected packets are from the same channel (in my case channel 11).

are there any configurations/APIs/ that I need to set in order to receive packets from all channels?

Thanks in advance.

Re: How to I configure promiscuous mode so that I receive packets from all channels

Posted: Fri Jul 03, 2020 6:49 am
by ESP_Sprite
You can't. In the same way as a FM radio can only listen to one channel at the time, a WiFi radio also can only be tuned to one channel. You can theoretically 'fake' it by quickly sweeping over all the channels, but you'll still miss packets on channels you're not listening to.

Re: How to I configure promiscuous mode so that I receive packets from all channels

Posted: Wed Jul 15, 2020 4:49 pm
by Weigen Qiu
thanks ESP_Sprite.

So I was playing with the Raspberry Pi, and the Wifi driver has a monitor mode. Once I witch to the monitor mode, I can receive packets from all channels. I was wondering the difference between monitor mode and the promiscuous mode.

Re: How do I configure promiscuous mode so that I receive packets from all channels

Posted: Fri Jul 17, 2020 9:18 am
by ESP_Sprite
No, you can't, as the Raspberry Pi WiFi also only has one radio. They likely use the trick I mentioned earlier, where the radio 'sweeps' over all channels.