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 <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-03-06 10:22:06 +01:00 committed by David Leach
parent 7987d802e3
commit 0db120abd4

View file

@ -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