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