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 16:12:20 +08:00
parent c69907a54b
commit b3380b79d1