station: Cancel the roam scan in station_free

We'd remove the roam timeout but not scancel the roam scan in
station_free, instead call station_roam_state_clear which does both
things.
This commit is contained in:
Andrew Zaborowski 2019-05-11 01:18:57 +02:00 committed by Denis Kenzior
parent b560ca6173
commit 236dc14a3d
1 changed files with 1 additions and 1 deletions

View File

@ -2719,7 +2719,7 @@ static void station_free(struct station *station)
scan_cancel(netdev_get_ifindex(station->netdev),
station->hidden_network_scan_id);
l_timeout_remove(station->roam_trigger_timeout);
station_roam_state_clear(station);
l_queue_destroy(station->networks_sorted, NULL);
l_hashmap_destroy(station->networks, network_free);