mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_wifi: Miscellaneous FTM bugfixes
1. Update wifi libs with bugfixes for corner cases 2. Avoid ASSERT for scan failure in FTM example
This commit is contained in:
parent
3d0076a31f
commit
47ccdef8c1
@ -261,7 +261,10 @@ static bool wifi_perform_scan(const char *ssid, bool internal)
|
||||
uint8_t i;
|
||||
|
||||
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
ESP_ERROR_CHECK( esp_wifi_scan_start(&scan_config, true) );
|
||||
if (ESP_OK != esp_wifi_scan_start(&scan_config, true)) {
|
||||
ESP_LOGI(TAG_STA, "Failed to perform scan");
|
||||
return false;
|
||||
}
|
||||
|
||||
esp_wifi_scan_get_ap_num(&g_scan_ap_num);
|
||||
if (g_scan_ap_num == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user