diff --git a/include/nuttx/wireless/wireless.h b/include/nuttx/wireless/wireless.h index cd7de191d1b..a9aec2373cd 100644 --- a/include/nuttx/wireless/wireless.h +++ b/include/nuttx/wireless/wireless.h @@ -185,6 +185,12 @@ #define NRF24L01_FIRST (CC3000_FIRST + CC3000_NCMDS) #define NRF24L01_NCMDS 14 +/* Other Definitions ****************************************************************/ + +/* Maximum size of the ESSID and NICKN strings */ + +#define IW_ESSID_MAX_SIZE 32 + /************************************************************************************ * Public Types ************************************************************************************/ diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c index 9f9ee88982a..41769f653b8 100644 --- a/net/netdev/netdev_ioctl.c +++ b/net/netdev/netdev_ioctl.c @@ -64,7 +64,7 @@ # include #endif -#ifdef CONFIG_NETDEV_NETDEV_WIRELESS_IOCTL +#ifdef CONFIG_NETDEV_WIRELESS_IOCTL # include #endif @@ -329,7 +329,7 @@ static void ioctl_setipv6addr(FAR net_ipv6addr_t outaddr, * ****************************************************************************/ -#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_NETDEV_WIRELESS_IOCTL) +#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_WIRELESS_IOCTL) static FAR struct net_driver_s *netdev_wifrdev(FAR struct iwreq *req) { if (req != NULL) @@ -363,7 +363,7 @@ static FAR struct net_driver_s *netdev_wifrdev(FAR struct iwreq *req) * ****************************************************************************/ -#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_NETDEV_WIRELESS_IOCTL) +#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_WIRELESS_IOCTL) static int netdev_wifrioctl(FAR struct socket *psock, int cmd, FAR struct iwreq *req) { @@ -376,10 +376,10 @@ static int netdev_wifrioctl(FAR struct socket *psock, int cmd, { /* Get the wireless device associated with the IOCTL command */ - dev = netdev_ifrdev(req); + dev = netdev_wifrdev(req); if (dev) { - /* For now, just forward the IOCTL to the wireless driver */ + /* Just forward the IOCTL to the wireless driver */ ret = dev->d_ioctl(dev, cmd, ((long)(uintptr_t)req)); } @@ -1160,7 +1160,7 @@ int psock_ioctl(FAR struct socket *psock, int cmd, unsigned long arg) ret = netdev_ifrioctl(psock, cmd, (FAR struct ifreq *)((uintptr_t)arg)); -#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_NETDEV_WIRELESS_IOCTL) +#if defined(CONFIG_NETDEV_IOCTL) && defined(CONFIG_NETDEV_WIRELESS_IOCTL) /* Check a wireless network command */ if (ret == -ENOTTY)