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:52:40 +08:00
parent 1c4d9f2aca
commit cb650382ca