[PATCH 14/15] station: clear roam_freqs on delayed roam
James Prestwood <[email protected]> Fri, 22 Aug 2025 12:51:17 -0700
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
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 3424964d..968aafb0 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2407,6 +2407,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);
}
--
2.34.1