From f33c32dc0540eafa99bd86ba7df87cc0159bdefd Mon Sep 17 00:00:00 2001 From: jgujarathi Date: Tue, 28 Nov 2023 15:18:39 +0530 Subject: [PATCH] fix(wpa_supplicant): Move concurrent wps and dpp check to before creating task - Move the check for checking concurrent wps and dpp check to before creating task rather than after. --- components/wpa_supplicant/esp_supplicant/src/esp_wps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c index 7c19aef15e..02812d3a99 100644 --- a/components/wpa_supplicant/esp_supplicant/src/esp_wps.c +++ b/components/wpa_supplicant/esp_supplicant/src/esp_wps.c @@ -1831,6 +1831,11 @@ int esp_wifi_wps_enable(const esp_wps_config_t *config) return ESP_ERR_WIFI_MODE; } + if (is_dpp_enabled()) { + wpa_printf(MSG_ERROR, "wps enabled failed since DPP is initialized"); + return ESP_FAIL; + } + API_MUTEX_TAKE(); if (s_wps_enabled) { if (sm && os_memcmp(sm->identity, WSC_ID_REGISTRAR, sm->identity_len) == 0) {