From 21e95dd2d86d784ef96290f381ee74863dff52af Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 29 Mar 2021 12:07:40 -0700 Subject: [PATCH] station: clear out roam frequencies after roam --- src/station.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/station.c b/src/station.c index ba4483e6..0d4cd47d 100644 --- a/src/station.c +++ b/src/station.c @@ -1442,6 +1442,11 @@ static void station_roamed(struct station *station) if (station->netconfig) netconfig_reconfigure(station->netconfig); + if (station->roam_freqs) { + scan_freq_set_free(station->roam_freqs); + station->roam_freqs = NULL; + } + station_enter_state(station, STATION_STATE_CONNECTED); }