3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-02 17:38:45 +02: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:
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);
WIPHY_WORK_PRIORITY_CONNECT,
&ft_work_ops);
return true;
}