DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
wifi_sniffer.h File Reference

802.11 frame decode + traffic tally + RSSI roaming decision (DETWS_ENABLE_WIFI_SNIFFER). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

802.11 frame decode + traffic tally + RSSI roaming decision (DETWS_ENABLE_WIFI_SNIFFER).

The ESP32 can run its WiFi MAC in promiscuous mode and hand raw 802.11 frames to a callback. Turning those into a useful sniffer / traffic analyzer / RF-diagnostics panel means decoding the 802.11 MAC header (frame control type/subtype + flags, and the three addresses whose roles - receiver / transmitter / BSSID - depend on the ToDS/FromDS bits), tallying frames by type, and, for channel-agility roaming, deciding when a candidate AP is enough stronger than the current one to switch.

This is that pure decode + decision layer; the promiscuous-mode radio callback belongs to the app. No heap, no stdlib, host-testable against captured frame bytes.

Definition in file wifi_sniffer.h.