From a5c439777d09ebe93b8b2c15e811bfe8db1a893a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 2 May 2017 08:26:21 -0600 Subject: [PATCH] nshlib/nsh_netinit.c: If IEEE802.11 selected use wlan0 instead of eth0 for network device name. --- nshlib/nsh_netinit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nshlib/nsh_netinit.c b/nshlib/nsh_netinit.c index fd2159f1f..f05948f22 100644 --- a/nshlib/nsh_netinit.c +++ b/nshlib/nsh_netinit.c @@ -124,7 +124,10 @@ * not be the one that you want). */ -#if defined(CONFIG_NET_ETHERNET) +#if defined(CONFIG_DRIVERS_IEEE80211) /* Usually also has CONFIG_NET_ETHERNET */ +# define NET_DEVNAME "wlan0" +# define NSH_HAVE_NETDEV +#elif defined(CONFIG_NET_ETHERNET) # define NET_DEVNAME "eth0" # define NSH_HAVE_NETDEV #elif defined(CONFIG_NET_6LOWPAN)