Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef FALSE_ALARM_STATISTICS to struct f…
Browse files Browse the repository at this point in the history
…alse_alarm_stats

Remove typedef from struct.
Rename struct.
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 d6a15cb commit 38b1f67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtl819x_HT.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,15 +366,15 @@ struct mimo_evm {
u32 EVM2;
};//, *struct mimo_evm *;

typedef struct _FALSE_ALARM_STATISTICS{
struct false_alarm_stats {
u32 Cnt_Parity_Fail;
u32 Cnt_Rate_Illegal;
u32 Cnt_Crc8_fail;
u32 Cnt_Mcs_fail;
u32 Cnt_Ofdm_fail;
u32 Cnt_Cck_fail;
u32 Cnt_all;
}FALSE_ALARM_STATISTICS, *PFALSE_ALARM_STATISTICS;
};//, *struct false_alarm_stats *;


extern u8 MCS_FILTER_ALL[16];
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 @@ -882,7 +882,7 @@ typedef struct r8192_priv
u8 DynamicTxHighPowerLvl;
u8 LastDTPLvl;
u32 CurrentRATR0;
FALSE_ALARM_STATISTICS FalseAlmCnt;
struct false_alarm_stats FalseAlmCnt;

u8 DMFlag;
u8 DM_Type;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ void dm_FalseAlarmCounterStatistics(struct net_device *dev)
{
struct r8192_priv *priv = rtllib_priv(dev);
u32 ret_value;
PFALSE_ALARM_STATISTICS FalseAlmCnt = &(priv->FalseAlmCnt);
struct false_alarm_stats *FalseAlmCnt = &(priv->FalseAlmCnt);

ret_value = rtl8192_QueryBBReg(dev, rOFDM_PHYCounter1, bMaskDWord);
FalseAlmCnt->Cnt_Parity_Fail = ((ret_value&0xffff0000)>>16);
Expand Down

0 comments on commit 38b1f67

Please sign in to comment.