diff --git a/net/arp/arp_send.c b/net/arp/arp_send.c index 7339c27616..f19d28b551 100644 --- a/net/arp/arp_send.c +++ b/net/arp/arp_send.c @@ -248,7 +248,8 @@ int arp_send(in_addr_t ipaddr) * Ethernet link layer protocol. */ - if (dev->d_lltype != NET_LL_ETHERNET) + if (dev->d_lltype != NET_LL_ETHERNET && + dev->d_lltype != NET_LL_IEEE80211) { return OK; } diff --git a/net/neighbor/neighbor_out.c b/net/neighbor/neighbor_out.c index 5ee500284d..8b52e4f952 100644 --- a/net/neighbor/neighbor_out.c +++ b/net/neighbor/neighbor_out.c @@ -80,6 +80,7 @@ void neighbor_out(FAR struct net_driver_s *dev) { #ifdef CONFIG_NET_ETHERNET case NET_LL_ETHERNET: + case NET_LL_IEEE80211: neighbor_ethernet_out(dev); break; #endif diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c index e8720affdd..3218251e80 100644 --- a/net/netdev/netdev_ioctl.c +++ b/net/netdev/netdev_ioctl.c @@ -976,7 +976,8 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd, if (dev) { #ifdef CONFIG_NET_ETHERNET - if (dev->d_lltype == NET_LL_ETHERNET) + if (dev->d_lltype == NET_LL_ETHERNET || + dev->d_lltype == NET_LL_IEEE80211) { memcpy(dev->d_mac.ether.ether_addr_octet, req->ifr_hwaddr.sa_data, IFHWADDRLEN); diff --git a/net/netdev/netdev_lladdrsize.c b/net/netdev/netdev_lladdrsize.c index a3abc366d0..d07cffc0da 100644 --- a/net/netdev/netdev_lladdrsize.c +++ b/net/netdev/netdev_lladdrsize.c @@ -121,6 +121,7 @@ int netdev_lladdrsize(FAR struct net_driver_s *dev) { #ifdef CONFIG_NET_ETHERNET case NET_LL_ETHERNET: + case NET_LL_IEEE80211: { /* Size of the Ethernet MAC address */ diff --git a/net/pkt/pkt_sockif.c b/net/pkt/pkt_sockif.c index def5bc4410..a6429c3dc4 100644 --- a/net/pkt/pkt_sockif.c +++ b/net/pkt/pkt_sockif.c @@ -376,7 +376,8 @@ static int pkt_bind(FAR struct socket *psock, FAR const struct sockaddr *addr, /* Only Ethernet is supported */ - if (dev->d_lltype != NET_LL_ETHERNET) + if (dev->d_lltype != NET_LL_ETHERNET && + dev->d_lltype != NET_LL_IEEE80211) { return -EAFNOSUPPORT; }