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

offchannel: use work priorities rather than hard coding

The offchannel priority was also changed to zero, which matches the
priority of frames. Currently there should be no interaction between
offchannel and connect (previous offchannel priority).
This commit is contained in:
James Prestwood 2022-01-11 09:45:13 -08:00 committed by Denis Kenzior
parent 87e1045b11
commit ae12132495

View File

@ -168,8 +168,9 @@ uint32_t offchannel_start(uint64_t wdev_id, uint32_t freq, uint32_t duration,
*/
info->error = -ECANCELED;
return wiphy_radio_work_insert(wiphy_find_by_wdev(wdev_id),
&info->work, 1, &offchannel_work_ops);
return wiphy_radio_work_insert(wiphy_find_by_wdev(wdev_id), &info->work,
WIPHY_WORK_PRIORITY_OFFCHANNEL,
&offchannel_work_ops);
}
void offchannel_cancel(uint64_t wdev_id, uint32_t id)