From 189c23a5d9ece18c5b336655b870145675bd1412 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 18 May 2023 09:50:00 -0700 Subject: [PATCH] station: use wiphy_radio_work_reschedule in FT path If FT fails the work item needs to be rescheduled rather than inserted. --- src/station.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/station.c b/src/station.c index be571083..f830ab7a 100644 --- a/src/station.c +++ b/src/station.c @@ -2330,8 +2330,12 @@ static bool station_fast_transition(struct station *station, ft_authenticate(netdev_get_ifindex(station->netdev), bss); done: - wiphy_radio_work_insert(station->wiphy, &station->ft_work, - WIPHY_WORK_PRIORITY_CONNECT, &ft_work_ops); + if (station->ft_work.id) + wiphy_radio_work_reschedule(station->wiphy, &station->ft_work); + else + wiphy_radio_work_insert(station->wiphy, &station->ft_work, + WIPHY_WORK_PRIORITY_CONNECT, + &ft_work_ops); return true; }