Merge branch 'bugfix/ipv6_address_get_fail_after_wifi_disconnect_for_3.3' into 'release/v3.3'

lw-ip:ipv6 address get fail after wifi disconnect for 3.3(backport 3.3)

See merge request espressif/esp-idf!10792
This commit is contained in:
Jiang Jiang Jian 2020-10-13 12:28:46 +08:00
commit 5d1da96e3e

View file

@ -327,6 +327,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]);