Merged in masayuki2009/nuttx.nuttx/gs2200m_with_dhcp (pull request #958)

gs2200m with dhcp

* include/nuttx/wireless: Add GS2200M_IOC_IFREQ to gs2200m.h

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* drivers/wireless: Add GS2200M_IOC_IFREQ to gs2200m.c

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* configs/spresense/wifi: Enable NuttX's DHCP client instead of GS2200M's

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* configs/spresense: Add descriptions on wifi in README.txt

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Masayuki Ishikawa
2019-07-30 10:49:16 +00:00
committed by Gregory Nutt
parent f2b96016ad
commit 4c9508fc50
5 changed files with 172 additions and 6 deletions
+10
View File
@@ -43,6 +43,7 @@
#include <stdint.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/if.h>
#include <nuttx/config.h>
#include <nuttx/irq.h>
@@ -69,6 +70,9 @@ extern "C"
#define GS2200M_IOC_BIND _WLCIOC(GS2200M_FIRST + 4)
#define GS2200M_IOC_ACCEPT _WLCIOC(GS2200M_FIRST + 5)
#define GS2200M_IOC_ASSOC _WLCIOC(GS2200M_FIRST + 6)
#define GS2200M_IOC_IFREQ _WLCIOC(GS2200M_FIRST + 7)
/* NOTE: do not forget to update include/nuttx/wireless/ioctl.h */
struct gs2200m_connect_msg
{
@@ -127,6 +131,12 @@ struct gs2200m_assoc_msg
uint8_t ch;
};
struct gs2200m_ifreq_msg
{
uint32_t cmd;
struct ifreq ifr;
};
struct gs2200m_lower_s
{
int (*attach)(xcpt_t handler, FAR void *arg);
+1 -1
View File
@@ -100,7 +100,7 @@
/* See include/nuttx/wireless/gs2200m.h */
#define GS2200M_FIRST (SX127X_FIRST + SX127X_NCMDS)
#define GS2200M_NCMDS 7
#define GS2200M_NCMDS 8
/************************************************************************************
* Public Types