station: clear out roam frequencies after roam

This commit is contained in:
James Prestwood 2021-03-29 12:07:40 -07:00 committed by Denis Kenzior
parent 874b17ca56
commit 21e95dd2d8
1 changed files with 5 additions and 0 deletions

View File

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