From 6c697bf8e59b2f257114007cba57263df8440973 Mon Sep 17 00:00:00 2001 From: rosahay-silabs Date: Tue, 11 Oct 2022 17:48:52 +0530 Subject: [PATCH] Adds LWIP_IPV6_MLD support for Neighborhood discovery --- src/platform/EFR32/wifi/ethernetif.cpp | 4 ++++ src/platform/EFR32/wifi/lwip_netif.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/platform/EFR32/wifi/ethernetif.cpp b/src/platform/EFR32/wifi/ethernetif.cpp index 318f8a272ece1b..36221fbfd29de4 100644 --- a/src/platform/EFR32/wifi/ethernetif.cpp +++ b/src/platform/EFR32/wifi/ethernetif.cpp @@ -97,6 +97,10 @@ static void low_level_init(struct netif * netif) /* Accept broadcast address and ARP traffic */ netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP; + +#if LWIP_IPV6_MLD + netif->flags |= NETIF_FLAG_MLD6; +#endif /* LWIP_IPV6_MLD */ } /******************************************************************************** diff --git a/src/platform/EFR32/wifi/lwip_netif.cpp b/src/platform/EFR32/wifi/lwip_netif.cpp index a13a9c35abcc25..cd3a34292cf85a 100644 --- a/src/platform/EFR32/wifi/lwip_netif.cpp +++ b/src/platform/EFR32/wifi/lwip_netif.cpp @@ -91,6 +91,10 @@ void wfx_lwip_set_sta_link_up(void) /* * Enable IPV6 */ + +#if LWIP_IPV6_AUTOCONFIG + sta_netif.ip6_autoconfig_enabled = 1; +#endif /* LWIP_IPV6_AUTOCONFIG */ netif_create_ip6_linklocal_address(&sta_netif, MAC_48_BIT_SET); }