wiphy: Use anonymous enum in favor of #defines

This commit is contained in:
Denis Kenzior 2022-03-02 13:55:26 -06:00
parent 86f34a394b
commit a8f3098115
1 changed files with 7 additions and 5 deletions

View File

@ -45,11 +45,13 @@ 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_WORK_PRIORITY_FRAME = 0,
WIPHY_WORK_PRIORITY_OFFCHANNEL = 0,
WIPHY_WORK_PRIORITY_CONNECT = 1,
WIPHY_WORK_PRIORITY_SCAN = 2,
WIPHY_WORK_PRIORITY_PERIODIC_SCAN = 3,
};
enum wiphy_state_watch_event {
WIPHY_STATE_WATCH_EVENT_POWERED,