mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(roam) : Set and unset roam scan ongoing flag properly
This commit is contained in:
@@ -784,7 +784,7 @@ static bool conduct_scan(void)
|
||||
gettimeofday(&g_roaming_app.scanned_aps.time, NULL);
|
||||
os_memset(&g_roaming_app.scanned_aps, 0, sizeof(struct scanned_ap_info));
|
||||
/* Issue scan */
|
||||
if (esp_wifi_promiscuous_scan_start(&g_roaming_app.config.scan_config, scan_done_event_handler) < 0) {
|
||||
if (esp_wifi_promiscuous_scan_start(&g_roaming_app.config.scan_config, scan_done_event_handler) != ESP_OK) {
|
||||
ESP_LOGE(ROAMING_TAG, "failed to issue scan");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ static int issue_scan(struct wpa_supplicant *wpa_s,
|
||||
typedef void (* scan_done_cb_t)(void *arg, ETS_STATUS status);
|
||||
extern int esp_wifi_promiscuous_scan_start(wifi_scan_config_t *config, scan_done_cb_t cb);
|
||||
/* issue scan */
|
||||
if (esp_wifi_promiscuous_scan_start(params, scan_done_event_handler) < 0) {
|
||||
if (esp_wifi_promiscuous_scan_start(params, scan_done_event_handler) != ESP_OK) {
|
||||
ret = -1;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user