diff --git a/net/ieee802154/ieee802154_finddev.c b/net/ieee802154/ieee802154_finddev.c index 477328bc07..c3157165f1 100644 --- a/net/ieee802154/ieee802154_finddev.c +++ b/net/ieee802154/ieee802154_finddev.c @@ -1,7 +1,7 @@ /**************************************************************************** * net/ieee802154/ieee802154_finddev.c * - * Copyright (C) 2015 Gregory Nutt. All rights reserved. + * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -56,8 +56,8 @@ struct ieee802154_finddev_s { - FAR const struct ieee802154_saddr_s *addr; - FAR struct radio_driver_s *radio; + FAR const struct ieee802154_saddr_s *addr; + FAR struct radio_driver_s *radio; }; /**************************************************************************** @@ -65,7 +65,7 @@ struct ieee802154_finddev_s ****************************************************************************/ /**************************************************************************** - * Name: ieee8021545_dev_callback + * Name: ieee802154_dev_callback * * Description: * Check if this device matches the connections local address. @@ -79,7 +79,7 @@ struct ieee802154_finddev_s * ****************************************************************************/ -static int ieee8021545_dev_callback(FAR struct net_driver_s *dev, FAR void *arg) +static int ieee802154_dev_callback(FAR struct net_driver_s *dev, FAR void *arg) { FAR struct ieee802154_finddev_s *match = (FAR struct ieee802154_finddev_s *)arg; @@ -174,10 +174,10 @@ FAR struct radio_driver_s * addr->s_mode == IEEE802154_ADDRMODE_EXTENDED); /* Other, search for the IEEE 802.15.4 network device whose MAC is equal to - * the sockets bount local address. + * the sockets bound local address. */ - ret = netdev_foreach(ieee8021545_dev_callback, (FAR void *)&match); + ret = netdev_foreach(ieee802154_dev_callback, (FAR void *)&match); if (ret == 1) { DEBUGASSERT(match.radio != NULL); diff --git a/net/ieee802154/ieee802154_sendto.c b/net/ieee802154/ieee802154_sendto.c index 48e16f2be2..e80a389294 100644 --- a/net/ieee802154/ieee802154_sendto.c +++ b/net/ieee802154/ieee802154_sendto.c @@ -1,8 +1,7 @@ /**************************************************************************** * net/ieee802154/ieee802154_sendto.c * - * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. - * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -78,7 +77,7 @@ struct ieee802154_sendto_s { FAR struct socket *is_sock; /* Points to the parent socket structure */ FAR struct devif_callback_s *is_cb; /* Reference to callback instance */ - struct ieee802154_saddr_s is_destaddr; /* Frame destinatin address */ + struct ieee802154_saddr_s is_destaddr; /* Frame destination address */ sem_t is_sem; /* Used to wake up the waiting thread */ FAR const uint8_t *is_buffer; /* User buffer of data to send */ size_t is_buflen; /* Number of bytes in the is_buffer */ diff --git a/net/ieee802154/ieee802154_sockif.c b/net/ieee802154/ieee802154_sockif.c index 99c20d1276..7b136a22f2 100644 --- a/net/ieee802154/ieee802154_sockif.c +++ b/net/ieee802154/ieee802154_sockif.c @@ -47,10 +47,11 @@ #include #include +#include +#include + #include #include -#include -#include #include "ieee802154/ieee802154.h"