nshlib/nsh_netinit.c: If IEEE802.11 selected use wlan0 instead of eth0 for network device name.

This commit is contained in:
Gregory Nutt 2017-05-02 08:26:21 -06:00
parent 4ba1f8665d
commit a5c439777d

View File

@ -124,7 +124,10 @@
* not be the one that you want). * 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 NET_DEVNAME "eth0"
# define NSH_HAVE_NETDEV # define NSH_HAVE_NETDEV
#elif defined(CONFIG_NET_6LOWPAN) #elif defined(CONFIG_NET_6LOWPAN)