esp32: fix WiFi stop bug in WiFi/BT coexist mode

This fix includes following changes:
1. Fix the bug that esp_restart()/esp_wifi_stop() sometimes fails in WiFi/BT coexist mode.
2. Add a timer for WiFi stop and stop WiFi forcibly once the timer expires.
This commit is contained in:
Liu Zhi Fu
2018-12-17 20:39:54 +08:00
parent ad9bce3203
commit 6a418013a3