net/procfs/netdev_statistics.c: Was not handling the output correct for the case of an IEEE 802.11 device.

This commit is contained in:
Gregory Nutt 2018-08-21 09:08:29 -06:00
parent df7565e557
commit 2e0860e193
1 changed files with 2 additions and 1 deletions

View File

@ -211,8 +211,9 @@ static int netprocfs_linklayer(FAR struct netprocfs_file_s *netfile)
switch (dev->d_lltype) switch (dev->d_lltype)
{ {
#ifdef CONFIG_NET_ETHERNET #if defined(CONFIG_NET_ETHERNET) || defined(CONFIG_DRIVERS_IEEE80211)
case NET_LL_ETHERNET: case NET_LL_ETHERNET:
case NET_LL_IEEE80211:
len += snprintf(&netfile->line[len], NET_LINELEN - len, len += snprintf(&netfile->line[len], NET_LINELEN - len,
"%s\tLink encap:Ethernet HWaddr %s", "%s\tLink encap:Ethernet HWaddr %s",
dev->d_ifname, ether_ntoa(&dev->d_mac.ether)); dev->d_ifname, ether_ntoa(&dev->d_mac.ether));