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:
parent
7987d802e3
commit
0db120abd4
|
@ -148,7 +148,7 @@ static void iface_cb(struct net_if *iface, void *user_data)
|
||||||
int ret;
|
int ret;
|
||||||
#endif
|
#endif
|
||||||
const char *extra;
|
const char *extra;
|
||||||
#if defined(CONFIG_NET_IP)
|
#if defined(CONFIG_NET_IP) || defined(CONFIG_NET_L2_ETHERNET_MGMT)
|
||||||
int count;
|
int count;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue