Allow dns when enabled CONFIG_PROT_DNS_LWIP=y CONFIG_CMD_DNS=n

Fixes: a383869d6b58 ("net: lwip: move dns init to common function")
Signed-off-by: E Shattow <e...@freeshell.de>
---
 net/lwip/net-lwip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c
index 3918d57d7e5..5d247c3721b 100644
--- a/net/lwip/net-lwip.c
+++ b/net/lwip/net-lwip.c
@@ -147,7 +147,7 @@ static int get_udev_ipv4_info(struct udevice *dev, 
ip4_addr_t *ip,
  */
 int net_lwip_dns_init(void)
 {
-#if CONFIG_IS_ENABLED(CMD_DNS)
+#if CONFIG_IS_ENABLED(PROT_DNS_LWIP)
        bool has_server = false;
        ip_addr_t ns;
        char *nsenv;

base-commit: 6bb0679377abb01a82db1ce69b5bf1d40aa02ace
-- 
2.50.0

Reply via email to