staging: rtl8192e: sequence_control union cleanups
PATCH 2/3 staging: rtl8192e: rename FragNum to frag_num in sequence_control union
In reply to William DurandFixes a checkpatch CHECK message.
--- drivers/staging/rtl8192e/rtl819x_BA.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl819x_BA.h +1 -1
@@ -22,7 +22,7 @@union sequence_control {u16 short_data;struct { -u16 FragNum:4 ; +u16 frag_num:4 ;u16 SeqNum:12 ; } field; };
--
2.17.1
cover staging: rtl8192e: sequence_control union cleanups
This patchset fixes the checkpatch issues related to the sequence_control union defined in rtl8192e/rtl819x_BA.h (avoid camelcase).
William Durand (3):
staging: rtl8192e: rename ShortData to short_data in sequence_control
union
staging: rtl8192e: rename FragNum to frag_num in sequence_control
union
staging: rtl8192e: rename SeqNum to seq_num in sequence_control union
drivers/staging/rtl8192e/rtl819x_BA.h | 6 +++--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
--
2.17.1
PATCH 1/3 staging: rtl8192e: rename ShortData to short_data in sequence_control union
Fixes a checkpatch CHECK message.
--- drivers/staging/rtl8192e/rtl819x_BA.h | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_BA.h +1 -1
@@ -20,7 +20,7 @@#define DELBA_REASON_UNKNOWN_BA 38#define DELBA_REASON_TIMEOUT 39union sequence_control { -u16 ShortData; +u16 short_data;struct {u16 FragNum:4 ;u16 SeqNum:12 ;
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -61,7 +61,7 @@ void ResetBaEntry(struct ba_record *pBA) pBA->BaParamSet.shortData =0 ; pBA->BaTimeoutValue =0 ; pBA->DialogToken =0 ; - pBA->BaStartSeqCtrl.ShortData =0 ; + pBA->BaStartSeqCtrl.short_data =0 ; } static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst, struct ba_record *pBA,
--
2.17.1
PATCH 3/3 staging: rtl8192e: rename SeqNum to seq_num in sequence_control union
In reply to William DurandFixes a checkpatch CHECK message.
--- drivers/staging/rtl8192e/rtl819x_BA.h | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_BA.h +1 -1
@@ -23,7 +23,7 @@ union sequence_control {u16 short_data;struct {u16 frag_num:4 ; -u16 SeqNum:12 ; +u16 seq_num:12 ; } field; };
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -489,7 +489,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; pBA->BaParamSet.field.BufferSize =32 ; pBA->BaTimeoutValue =0 ; - pBA->BaStartSeqCtrl.field.SeqNum = (pTS->TxCurSeq +3 ) %4096 ; + pBA->BaStartSeqCtrl.field.seq_num = (pTS->TxCurSeq +3 ) %4096 ;ActivateBAEntry (ieee, pBA,BA_SETUP_TIMEOUT );
drivers/staging/rtl8192e/rtllib_tx.c +1 -1
@@ -308,7 +308,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, } goto FORCED_AGG_SETTING; }else if (!pTxTs->bUsingBa) { -if (SN_LESS (pTxTs->TxAdmittedBARecord.BaStartSeqCtrl.field.SeqNum, +if (SN_LESS (pTxTs->TxAdmittedBARecord.BaStartSeqCtrl.field.seq_num, (pTxTs->TxCurSeq+1 )%4096 )) pTxTs->bUsingBa = true;else
--
2.17.1