[PATCH] rt2x00: Reorganize rt2x00dev->flags
The rt2x00dev->flags has become a chaos over time, this will reorganize the flags by renaming, deleting, adding and properly implement the flags. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
David S. Miller

parent
12dadb9009
commit
066cb637b1
@@ -493,24 +493,21 @@ struct rt2x00_dev {
|
||||
* of the device capabilities are stored.
|
||||
*/
|
||||
unsigned long flags;
|
||||
#define DEVICE_ENABLED_RADIO 1
|
||||
#define DEVICE_ENABLED_RADIO_HW 2
|
||||
#define DEVICE_PRESENT 1
|
||||
#define DEVICE_REGISTERED_HW 2
|
||||
#define DEVICE_INITIALIZED 3
|
||||
#define DEVICE_INITIALIZED_HW 4
|
||||
#define REQUIRE_FIRMWARE 5
|
||||
/* Hole: Add new Flag here */
|
||||
#define INTERFACE_RESUME 8
|
||||
#define INTERFACE_ENABLED 9
|
||||
/* Hole: Add new Flag here */
|
||||
#define REQUIRE_BEACON_RING 11
|
||||
#define DEVICE_SUPPORT_HW_BUTTON 12
|
||||
#define CONFIG_FRAME_TYPE 13
|
||||
#define CONFIG_RF_SEQUENCE 14
|
||||
/* Hole: Add new Flag here */
|
||||
#define CONFIG_EXTERNAL_LNA_A 16
|
||||
#define CONFIG_EXTERNAL_LNA_BG 17
|
||||
#define CONFIG_DOUBLE_ANTENNA 18
|
||||
#define CONFIG_DISABLE_LINK_TUNING 19
|
||||
#define DEVICE_STARTED 4
|
||||
#define DEVICE_ENABLED_RADIO 5
|
||||
#define DEVICE_ENABLED_RADIO_HW 6
|
||||
#define DRIVER_REQUIRE_FIRMWARE 7
|
||||
#define DRIVER_REQUIRE_BEACON_RING 8
|
||||
#define CONFIG_SUPPORT_HW_BUTTON 9
|
||||
#define CONFIG_FRAME_TYPE 10
|
||||
#define CONFIG_RF_SEQUENCE 11
|
||||
#define CONFIG_EXTERNAL_LNA_A 12
|
||||
#define CONFIG_EXTERNAL_LNA_BG 13
|
||||
#define CONFIG_DOUBLE_ANTENNA 14
|
||||
#define CONFIG_DISABLE_LINK_TUNING 15
|
||||
|
||||
/*
|
||||
* Chipset identification.
|
||||
|
Reference in New Issue
Block a user