Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef WIRELESS_MODE to enum wireless_mode
Browse files Browse the repository at this point in the history
Remove typedef from enum.
Rename enum.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent e608063 commit dc20a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/r8192E_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc)
void
ActUpdateChannelAccessSetting(
struct net_device* dev,
WIRELESS_MODE WirelessMode,
enum wireless_mode WirelessMode,
struct channel_access_setting *ChnlAccessSetting
)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ MgntActSet_RF_State(
void
ActUpdateChannelAccessSetting(
struct net_device* dev,
WIRELESS_MODE WirelessMode,
enum wireless_mode WirelessMode,
struct channel_access_setting *ChnlAccessSetting
);

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -646,15 +646,15 @@ enum rt_rf_type_def {
RF_819X_MAX_TYPE
};

typedef enum _WIRELESS_MODE {
enum wireless_mode {
WIRELESS_MODE_UNKNOWN = 0x00,
WIRELESS_MODE_A = 0x01,
WIRELESS_MODE_B = 0x02,
WIRELESS_MODE_G = 0x04,
WIRELESS_MODE_AUTO = 0x08,
WIRELESS_MODE_N_24G = 0x10,
WIRELESS_MODE_N_5G = 0x20
} WIRELESS_MODE;
};

typedef enum _WIRELESS_NETWORK_TYPE{
WIRELESS_11B = 1,
Expand Down

0 comments on commit dc20a32

Please sign in to comment.