rx_ts_record struct cleanups
PATCH 2/9 staging: rtl8192e: rename RxIndicateSeq to rx_indicate_seq in rx_ts_record struct
In reply to William DurandRename RxIndicateSeq to rx_indicate_seq to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 16 ++++----- drivers/staging/rtl8192e/rtllib_rx.c | 42 +++++++++++------------ 3 files changed, 30 insertions(+), 30 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -43,7 +43,7 @@ struct tx_ts_record {struct rx_ts_record {struct ts_common_info ts_common_info; -u16 RxIndicateSeq; +u16 rx_indicate_seq;u16 RxTimeoutIndicateSeq;struct list_head RxPendingPktList;struct timer_list RxPktPendingTimer;
drivers/staging/rtl8192e/rtl819x_TSProc.c +8 -8
@@ -36,18 +36,18 @@ static void RxPktPendingTimeout(struct timer_list *t)list_entry (pRxTs->RxPendingPktList.prev, struct rx_reorder_entry, List);if (index ==0 ) - pRxTs->RxIndicateSeq = pReorderEntry->SeqNum; + pRxTs->rx_indicate_seq = pReorderEntry->SeqNum;if (SN_LESS (pReorderEntry->SeqNum, - pRxTs->RxIndicateSeq) || + pRxTs->rx_indicate_seq) ||SN_EQUAL (pReorderEntry->SeqNum, - pRxTs->RxIndicateSeq)) { + pRxTs->rx_indicate_seq)) {list_del_init (&pReorderEntry->List);if (SN_EQUAL (pReorderEntry->SeqNum, - pRxTs->RxIndicateSeq)) - pRxTs->RxIndicateSeq = - (pRxTs->RxIndicateSeq +1 ) %4096 ; + pRxTs->rx_indicate_seq)) + pRxTs->rx_indicate_seq = + (pRxTs->rx_indicate_seq +1 ) %4096 ; netdev_dbg(ieee->dev, "%s(): Indicate SeqNum: %d\n",
@@ -81,7 +81,7 @@ static void RxPktPendingTimeout(struct timer_list *t) }if (bPktInBuf && (pRxTs->RxTimeoutIndicateSeq ==0xffff )) { - pRxTs->RxTimeoutIndicateSeq = pRxTs->RxIndicateSeq; + pRxTs->RxTimeoutIndicateSeq = pRxTs->rx_indicate_seq;mod_timer (&pRxTs->RxPktPendingTimer, jiffies +msecs_to_jiffies (ieee->pHTInfo->RxReorderPendingTime) );
@@ -124,7 +124,7 @@ static void ResetTxTsEntry(struct tx_ts_record *pTS)static void ResetRxTsEntry (struct rx_ts_record *pTS) {ResetTsCommonInfo (&pTS->ts_common_info); - pTS->RxIndicateSeq =0xffff ; + pTS->rx_indicate_seq =0xffff ; pTS->RxTimeoutIndicateSeq =0xffff ;ResetBaEntry (&pTS->RxAdmittedBARecord); }
drivers/staging/rtl8192e/rtllib_rx.c +21 -21
111 lines not on this page · raw message
--
2.30.1
PATCH 4/9 staging: rtl8192e: rename RxPendingPktList to rx_pending_pkt_list in rx_ts_record struct
In reply to William DurandRename RxPendingPktList to rx_pending_pkt_list to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -45,7 +45,7 @@ struct rx_ts_record {struct ts_common_info ts_common_info;u16 rx_indicate_seq;u16 rx_timeout_indicate_seq; -struct list_head RxPendingPktList; +struct list_head rx_pending_pkt_list;struct timer_list RxPktPendingTimer;struct ba_record RxAdmittedBARecord;u16 RxLastSeqNum;
drivers/staging/rtl8192e/rtl819x_TSProc.c +5 -5
@@ -31,9 +31,9 @@ static void RxPktPendingTimeout(struct timer_list *t)spin_lock_irqsave (&(ieee->reorder_spinlock), flags);if (pRxTs->rx_timeout_indicate_seq !=0xffff ) { -while (!list_empty (&pRxTs->RxPendingPktList)) { +while (!list_empty (&pRxTs->rx_pending_pkt_list)) { pReorderEntry = (struct rx_reorder_entry *) -list_entry (pRxTs->RxPendingPktList.prev, +list_entry (pRxTs->rx_pending_pkt_list.prev, struct rx_reorder_entry, List);if (index ==0 ) pRxTs->rx_indicate_seq = pReorderEntry->SeqNum;
@@ -167,7 +167,7 @@ void TSInitialize(struct rtllib_device *ieee)INIT_LIST_HEAD (&ieee->Rx_TS_Unused_List);for (count =0 ; count <TOTAL_TS_NUM ; count++) { pRxTS->num = count; -INIT_LIST_HEAD (&pRxTS->RxPendingPktList); +INIT_LIST_HEAD (&pRxTS->rx_pending_pkt_list);timer_setup (&pRxTS->ts_common_info.SetupTimer, TsSetupTimeOut,0 );
@@ -408,9 +408,9 @@ static void RemoveTsEntry(struct rtllib_device *ieee,if (timer_pending (&pRxTS->RxPktPendingTimer))del_timer_sync (&pRxTS->RxPktPendingTimer); -while (!list_empty (&pRxTS->RxPendingPktList)) { +while (!list_empty (&pRxTS->rx_pending_pkt_list)) { pRxReorderEntry = (struct rx_reorder_entry *) -list_entry (pRxTS->RxPendingPktList.prev, +list_entry (pRxTS->rx_pending_pkt_list.prev, struct rx_reorder_entry, List);netdev_dbg (ieee->dev,"%s(): Delete SeqNum %d!\n" , __func__, pRxReorderEntry->SeqNum);
drivers/staging/rtl8192e/rtllib_rx.c +6 -6
@@ -449,9 +449,9 @@ static int is_duplicate_packet(struct rtllib_device *ieee,static bool AddReorderEntry (struct rx_ts_record *pTS,struct rx_reorder_entry *pReorderEntry) { -struct list_head *pList = &pTS->RxPendingPktList; +struct list_head *pList = &pTS->rx_pending_pkt_list; -while (pList->next != &pTS->RxPendingPktList) { +while (pList->next != &pTS->rx_pending_pkt_list) {if (SN_LESS (pReorderEntry->SeqNum, ((struct rx_reorder_entry *) list_entry(pList->next, struct rx_reorder_entry, List))->SeqNum))
@@ -537,7 +537,7 @@ void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,u8 RfdCnt =0 ;del_timer_sync (&pTS->RxPktPendingTimer); -while (!list_empty (&pTS->RxPendingPktList)) { +while (!list_empty (&pTS->rx_pending_pkt_list)) {if (RfdCnt >=REORDER_WIN_SIZE ) { netdev_info(ieee->dev, "-------------->%s() error! RfdCnt >= REORDER_WIN_SIZE\n",
@@ -546,7 +546,7 @@ void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee, } pRxReorderEntry = (struct rx_reorder_entry *) -list_entry (pTS->RxPendingPktList.prev, +list_entry (pTS->rx_pending_pkt_list.prev, struct rx_reorder_entry, List);netdev_dbg (ieee->dev,"%s(): Indicate SeqNum %d!\n" , __func__, pRxReorderEntry->SeqNum);
@@ -693,12 +693,12 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee, }/* Check if there is any packet need indicate.*/ -while (!list_empty (&pTS->RxPendingPktList)) { +while (!list_empty (&pTS->rx_pending_pkt_list)) {netdev_dbg (ieee->dev,"%s(): start RREORDER indicate\n" , __func__); pReorderEntry = (struct rx_reorder_entry *) -list_entry (pTS->RxPendingPktList.prev, +list_entry (pTS->rx_pending_pkt_list.prev, struct rx_reorder_entry, List); if (SN_LESS(pReorderEntry->SeqNum, pTS->rx_indicate_seq) ||
--
2.30.1
cover rx_ts_record struct cleanups
This patchset fixes the checkpatch issues related to the rx_ts_record struct defined in rtl8192e/rtl819x_TS.h (avoid camelcase). The last patch reformats the struct a bit to be more consistent with structures defined in other header files.
William Durand (9):
staging: rtl8192e: rename TsCommonInfo to ts_common_info in rx_ts_record struct
staging: rtl8192e: rename RxIndicateSeq to rx_indicate_seq in rx_ts_record struct
staging: rtl8192e: rename RxTimeoutIndicateSeq to rx_timeout_indicate_seq in rx_ts_record struct
staging: rtl8192e: rename RxPendingPktList to rx_pending_pkt_list in rx_ts_record struct
staging: rtl8192e: rename RxPktPendingTimer to rx_pkt_pending_timer in rx_ts_record struct
staging: rtl8192e: rename RxAdmittedBARecord to rx_admitted_ba_record in rx_ts_record struct
staging: rtl8192e: rename RxLastSeqNum to rx_last_seq_num in rx_ts_record struct
staging: rtl8192e: rename RxLastFragNum to rx_last_frag_num in rx_ts_record struct
staging: rtl8192e: reformat rx_ts_record struct
drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++-- drivers/staging/rtl8192e/rtl819x_TS.h | 18 +++--- drivers/staging/rtl8192e/rtl819x_TSProc.c | 58 +++++++++--------- drivers/staging/rtl8192e/rtllib_rx.c | 74 +++++++++++------------ 4 files changed, 81 insertions(+), 81 deletions(-)
--
2.30.1
PATCH 1/9 staging: rtl8192e: rename TsCommonInfo to ts_common_info in rx_ts_record struct
Rename TsCommonInfo to ts_common_info to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -549,7 +549,7 @@ void RxBaInactTimeout(struct timer_list *t) RxTsRecord[pRxTs->num]);RxTsDeleteBA (ieee, pRxTs); -rtllib_send_DELBA (ieee, pRxTs->TsCommonInfo.Addr, +rtllib_send_DELBA (ieee, pRxTs->ts_common_info.Addr, &pRxTs->RxAdmittedBARecord,RX_DIR ,DELBA_REASON_TIMEOUT ); }
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -42,7 +42,7 @@ struct tx_ts_record { };struct rx_ts_record { -struct ts_common_info TsCommonInfo; +struct ts_common_info ts_common_info;u16 RxIndicateSeq;u16 RxTimeoutIndicateSeq;struct list_head RxPendingPktList;
drivers/staging/rtl8192e/rtl819x_TSProc.c +5 -5
@@ -123,7 +123,7 @@ static void ResetTxTsEntry(struct tx_ts_record *pTS)static void ResetRxTsEntry (struct rx_ts_record *pTS) { -ResetTsCommonInfo (&pTS->TsCommonInfo); +ResetTsCommonInfo (&pTS->ts_common_info); pTS->RxIndicateSeq =0xffff ; pTS->RxTimeoutIndicateSeq =0xffff ;ResetBaEntry (&pTS->RxAdmittedBARecord);
@@ -169,10 +169,10 @@ void TSInitialize(struct rtllib_device *ieee) pRxTS->num = count;INIT_LIST_HEAD (&pRxTS->RxPendingPktList); -timer_setup (&pRxTS->TsCommonInfo.SetupTimer, TsSetupTimeOut, +timer_setup (&pRxTS->ts_common_info.SetupTimer, TsSetupTimeOut,0 ); -timer_setup (&pRxTS->TsCommonInfo.InactTimer, TsInactTimeout, +timer_setup (&pRxTS->ts_common_info.InactTimer, TsInactTimeout,0 ); timer_setup(&pRxTS->RxAdmittedBARecord.timer,
@@ -181,7 +181,7 @@ void TSInitialize(struct rtllib_device *ieee)timer_setup (&pRxTS->RxPktPendingTimer, RxPktPendingTimeout,0 );ResetRxTsEntry (pRxTS); -list_add_tail (&pRxTS->TsCommonInfo.List, +list_add_tail (&pRxTS->ts_common_info.List, &ieee->Rx_TS_Unused_List); pRxTS++; }
@@ -364,7 +364,7 @@ bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS,struct rx_ts_record *tmp =container_of (*ppTS, struct rx_ts_record, - TsCommonInfo); + ts_common_info);ResetRxTsEntry (tmp); }
--
2.30.1
PATCH 3/9 staging: rtl8192e: rename RxTimeoutIndicateSeq to rx_timeout_indicate_seq in rx_ts_record struct
In reply to William DurandRename RxTimeoutIndicateSeq to rx_timeout_indicate_seq to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -44,7 +44,7 @@ struct tx_ts_record {struct rx_ts_record {struct ts_common_info ts_common_info;u16 rx_indicate_seq; -u16 RxTimeoutIndicateSeq; +u16 rx_timeout_indicate_seq;struct list_head RxPendingPktList;struct timer_list RxPktPendingTimer;struct ba_record RxAdmittedBARecord;
drivers/staging/rtl8192e/rtl819x_TSProc.c +5 -5
@@ -30,7 +30,7 @@ static void RxPktPendingTimeout(struct timer_list *t)bool bPktInBuf = false;spin_lock_irqsave (&(ieee->reorder_spinlock), flags); -if (pRxTs->RxTimeoutIndicateSeq !=0xffff ) { +if (pRxTs->rx_timeout_indicate_seq !=0xffff ) {while (!list_empty (&pRxTs->RxPendingPktList)) { pReorderEntry = (struct rx_reorder_entry *) list_entry(pRxTs->RxPendingPktList.prev,
@@ -66,7 +66,7 @@ static void RxPktPendingTimeout(struct timer_list *t) }if (index >0 ) { - pRxTs->RxTimeoutIndicateSeq =0xffff ; + pRxTs->rx_timeout_indicate_seq =0xffff ;if (index >REORDER_WIN_SIZE ) { netdev_warn(ieee->dev,
@@ -80,8 +80,8 @@ static void RxPktPendingTimeout(struct timer_list *t) bPktInBuf = false; } -if (bPktInBuf && (pRxTs->RxTimeoutIndicateSeq ==0xffff )) { - pRxTs->RxTimeoutIndicateSeq = pRxTs->rx_indicate_seq; +if (bPktInBuf && (pRxTs->rx_timeout_indicate_seq ==0xffff )) { + pRxTs->rx_timeout_indicate_seq = pRxTs->rx_indicate_seq;mod_timer (&pRxTs->RxPktPendingTimer, jiffies +msecs_to_jiffies (ieee->pHTInfo->RxReorderPendingTime) );
@@ -125,7 +125,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS) {ResetTsCommonInfo (&pTS->ts_common_info); pTS->rx_indicate_seq =0xffff ; - pTS->RxTimeoutIndicateSeq =0xffff ; + pTS->rx_timeout_indicate_seq =0xffff ;ResetBaEntry (&pTS->RxAdmittedBARecord); }
drivers/staging/rtl8192e/rtllib_rx.c +3 -3
@@ -737,7 +737,7 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,if (index >0 ) {if (timer_pending (&pTS->RxPktPendingTimer))del_timer_sync (&pTS->RxPktPendingTimer); - pTS->RxTimeoutIndicateSeq =0xffff ; + pTS->rx_timeout_indicate_seq =0xffff ;if (index >REORDER_WIN_SIZE ) { netdev_err(ieee->dev,
@@ -751,9 +751,9 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee, bPktInBuf = false; } -if (bPktInBuf && pTS->RxTimeoutIndicateSeq ==0xffff ) { +if (bPktInBuf && pTS->rx_timeout_indicate_seq ==0xffff ) {netdev_dbg (ieee->dev,"%s(): SET rx timeout timer\n" , __func__); - pTS->RxTimeoutIndicateSeq = pTS->rx_indicate_seq; + pTS->rx_timeout_indicate_seq = pTS->rx_indicate_seq;mod_timer (&pTS->RxPktPendingTimer, jiffies +msecs_to_jiffies (pHTInfo->RxReorderPendingTime)); }
--
2.30.1
PATCH 5/9 staging: rtl8192e: rename RxPktPendingTimer to rx_pkt_pending_timer in rx_ts_record struct
In reply to William DurandRename RxPktPendingTimer to rx_pkt_pending_timer to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 10 +++++----- drivers/staging/rtl8192e/rtllib_rx.c | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -46,7 +46,7 @@ struct rx_ts_record {u16 rx_indicate_seq;u16 rx_timeout_indicate_seq;struct list_head rx_pending_pkt_list; -struct timer_list RxPktPendingTimer; +struct timer_list rx_pkt_pending_timer;struct ba_record RxAdmittedBARecord;u16 RxLastSeqNum;u8 RxLastFragNum;
drivers/staging/rtl8192e/rtl819x_TSProc.c +5 -5
@@ -19,7 +19,7 @@ static void TsInactTimeout(struct timer_list *unused)static void RxPktPendingTimeout (struct timer_list *t) {struct rx_ts_record *pRxTs =from_timer (pRxTs, t, - RxPktPendingTimer); + rx_pkt_pending_timer); struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]);
@@ -82,7 +82,7 @@ static void RxPktPendingTimeout(struct timer_list *t)if (bPktInBuf && (pRxTs->rx_timeout_indicate_seq ==0xffff )) { pRxTs->rx_timeout_indicate_seq = pRxTs->rx_indicate_seq; -mod_timer (&pRxTs->RxPktPendingTimer, jiffies + +mod_timer (&pRxTs->rx_pkt_pending_timer, jiffies +msecs_to_jiffies (ieee->pHTInfo->RxReorderPendingTime) ); }
@@ -178,7 +178,7 @@ void TSInitialize(struct rtllib_device *ieee)timer_setup (&pRxTS->RxAdmittedBARecord.timer, RxBaInactTimeout,0 ); -timer_setup (&pRxTS->RxPktPendingTimer, RxPktPendingTimeout,0 ); +timer_setup (&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout,0 );ResetRxTsEntry (pRxTS); list_add_tail(&pRxTS->ts_common_info.List,
@@ -405,8 +405,8 @@ static void RemoveTsEntry(struct rtllib_device *ieee,struct rx_reorder_entry *pRxReorderEntry;struct rx_ts_record *pRxTS = (struct rx_ts_record *)pTs; -if (timer_pending (&pRxTS->RxPktPendingTimer)) -del_timer_sync (&pRxTS->RxPktPendingTimer); +if (timer_pending (&pRxTS->rx_pkt_pending_timer)) +del_timer_sync (&pRxTS->rx_pkt_pending_timer);while (!list_empty (&pRxTS->rx_pending_pkt_list)) { pRxReorderEntry = (struct rx_reorder_entry *)
drivers/staging/rtl8192e/rtllib_rx.c +4 -4
@@ -536,7 +536,7 @@ void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,struct rx_reorder_entry *pRxReorderEntry;u8 RfdCnt =0 ; -del_timer_sync (&pTS->RxPktPendingTimer); +del_timer_sync (&pTS->rx_pkt_pending_timer);while (!list_empty (&pTS->rx_pending_pkt_list)) {if (RfdCnt >=REORDER_WIN_SIZE ) { netdev_info(ieee->dev,
@@ -735,8 +735,8 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,* Rx buffering. */ if (index >0 ) { -if (timer_pending (&pTS->RxPktPendingTimer)) -del_timer_sync (&pTS->RxPktPendingTimer); +if (timer_pending (&pTS->rx_pkt_pending_timer)) +del_timer_sync (&pTS->rx_pkt_pending_timer); pTS->rx_timeout_indicate_seq =0xffff ;if (index >REORDER_WIN_SIZE ) {
@@ -754,7 +754,7 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,if (bPktInBuf && pTS->rx_timeout_indicate_seq ==0xffff ) {netdev_dbg (ieee->dev,"%s(): SET rx timeout timer\n" , __func__); pTS->rx_timeout_indicate_seq = pTS->rx_indicate_seq; -mod_timer (&pTS->RxPktPendingTimer, jiffies + +mod_timer (&pTS->rx_pkt_pending_timer, jiffies +msecs_to_jiffies (pHTInfo->RxReorderPendingTime)); }spin_unlock_irqrestore (&(ieee->reorder_spinlock), flags);
--
2.30.1
PATCH 8/9 staging: rtl8192e: rename RxLastFragNum to rx_last_frag_num in rx_ts_record struct
In reply to William DurandRename RxLastFragNum to rx_last_frag_num to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -49,7 +49,7 @@ struct rx_ts_record {struct timer_list rx_pkt_pending_timer;struct ba_record rx_admitted_ba_record;u16 rx_last_seq_num; -u8 RxLastFragNum; +u8 rx_last_frag_num;u8 num; };
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -938,10 +938,10 @@ static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,if (GetTs (ieee, (struct ts_common_info **) &pRxTS, hdr->addr2, (u8 )Frame_QoSTID ((u8 *)(skb->data)),RX_DIR , true)) { -if ((fc & (1 <<11 )) && (frag == pRxTS->RxLastFragNum) && +if ((fc & (1 <<11 )) && (frag == pRxTS->rx_last_frag_num) && (WLAN_GET_SEQ_SEQ (sc) == pRxTS->rx_last_seq_num))return -1 ; - pRxTS->RxLastFragNum = frag; + pRxTS->rx_last_frag_num = frag; pRxTS->rx_last_seq_num =WLAN_GET_SEQ_SEQ (sc); }else { netdev_warn(ieee->dev, "%s(): No TS! Skip the check!\n",
--
2.30.1
PATCH 6/9 staging: rtl8192e: rename RxAdmittedBARecord to rx_admitted_ba_record in rx_ts_record struct
In reply to William DurandRename RxAdmittedBARecord to rx_admitted_ba_record to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 10 +++++----- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +5 -5
@@ -44,7 +44,7 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)static u8 RxTsDeleteBA (struct rtllib_device *ieee,struct rx_ts_record *pRxTs) { -struct ba_record *pBa = &pRxTs->RxAdmittedBARecord; +struct ba_record *pBa = &pRxTs->rx_admitted_ba_record;u8 bSendDELBA = false;if (pBa->b_valid) {
@@ -265,7 +265,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)netdev_warn (ieee->dev,"%s(): can't get TS\n" , __func__); goto OnADDBAReq_Fail; } - pBA = &pTS->RxAdmittedBARecord; + pBA = &pTS->rx_admitted_ba_record;if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { rc =ADDBA_STATUS_INVALID_PARAM ;
@@ -514,7 +514,7 @@ void TsInitDelBA(struct rtllib_device *ieee, (struct rx_ts_record *)pTsCommonInfo;if (RxTsDeleteBA (ieee, pRxTs))rtllib_send_DELBA (ieee, pTsCommonInfo->Addr, - &pRxTs->RxAdmittedBARecord, + &pRxTs->rx_admitted_ba_record, TxRxSelect,DELBA_REASON_END_BA ); } }
@@ -544,12 +544,12 @@ void TxBaInactTimeout(struct timer_list *t)void RxBaInactTimeout (struct timer_list *t) {struct rx_ts_record *pRxTs =from_timer (pRxTs, t, - RxAdmittedBARecord.timer); + rx_admitted_ba_record.timer); struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]);RxTsDeleteBA (ieee, pRxTs);rtllib_send_DELBA (ieee, pRxTs->ts_common_info.Addr, - &pRxTs->RxAdmittedBARecord,RX_DIR , + &pRxTs->rx_admitted_ba_record,RX_DIR ,DELBA_REASON_TIMEOUT ); }
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -47,7 +47,7 @@ struct rx_ts_record {u16 rx_timeout_indicate_seq;struct list_head rx_pending_pkt_list;struct timer_list rx_pkt_pending_timer; -struct ba_record RxAdmittedBARecord; +struct ba_record rx_admitted_ba_record;u16 RxLastSeqNum;u8 RxLastFragNum;u8 num;
drivers/staging/rtl8192e/rtl819x_TSProc.c +2 -2
@@ -126,7 +126,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS)ResetTsCommonInfo (&pTS->ts_common_info); pTS->rx_indicate_seq =0xffff ; pTS->rx_timeout_indicate_seq =0xffff ; -ResetBaEntry (&pTS->RxAdmittedBARecord); +ResetBaEntry (&pTS->rx_admitted_ba_record); }void TSInitialize (struct rtllib_device *ieee)
@@ -175,7 +175,7 @@ void TSInitialize(struct rtllib_device *ieee)timer_setup (&pRxTS->ts_common_info.InactTimer, TsInactTimeout,0 ); -timer_setup (&pRxTS->RxAdmittedBARecord.timer, +timer_setup (&pRxTS->rx_admitted_ba_record.timer, RxBaInactTimeout,0 );timer_setup (&pRxTS->rx_pkt_pending_timer, RxPktPendingTimeout,0 );
--
2.30.1
PATCH 9/9 staging: rtl8192e: reformat rx_ts_record struct
In reply to William DurandThis change uses a space instead of tabs between the type and name of each member of the struct.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +7 -7
@@ -43,14 +43,14 @@ struct tx_ts_record {struct rx_ts_record {struct ts_common_info ts_common_info; -u16 rx_indicate_seq; -u16 rx_timeout_indicate_seq; -struct list_head rx_pending_pkt_list; -struct timer_list rx_pkt_pending_timer; +u16 rx_indicate_seq; +u16 rx_timeout_indicate_seq; +struct list_head rx_pending_pkt_list; +struct timer_list rx_pkt_pending_timer;struct ba_record rx_admitted_ba_record; -u16 rx_last_seq_num; -u8 rx_last_frag_num; -u8 num; +u16 rx_last_seq_num; +u8 rx_last_frag_num; +u8 num; };
--
2.30.1
PATCH 7/9 staging: rtl8192e: rename RxLastSeqNum to rx_last_seq_num in rx_ts_record struct
In reply to William DurandRename RxLastSeqNum to rx_last_seq_num to silence a checkpatch warning about CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -48,7 +48,7 @@ struct rx_ts_record {struct list_head rx_pending_pkt_list;struct timer_list rx_pkt_pending_timer;struct ba_record rx_admitted_ba_record; -u16 RxLastSeqNum; +u16 rx_last_seq_num;u8 RxLastFragNum;u8 num; };
drivers/staging/rtl8192e/rtllib_rx.c +2 -2
@@ -939,10 +939,10 @@ static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,if (GetTs (ieee, (struct ts_common_info **) &pRxTS, hdr->addr2, (u8 )Frame_QoSTID ((u8 *)(skb->data)),RX_DIR , true)) {if ((fc & (1 <<11 )) && (frag == pRxTS->RxLastFragNum) && - (WLAN_GET_SEQ_SEQ (sc) == pRxTS->RxLastSeqNum)) + (WLAN_GET_SEQ_SEQ (sc) == pRxTS->rx_last_seq_num))return -1 ; pRxTS->RxLastFragNum = frag; - pRxTS->RxLastSeqNum =WLAN_GET_SEQ_SEQ (sc); + pRxTS->rx_last_seq_num =WLAN_GET_SEQ_SEQ (sc); }else {netdev_warn (ieee->dev,"%s(): No TS! Skip the check!\n" , __func__);
--
2.30.1