Skip to content

Commit b274fc9

Browse files
committed
fix(wifi_apps): Fix crash due to neighbor_list lock
1 parent 2d0f48e commit b274fc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/esp_wifi/wifi_apps/roaming_app/src/Kconfig.roaming

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ menu "Roaming Methods"
7373
config ESP_WIFI_ROAMING_NETWORK_ASSISTED_ROAM
7474
bool "Support Network Assisted roaming using 802.11v"
7575
depends on ESP_WIFI_WNM_SUPPORT
76-
default y
76+
default n
7777
help
7878
Roaming between APs using network assisted Roaming.
7979
This involves BSS Transition Management mechanisms outlined in 802.11v.

components/esp_wifi/wifi_apps/roaming_app/src/roaming_app.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,15 @@ static void roaming_app_rssi_low_handler(void* arg, esp_event_base_t event_base,
415415
static void trigger_network_assisted_roam(void)
416416
{
417417
#if PERIODIC_RRM_MONITORING
418-
if (g_roaming_app.config.rrm_monitor) {
418+
if (g_roaming_app.current_bss.rrm_support) {
419419
ROAM_NEIGHBOR_LIST_LOCK();
420420
}
421421
#endif /*PERIODIC_RRM_MONITORING*/
422422
if (esp_wnm_send_bss_transition_mgmt_query(REASON_RSSI, g_roaming_app.btm_neighbor_list, 1) < 0) {
423423
ESP_LOGD(ROAMING_TAG, "failed to send btm query");
424424
}
425425
#if PERIODIC_RRM_MONITORING
426-
if (g_roaming_app.config.rrm_monitor) {
426+
if (g_roaming_app.current_bss.rrm_support) {
427427
ROAM_NEIGHBOR_LIST_UNLOCK();
428428
}
429429
#endif /*PERIODIC_RRM_MONITORING*/

0 commit comments

Comments
 (0)