fix(roam) : Set and unset roam scan ongoing flag properly

This commit is contained in:
tarun.kumar
2026-03-04 17:13:34 +05:30
parent c59aab9a07
commit 6046926d0e
3 changed files with 5 additions and 4 deletions
@@ -650,7 +650,8 @@ static void conduct_scan(void)
gettimeofday(&g_roaming_app.scanned_aps.time, NULL);
/* Issue scan */
os_memset(&g_roaming_app.scanned_aps, 0, sizeof(struct scanned_ap_info));
if (esp_wifi_promiscuous_scan_start(&g_roaming_app.config.scan_config, scan_done_event_handler) < 0) {
/* Issue scan */
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;
}