fix(wifi_apps): Fix crash due to neighbor_list lock

Closes https://github.com/espressif/esp-idf/issues/16976
This commit is contained in:
Shreyas Sheth
2025-07-23 14:42:21 +05:30
committed by BOT
parent fb79d92005
commit 4757853836
2 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ menu "Roaming Methods"
config ESP_WIFI_ROAMING_NETWORK_ASSISTED_ROAM
bool "Support Network Assisted roaming using 802.11v"
depends on ESP_WIFI_WNM_SUPPORT
default y
default n
help
Roaming between APs using network assisted Roaming.
This involves BSS Transition Management mechanisms outlined in 802.11v.

View File

@@ -415,7 +415,7 @@ static void roaming_app_rssi_low_handler(void* arg, esp_event_base_t event_base,
static void trigger_network_assisted_roam(void)
{
#if PERIODIC_RRM_MONITORING
if (g_roaming_app.config.rrm_monitor) {
if (g_roaming_app.current_bss.rrm_support) {
ROAM_NEIGHBOR_LIST_LOCK();
}
#endif /*PERIODIC_RRM_MONITORING*/
@@ -423,7 +423,7 @@ static void trigger_network_assisted_roam(void)
ESP_LOGD(ROAMING_TAG, "failed to send btm query");
}
#if PERIODIC_RRM_MONITORING
if (g_roaming_app.config.rrm_monitor) {
if (g_roaming_app.current_bss.rrm_support) {
ROAM_NEIGHBOR_LIST_UNLOCK();
}
#endif /*PERIODIC_RRM_MONITORING*/