From 6de91f9d19af738cfa685dd35b4ef3971a4f7e42 Mon Sep 17 00:00:00 2001 From: xueyunfei Date: Mon, 12 Oct 2020 10:58:50 +0800 Subject: [PATCH] lw-ip:ipv6 address get fail after wifi disconnect for 3.2 --- components/tcpip_adapter/tcpip_adapter_lwip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/tcpip_adapter/tcpip_adapter_lwip.c b/components/tcpip_adapter/tcpip_adapter_lwip.c index 153dd5dff4..2bd9d1742c 100644 --- a/components/tcpip_adapter/tcpip_adapter_lwip.c +++ b/components/tcpip_adapter/tcpip_adapter_lwip.c @@ -325,6 +325,7 @@ esp_err_t tcpip_adapter_down(tcpip_adapter_if_t tcpip_if) for(int8_t i = 0 ;i < LWIP_IPV6_NUM_ADDRESSES ;i++) { netif_ip6_addr_set(esp_netif[tcpip_if] ,i ,IP6_ADDR_ANY6); + netif_ip6_addr_set_state(esp_netif[tcpip_if], i, IP6_ADDR_INVALID); } netif_set_addr(esp_netif[tcpip_if], IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); netif_set_down(esp_netif[tcpip_if]);