From 15e66b9b664d9b7ee1b3d8d5f64c0ed7bf3b37b0 Mon Sep 17 00:00:00 2001 From: Jin-Seong Kim Date: Mon, 27 Mar 2017 16:00:50 +0900 Subject: [PATCH] s5j: add netif flags on wlan_init function This commit is to add netif flags for lwIP stack - to handle ARP, Broadcast and IGMP multicast packets, those flags should be configured on netif Change-Id: I1d670291628297e99b7acdb18064fd1552e1564d Signed-off-by: Jin-Seong Kim --- os/arch/arm/src/sidk_s5jt200/src/wlan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/arch/arm/src/sidk_s5jt200/src/wlan.c b/os/arch/arm/src/sidk_s5jt200/src/wlan.c index 62e2ae6..0296b4f 100644 --- a/os/arch/arm/src/sidk_s5jt200/src/wlan.c +++ b/os/arch/arm/src/sidk_s5jt200/src/wlan.c @@ -112,5 +112,7 @@ err_t wlan_init(struct netif *netif) snprintf(netif->d_ifname, IFNAMSIZ, "%c%c%d", netif->name[0], netif->name[1], netif->num); + netif->flags = NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_BROADCAST | NETIF_FLAG_IGMP; + return ERR_OK; } -- 2.7.4