mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
wiphy: Use anonymous enum in favor of #defines
This commit is contained in:
parent
86f34a394b
commit
a8f3098115
12
src/wiphy.h
12
src/wiphy.h
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user