fix(roaming): prevent timeout payload double-free on deinit

Track timeout user_data before registration, untrack on register failure
This commit is contained in:
Kapil Gupta
2026-07-20 14:30:18 +05:30
committed by tarun.kumar
parent c695e7dd32
commit 2aee0a3ace
2 changed files with 85 additions and 18 deletions
+5
View File
@@ -608,12 +608,17 @@ menu "Wi-Fi"
config ESP_WIFI_ENABLE_ROAMING_APP
bool "Advanced support for Wi-Fi Roaming (Experimental)"
depends on IDF_EXPERIMENTAL_FEATURES
select ESP_WIFI_11KV_SUPPORT
default n
help
Enable Espressif's roaming app to allow for efficient Wi-Fi roaming.
This includes configurable periodic environment scans, maintaining a cache of the
best APs, handling low rssi events etc.
802.11k/v is selected so roaming-app scans can deliver beacon/probe frames to
the supplicant BSS table used by candidate_security_match() for RSN IE checks.
Without it, PMF/SAE-PK/H2E validation can fall back to coarse authmode heuristics.
Risk Warning
Please note that this feature is still experimental and enabling this potentially can
lead to unpredictable scanning, connection and roaming attempts.