From f14da2ecc05322a64a57bdedf64d6d5870e6be40 Mon Sep 17 00:00:00 2001 From: "kapil.gupta" Date: Tue, 22 Dec 2020 16:52:22 +0530 Subject: [PATCH] wpa_supplicant: Remove lock during processing of btm/rrm packets Lock is not required during btm/rrm action frames processing and taking it may cause inconsistant behavior since wifi task posts the events to this task. --- components/wpa_supplicant/src/esp_supplicant/esp_common.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/wpa_supplicant/src/esp_supplicant/esp_common.c b/components/wpa_supplicant/src/esp_supplicant/esp_common.c index 04cd3596bc..f491e69b7e 100644 --- a/components/wpa_supplicant/src/esp_supplicant/esp_common.c +++ b/components/wpa_supplicant/src/esp_supplicant/esp_common.c @@ -116,9 +116,6 @@ static void esp_btm_rrm_task(void *pvParameters) continue; } - /* get lock */ - SUPPLICANT_API_LOCK(); - switch (evt->id) { case SIG_SUPPLICANT_RX_ACTION: { @@ -139,7 +136,6 @@ static void esp_btm_rrm_task(void *pvParameters) } os_free(evt); - SUPPLICANT_API_UNLOCK(); if (task_del) break;