|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
802.11 frame decode + traffic tally + RSSI roaming decision (PC_ENABLE_WIFI_SNIFFER). More...
Go to the source code of this file.
802.11 frame decode + traffic tally + RSSI roaming decision (PC_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.