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:
parent
df7565e557
commit
2e0860e193
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue