Merge branch 'bugfix/fix_iperf_example_crash_issue' into 'master'

example: Scan failure should not cause system crash

Closes WIFI-3306

See merge request espressif/esp-idf!11998
This commit is contained in:
Jiang Jiang Jian
2021-01-18 10:52:58 +08:00
5 changed files with 7 additions and 7 deletions
@@ -371,7 +371,7 @@ static void example_event_callback(esp_blufi_cb_event_t event, esp_blufi_cb_para
.channel = 0,
.show_hidden = false
};
ESP_ERROR_CHECK(esp_wifi_scan_start(&scanConf, true));
esp_wifi_scan_start(&scanConf, true);
break;
}
case ESP_BLUFI_EVENT_RECV_CUSTOM_DATA:
@@ -194,7 +194,7 @@ static bool wifi_cmd_sta_scan(const char *ssid)
scan_config.ssid = (uint8_t *) ssid;
ESP_ERROR_CHECK( esp_wifi_set_mode(WIFI_MODE_STA) );
ESP_ERROR_CHECK( esp_wifi_scan_start(&scan_config, false) );
esp_wifi_scan_start(&scan_config, false);
return true;
}