commit ae121324954a9fb06e960e86aab8a18d7ceae720
parent 87e1045b119148848f5ec1c1f155ab0608fe6ae9
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 11 Jan 2022 09:45:13 -0800
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).
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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)