3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-08-27 00:47:25 +02:00

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.
This commit is contained in:
James Prestwood 2025-08-22 12:51:17 -07:00 committed by Denis Kenzior
parent 57dc5d843c
commit 088bb2e308

View File

@ -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);
}