mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 04:19:25 +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;
|
const struct wiphy_radio_work_item_ops *ops;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define WIPHY_WORK_PRIORITY_FRAME 0
|
enum {
|
||||||
#define WIPHY_WORK_PRIORITY_OFFCHANNEL 0
|
WIPHY_WORK_PRIORITY_FRAME = 0,
|
||||||
#define WIPHY_WORK_PRIORITY_CONNECT 1
|
WIPHY_WORK_PRIORITY_OFFCHANNEL = 0,
|
||||||
#define WIPHY_WORK_PRIORITY_SCAN 2
|
WIPHY_WORK_PRIORITY_CONNECT = 1,
|
||||||
#define WIPHY_WORK_PRIORITY_PERIODIC_SCAN 3
|
WIPHY_WORK_PRIORITY_SCAN = 2,
|
||||||
|
WIPHY_WORK_PRIORITY_PERIODIC_SCAN = 3,
|
||||||
|
};
|
||||||
|
|
||||||
enum wiphy_state_watch_event {
|
enum wiphy_state_watch_event {
|
||||||
WIPHY_STATE_WATCH_EVENT_POWERED,
|
WIPHY_STATE_WATCH_EVENT_POWERED,
|
||||||
|
Loading…
Reference in New Issue
Block a user