s5j: add netif flags on wlan_init function
authorJin-Seong Kim <jseong82.kim@samsung.com>
Mon, 27 Mar 2017 07:00:50 +0000 (16:00 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:02 +0000 (12:02 +0900)
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 <jseong82.kim@samsung.com>
os/arch/arm/src/sidk_s5jt200/src/wlan.c

index 62e2ae6..0296b4f 100644 (file)
@@ -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;
 }