From 0db120abd40cd2f9df3715f958efa21eb7549ec3 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 6 Mar 2024 10:22:06 +0100 Subject: [PATCH] net: lib: shell: iface: Fix when building ethernet without IP support The count stack variable is also used when CONFIG_NET_L2_ETHERNET_MGMT is enabled. Make sure it is available. Signed-off-by: Pieter De Gendt --- subsys/net/lib/shell/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/net/lib/shell/iface.c b/subsys/net/lib/shell/iface.c index 5a31c6e8d5..7301cadace 100644 --- a/subsys/net/lib/shell/iface.c +++ b/subsys/net/lib/shell/iface.c @@ -148,7 +148,7 @@ static void iface_cb(struct net_if *iface, void *user_data) int ret; #endif const char *extra; -#if defined(CONFIG_NET_IP) +#if defined(CONFIG_NET_IP) || defined(CONFIG_NET_L2_ETHERNET_MGMT) int count; #endif