diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 82602a8a6ce..9d3224f0b43 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