3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

station: use wiphy_radio_work_reschedule in FT path

If FT fails the work item needs to be rescheduled rather than
inserted.
This commit is contained in:
James Prestwood 2023-05-18 09:50:00 -07:00 committed by Denis Kenzior
parent 109cb70f22
commit 189c23a5d9

View File

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