feat: ESP32 CSI transmitter MAC address filtering#101
Merged
Conversation
In multi-AP environments, CSI frames from different access points get mixed together, corrupting the sensing signal. Add transmitter MAC filtering so only frames from a specified AP are processed. Implementation: - csi_collector: filter in wifi_csi_callback by comparing info->mac against configured MAC; log transmitter MAC in periodic debug output - csi_collector_set_filter_mac(): runtime API to enable/disable filter - Kconfig: CSI_FILTER_MAC option (format "AA:BB:CC:DD:EE:FF") - NVS: "filter_mac" 6-byte blob overrides Kconfig at runtime - nvs_config: parse Kconfig MAC string at boot, load NVS override - main: apply filter from config after csi_collector_init() When no filter is configured (default), behavior is unchanged — all transmitter MACs are accepted for backward compatibility. Fixes #98 Co-Authored-By: claude-flow <ruv@ruv.net>
Local machine configuration (ESP-IDF paths, COM port, build instructions) should not be committed to the repository. Co-Authored-By: claude-flow <ruv@ruv.net>
Owner
Author
Firmware Build & Flash Verification ✅Build method: Docker ( Build
Flash
Boot Verification
|
This was referenced Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wifi_csi_callback— non-matching frames are silently droppedCSI_FILTER_MAC) and NVS (filter_macblob) for runtime flexibilityConfiguration
Compile-time (menuconfig):
Runtime (NVS, no reflash needed):
Files Changed
firmware/esp32-csi-node/main/csi_collector.c— MAC filter logic in CSI callbackfirmware/esp32-csi-node/main/csi_collector.h—csi_collector_set_filter_mac()APIfirmware/esp32-csi-node/main/nvs_config.c— Parse Kconfig MAC string + NVS blob overridefirmware/esp32-csi-node/main/nvs_config.h—filter_mac+filter_mac_enabledfieldsfirmware/esp32-csi-node/main/Kconfig.projbuild—CSI_FILTER_MACoptionfirmware/esp32-csi-node/main/main.c— Apply filter from config at bootTest plan
CSI_FILTER_MACto AP MAC, verify only that AP's CSI is processedCSI_FILTER_MACto wrong MAC, verify all CSI is dropped (s_filtered increments)Fixes #98
🤖 Generated with claude-flow