Commit bdc632bc authored by Larry Finger's avatar Larry Finger

staging: rtl8192e: Convert typedef DCMD_TXCMD_T to struct dcmd_txcmd

Remove typedef from struct.
Rename struct.
Rename uses.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent 7204b51e
...@@ -507,7 +507,7 @@ static void dm_TXPowerTrackingCallback_TSSI(struct net_device * dev) ...@@ -507,7 +507,7 @@ static void dm_TXPowerTrackingCallback_TSSI(struct net_device * dev)
{ {
struct r8192_priv *priv = rtllib_priv(dev); struct r8192_priv *priv = rtllib_priv(dev);
bool bHighpowerstate, viviflag = false; bool bHighpowerstate, viviflag = false;
DCMD_TXCMD_T tx_cmd; struct dcmd_txcmd tx_cmd;
u8 powerlevelOFDM24G; u8 powerlevelOFDM24G;
int i =0, j = 0, k = 0; int i =0, j = 0, k = 0;
u8 RF_Type, tmp_report[5]={0, 0, 0, 0, 0}; u8 RF_Type, tmp_report[5]={0, 0, 0, 0, 0};
...@@ -534,7 +534,7 @@ static void dm_TXPowerTrackingCallback_TSSI(struct net_device * dev) ...@@ -534,7 +534,7 @@ static void dm_TXPowerTrackingCallback_TSSI(struct net_device * dev)
tx_cmd.Op = TXCMD_SET_TX_PWR_TRACKING; tx_cmd.Op = TXCMD_SET_TX_PWR_TRACKING;
tx_cmd.Length = 4; tx_cmd.Length = 4;
tx_cmd.Value = Value; tx_cmd.Value = Value;
cmpk_message_handle_tx(dev, (u8*)&tx_cmd, DESC_PACKET_TYPE_INIT, sizeof(DCMD_TXCMD_T)); cmpk_message_handle_tx(dev, (u8*)&tx_cmd, DESC_PACKET_TYPE_INIT, sizeof(struct dcmd_txcmd));
mdelay(1); mdelay(1);
for (i = 0;i <= 30; i++) for (i = 0;i <= 30; i++)
{ {
...@@ -3456,7 +3456,7 @@ static void dm_check_txrateandretrycount(struct net_device * dev) ...@@ -3456,7 +3456,7 @@ static void dm_check_txrateandretrycount(struct net_device * dev)
static void dm_send_rssi_tofw(struct net_device *dev) static void dm_send_rssi_tofw(struct net_device *dev)
{ {
DCMD_TXCMD_T tx_cmd; struct dcmd_txcmd tx_cmd;
struct r8192_priv *priv = rtllib_priv(dev); struct r8192_priv *priv = rtllib_priv(dev);
write_nic_byte(dev, DRIVER_RSSI, (u8)priv->undecorated_smoothed_pwdb); write_nic_byte(dev, DRIVER_RSSI, (u8)priv->undecorated_smoothed_pwdb);
...@@ -3466,7 +3466,7 @@ static void dm_send_rssi_tofw(struct net_device *dev) ...@@ -3466,7 +3466,7 @@ static void dm_send_rssi_tofw(struct net_device *dev)
tx_cmd.Value = priv->undecorated_smoothed_pwdb; tx_cmd.Value = priv->undecorated_smoothed_pwdb;
cmpk_message_handle_tx(dev, (u8*)&tx_cmd, cmpk_message_handle_tx(dev, (u8*)&tx_cmd,
DESC_PACKET_TYPE_INIT, sizeof(DCMD_TXCMD_T)); DESC_PACKET_TYPE_INIT, sizeof(struct dcmd_txcmd));
} }
/*---------------------------Define function prototype------------------------*/ /*---------------------------Define function prototype------------------------*/
...@@ -249,12 +249,11 @@ typedef enum tag_DM_DbgMode_Definition ...@@ -249,12 +249,11 @@ typedef enum tag_DM_DbgMode_Definition
DM_DBG_MAX DM_DBG_MAX
}DM_DBG_E; }DM_DBG_E;
typedef struct tag_Tx_Config_Cmd_Format struct dcmd_txcmd {
{
u32 Op; u32 Op;
u32 Length; u32 Length;
u32 Value; u32 Value;
}DCMD_TXCMD_T, *PDCMD_TXCMD_T; };//, *struct dcmd_txcmd *;
/*------------------------------Define structure----------------------------*/ /*------------------------------Define structure----------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment