3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-03 01:48:49 +02:00

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

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,