From 1a4a5a4ac14f58b9b7260f4f964844fe46dfaee3 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 4 Feb 2026 19:45:56 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Disable=20promiscuous=20mode=20on=20ESP3?= =?UTF-8?q?2=20=E2=80=94=20breaks=20CSI=20callback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Promiscuous mode (deauth/probe detection) disables CSI data collection on original ESP32 at the driver level. Guard with #if !CONFIG_IDF_TARGET_ESP32 to only enable on newer chips where the two coexist. --- get-started/csi_recv_router/main/app_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/get-started/csi_recv_router/main/app_main.c b/get-started/csi_recv_router/main/app_main.c index 926a6d0..c245716 100644 --- a/get-started/csi_recv_router/main/app_main.c +++ b/get-started/csi_recv_router/main/app_main.c @@ -1296,7 +1296,10 @@ void app_main() udp_socket_init(); wifi_csi_init(); +#if !CONFIG_IDF_TARGET_ESP32 + /* Promiscuous mode disables CSI on original ESP32 — only enable on newer chips */ wifi_promiscuous_init(); +#endif wifi_ping_router_start(); xTaskCreate(cmd_task, "cmd_task", 4096, NULL, 5, NULL);