wiphy: define work priorities in one place

Work priority was never explicitly defined anywhere, and a module
using wiphy_radio_work APIs needed to ensure it was not inserting
at a priority that would interfere with other work.

Now all the types of work have been defined with their own priority
and future priorities can easily be added before, after, or in
between existing priorities.
This commit is contained in:
James Prestwood 2022-01-11 09:45:09 -08:00 committed by Denis Kenzior
parent 372a1c05e6
commit 6e5d1a540c
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ struct wiphy_radio_work_item {
const struct wiphy_radio_work_item_ops *ops;
};
#define WIPHY_WORK_PRIORITY_FRAME 0
#define WIPHY_WORK_PRIORITY_OFFCHANNEL 0
#define WIPHY_WORK_PRIORITY_CONNECT 1
#define WIPHY_WORK_PRIORITY_SCAN 2
#define WIPHY_WORK_PRIORITY_PERIODIC_SCAN 3
enum wiphy_state_watch_event {
WIPHY_STATE_WATCH_EVENT_POWERED,
WIPHY_STATE_WATCH_EVENT_RFKILLED,