From 9da22a88522786e82076b4629a39d8a431ec71e7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 9 Aug 2017 09:20:37 -0600 Subject: [PATCH] Networking: Fix typo for 802.11 devices in netdev_register(). Was being masked before because depended on CONFIG_NET_MULTLINK. --- net/netdev/netdev_findbyaddr.c | 12 ++++++------ net/netdev/netdev_register.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/net/netdev/netdev_findbyaddr.c b/net/netdev/netdev_findbyaddr.c index ad10e13ec1..6481ffcb73 100644 --- a/net/netdev/netdev_findbyaddr.c +++ b/net/netdev/netdev_findbyaddr.c @@ -209,8 +209,8 @@ FAR struct net_driver_s *netdev_findby_ipv4addr(in_addr_t lipaddr, if (net_ipv4addr_cmp(lipaddr, INADDR_ANY)) { /* Yes.. In this case, I think we are supposed to send the - * broadcast packet out ALL local networks. I am not sure - * of that and, in any event, there is nothing we can do + * broadcast packet out ALL locally available networks. I am not + * sure of that and, in any event, there is nothing we can do * about that here. * * REVISIT: For now, arbitrarily return the first network @@ -228,7 +228,7 @@ FAR struct net_driver_s *netdev_findby_ipv4addr(in_addr_t lipaddr, } } - /* Check if the address maps to a local network */ + /* Check if the address maps to a locally available network */ dev = netdev_finddevice_ipv4addr(ripaddr); if (dev) @@ -313,8 +313,8 @@ FAR struct net_driver_s *netdev_findby_ipv6addr(const net_ipv6addr_t lipaddr, if (net_ipv6addr_cmp(lipaddr, g_ipv6_allzeroaddr)) { /* Yes.. In this case, I think we are supposed to send the - * broadcast packet out ALL local networks. I am not sure - * of that and, in any event, there is nothing we can do + * broadcast packet out ALL locally available networks. I am not + * sure of that and, in any event, there is nothing we can do * about that here. * * REVISIT: For now, arbitrarily return the first network @@ -332,7 +332,7 @@ FAR struct net_driver_s *netdev_findby_ipv6addr(const net_ipv6addr_t lipaddr, } } - /* Check if the address maps to a local network */ + /* Check if the address maps to a locally available network */ dev = netdev_finddevice_ipv6addr(ripaddr); if (dev) diff --git a/net/netdev/netdev_register.c b/net/netdev/netdev_register.c index abfaa68fcf..a87942e648 100644 --- a/net/netdev/netdev_register.c +++ b/net/netdev/netdev_register.c @@ -210,7 +210,7 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype) #ifdef CONFIG_NET_TCP dev->d_recvwndo = CONFIG_NET_ETH_TCP_RECVWNDO; #endif - devfmt = NETDEV_LPAN_FORMAT; + devfmt = NETDEV_WLAN_FORMAT; break; #endif