From d20a7183206581d010372575a943a3428758ef49 Mon Sep 17 00:00:00 2001 From: Suren Gabrielyan Date: Tue, 14 Nov 2023 14:42:02 +0400 Subject: [PATCH] fix(mdns): enable CONFIG_ESP_WIFI_ENABLED if CONFIG_SOC_WIFI_SUPPORTED is also enabled (for ESP-IDF <= 5.1) --- components/mdns/mdns.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 82602a8a6c..9d3224f0b4 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -26,8 +26,7 @@ #endif #if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(5, 1, 0) -// IDF <= v5.1 does not support enabling/disabling esp-wifi -#define MDNS_ESP_WIFI_ENABLED 1 +#define MDNS_ESP_WIFI_ENABLED CONFIG_SOC_WIFI_SUPPORTED #else #define MDNS_ESP_WIFI_ENABLED CONFIG_ESP_WIFI_ENABLED #endif