From 088bb2e308555c8630e095f3e688ebdd9a7a6a2d Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 22 Aug 2025 12:51:17 -0700 Subject: [PATCH] station: clear roam_freqs on delayed roam If there were no BSS candidates found after trying to roam make sure the old roam_freqs list gets cleared so IWD doesn't end up scanning potentially old frequencies on the next retry. --- src/station.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/station.c b/src/station.c index a4c3e7d1..e2273153 100644 --- a/src/station.c +++ b/src/station.c @@ -2404,6 +2404,11 @@ static void station_roam_retry(struct station *station) station->roam_scan_full = false; station->ap_directed_roaming = false; + if (station->roam_freqs) { + scan_freq_set_free(station->roam_freqs); + station->roam_freqs = NULL; + } + if (station->signal_low) station_roam_timeout_rearm(station, roam_retry_interval); }