From 236dc14a3d2d8877e7629dc011beb96005847991 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Sat, 11 May 2019 01:18:57 +0200 Subject: [PATCH] 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. --- src/station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station.c b/src/station.c index 7b335b25..36eac34c 100644 --- a/src/station.c +++ b/src/station.c @@ -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);