From fba74a3e6d7441e9d091a2be3a465b72332af97b Mon Sep 17 00:00:00 2001 From: zhangjunhao Date: Wed, 18 Apr 2018 17:34:57 +0800 Subject: [PATCH] fix(tcpip_adapter): Fix crash when wifi changed to station from softap --- components/tcpip_adapter/tcpip_adapter_wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tcpip_adapter/tcpip_adapter_wifi.c b/components/tcpip_adapter/tcpip_adapter_wifi.c index 7202f0b9..9bf1e68f 100644 --- a/components/tcpip_adapter/tcpip_adapter_wifi.c +++ b/components/tcpip_adapter/tcpip_adapter_wifi.c @@ -162,7 +162,7 @@ void tcpip_adapter_stop(uint8_t netif_index) TCPIP_ATAPTER_LOG("ERROR bad netif index:%d\n", netif_index); return; } - if (esp_netif[netif_index == NULL]) + if (esp_netif[netif_index] == NULL) return; if (netif_index == TCPIP_ADAPTER_IF_STA) {