esp_wifi: fix WiFi scan and connect bugs when coexist with Bluetooth

1. Fix WiFi scan leads to poor performance of Bluetooth.
2. Improve WiFi connect success ratio when coexist with Bluetooth.
3. Check if WiFi is still connected when CSA or beacon timeout happen.
4. add coex pre init
This commit is contained in:
Jack
2019-11-27 23:32:54 +08:00
parent f9335a1785
commit 134a627ad8
3 changed files with 10 additions and 1 deletions

View File

@@ -453,6 +453,7 @@ void start_cpu0_default(void)
#if CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE
esp_coex_adapter_register(&g_coex_adapter_funcs);
coex_pre_init();
#endif
portBASE_TYPE res = xTaskCreatePinnedToCore(&main_task, "main",