From 8dea7cbed6d551eedd87742f244cc0130b096c89 Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Thu, 14 Apr 2022 16:51:24 +0530 Subject: [PATCH] wpa_supplicant/dpp: Avoid deadlock while deleting DPP task Closes https://github.com/espressif/esp-idf/issues/8724 --- components/wpa_supplicant/esp_supplicant/src/esp_dpp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_dpp.c b/components/wpa_supplicant/esp_supplicant/src/esp_dpp.c index 0f102ea861..60d719b321 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_dpp.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_dpp.c @@ -349,9 +349,7 @@ static void esp_dpp_task(void *pvParameters ) for (;;) { if (xQueueReceive(s_dpp_evt_queue, &evt, portMAX_DELAY) == pdTRUE) { - if (evt->id < SIG_DPP_MAX) { - DPP_API_LOCK(); - } else { + if (evt->id >= SIG_DPP_MAX) { os_free(evt); continue; } @@ -394,7 +392,6 @@ static void esp_dpp_task(void *pvParameters ) } os_free(evt); - DPP_API_UNLOCK(); if (task_del) { break;