Merge branch 'bugfix/fix_set_wifi_opmode_crash' into 'master'

fix(tcpip_adapter): Fix crash when wifi changed to station from softap

See merge request sdk/ESP8266_RTOS_SDK!68
This commit is contained in:
Wu Jian Gang
2018-04-19 10:09:30 +08:00

View File

@ -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) {