From ae121324954a9fb06e960e86aab8a18d7ceae720 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 11 Jan 2022 09:45:13 -0800 Subject: [PATCH] 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). --- src/offchannel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/offchannel.c b/src/offchannel.c index e01f76c7..c6fed569 100644 --- a/src/offchannel.c +++ b/src/offchannel.c @@ -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)