Staging: rtl8192e: Rename CamelCase vars
cover Staging: rtl8192e: Rename CamelCase vars
This Series renames 15 variables to fix checkpatch warnings.
Thank you in advance to reviewers
~Tree
Tree Davies (15):
Staging: rtl8192e: Rename variable pTxTs
Staging: rtl8192e: Rename variable BAReq
Staging: rtl8192e: Rename variable Delba
Staging: rtl8192e: Rename variable TSpec
Staging: rtl8192e: Rename variable TxAdmittedBARecord
Staging: rtl8192e: Rename variable TxPendingBARecord
Staging: rtl8192e: Rename variable pDialogToken
Staging: rtl8192e: Rename variable pTsCommonInfo
Staging: rtl8192e: Rename variable TxCurSeq
Staging: rtl8192e: Rename variable TsAddBaTimer
Staging: rtl8192e: Rename variable DelbaParamSet
Staging: rtl8192e: Rename variable pBaParamSet
Staging: rtl8192e: Rename variable pBaTimeoutVal
Staging: rtl8192e: Rename variable pAdmittedBA
Staging: rtl8192e: Rename variable TsCommonInfo
drivers/staging/rtl8192e/rtl819x_BAProc.c | 178 +++++++++++----------- drivers/staging/rtl8192e/rtl819x_TS.h | 12 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 56 +++---- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 22 +-- 5 files changed, 135 insertions(+), 135 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/15 Staging: rtl8192e: Rename variable pTxTs
Rename variable pTxTs to ts to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 50 +++++++++++------------ drivers/staging/rtl8192e/rtl819x_TSProc.c | 8 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 18 ++++---- 3 files changed, 38 insertions(+), 38 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +25 -25
@@ -23,10 +23,10 @@ static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *badel_timer_sync (&ba->timer); } -static u8 tx_ts_delete_ba (struct rtllib_device *ieee,struct tx_ts_record *pTxTs) +static u8 tx_ts_delete_ba (struct rtllib_device *ieee,struct tx_ts_record *ts) { -struct ba_record *admitted_ba = &pTxTs->TxAdmittedBARecord; -struct ba_record *pending_ba = &pTxTs->TxPendingBARecord; +struct ba_record *admitted_ba = &ts->TxAdmittedBARecord; +struct ba_record *pending_ba = &ts->TxPendingBARecord;u8 send_del_ba = false;if (pending_ba->b_valid) {
@@ -443,20 +443,20 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)rx_ts_delete_ba (ieee, ts); }else { -struct tx_ts_record *pTxTs; +struct tx_ts_record *ts; -if (!rtllib_get_ts (ieee, (struct ts_common_info **)&pTxTs, dst, +if (!rtllib_get_ts (ieee, (struct ts_common_info **)&ts, dst, (u8 )pDelBaParamSet->field.tid,TX_DIR , false)) {netdev_warn (ieee->dev,"%s(): can't get TS for TXTS\n" , __func__);return -1 ; } - pTxTs->using_ba = false; - pTxTs->add_ba_req_in_progress = false; - pTxTs->add_ba_req_delayed = false; -del_timer_sync (&pTxTs->TsAddBaTimer); -tx_ts_delete_ba (ieee, pTxTs); + ts->using_ba = false; + ts->add_ba_req_in_progress = false; + ts->add_ba_req_delayed = false; +del_timer_sync (&ts->TsAddBaTimer); +tx_ts_delete_ba (ieee, ts); }return 0 ; }
@@ -489,14 +489,14 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee, enum tr_select TxRxSelect) {if (TxRxSelect ==TX_DIR ) { -struct tx_ts_record *pTxTs = +struct tx_ts_record *ts = (struct tx_ts_record *)pTsCommonInfo; -if (tx_ts_delete_ba (ieee, pTxTs)) +if (tx_ts_delete_ba (ieee, ts))rtllib_send_DELBA (ieee, pTsCommonInfo->addr, - (pTxTs->TxAdmittedBARecord.b_valid) ? - (&pTxTs->TxAdmittedBARecord) : - (&pTxTs->TxPendingBARecord), + (ts->TxAdmittedBARecord.b_valid) ? + (&ts->TxAdmittedBARecord) : + (&ts->TxPendingBARecord), TxRxSelect,DELBA_REASON_END_BA ); }else if (TxRxSelect ==RX_DIR ) { struct rx_ts_record *ts =
@@ -510,23 +510,23 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee,void rtllib_ba_setup_timeout (struct timer_list *t) { -struct tx_ts_record *pTxTs =from_timer (pTxTs, t, +struct tx_ts_record *ts =from_timer (ts, t, TxPendingBARecord.timer); - pTxTs->add_ba_req_in_progress = false; - pTxTs->add_ba_req_delayed = true; - pTxTs->TxPendingBARecord.b_valid = false; + ts->add_ba_req_in_progress = false; + ts->add_ba_req_delayed = true; + ts->TxPendingBARecord.b_valid = false; }void rtllib_tx_ba_inact_timeout (struct timer_list *t) { -struct tx_ts_record *pTxTs =from_timer (pTxTs, t, +struct tx_ts_record *ts =from_timer (ts, t, TxAdmittedBARecord.timer); - struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device, - TxTsRecord[pTxTs->num]); -tx_ts_delete_ba (ieee, pTxTs); -rtllib_send_DELBA (ieee, pTxTs->TsCommonInfo.addr, - &pTxTs->TxAdmittedBARecord,TX_DIR , + struct rtllib_device *ieee = container_of(ts, struct rtllib_device, + TxTsRecord[ts->num]); +tx_ts_delete_ba (ieee, ts); +rtllib_send_DELBA (ieee, ts->TsCommonInfo.addr, + &ts->TxAdmittedBARecord,TX_DIR ,DELBA_REASON_TIMEOUT ); }
drivers/staging/rtl8192e/rtl819x_TSProc.c +4 -4
@@ -82,12 +82,12 @@ static void RxPktPendingTimeout(struct timer_list *t)static void TsAddBaProcess (struct timer_list *t) { -struct tx_ts_record *pTxTs =from_timer (pTxTs, t, TsAddBaTimer); -u8 num = pTxTs->num; - struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device, +struct tx_ts_record *ts =from_timer (ts, t, TsAddBaTimer); +u8 num = ts->num; + struct rtllib_device *ieee = container_of(ts, struct rtllib_device, TxTsRecord[num]); -rtllib_ts_init_add_ba (ieee, pTxTs,BA_POLICY_IMMEDIATE , false); +rtllib_ts_init_add_ba (ieee, ts,BA_POLICY_IMMEDIATE , false);netdev_dbg (ieee->dev,"%s(): ADDBA Req is started\n" , __func__); }
drivers/staging/rtl8192e/rtllib_tx.c +9 -9
@@ -267,7 +267,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, struct cb_desc *tcb_desc) {struct rt_hi_throughput *ht_info = ieee->ht_info; -struct tx_ts_record *pTxTs =NULL ; +struct tx_ts_record *ts =NULL ;struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;if (rtllib_act_scanning (ieee, false))
@@ -289,25 +289,25 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,if (!ieee->GetNmodeSupportBySecCfg (ieee->dev))return ;if (ht_info->current_ampdu_enable) { -if (!rtllib_get_ts (ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1, +if (!rtllib_get_ts (ieee, (struct ts_common_info **)(&ts), hdr->addr1, skb->priority,TX_DIR , true)) {netdev_info (ieee->dev,"%s: can't get TS\n" , __func__);return ; } -if (!pTxTs->TxAdmittedBARecord.b_valid) { +if (!ts->TxAdmittedBARecord.b_valid) {if (ieee->wpa_ie_len && (ieee->pairwise_key_type ==KEY_TYPE_NA )) { ; }else if (tcb_desc->bdhcp ==1 ) { ; - }else if (!pTxTs->disable_add_ba) { -TsStartAddBaProcess (ieee, pTxTs); + }else if (!ts->disable_add_ba) { +TsStartAddBaProcess (ieee, ts); } goto FORCED_AGG_SETTING; - }else if (!pTxTs->using_ba) { -if (SN_LESS (pTxTs->TxAdmittedBARecord.ba_start_seq_ctrl.field.seq_num, - (pTxTs->TxCurSeq +1 ) %4096 )) - pTxTs->using_ba = true; + }else if (!ts->using_ba) { +if (SN_LESS (ts->TxAdmittedBARecord.ba_start_seq_ctrl.field.seq_num, + (ts->TxCurSeq +1 ) %4096 )) + ts->using_ba = true;else goto FORCED_AGG_SETTING; }
Signature · 1 line
2.39.2
PATCH 2/15 Staging: rtl8192e: Rename variable BAReq
In reply to Tree DaviesRename variable BAReq to ba_req to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +6 -6
@@ -68,7 +68,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst, u16 status_code, u8 type) {struct sk_buff *skb =NULL ; -struct ieee80211_hdr_3addr *BAReq =NULL ; +struct ieee80211_hdr_3addr *ba_req =NULL ;u8 *tag =NULL ;u16 len = ieee->tx_headroom +9 ;
@@ -87,13 +87,13 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst,skb_reserve (skb, ieee->tx_headroom); - BAReq =skb_put (skb,sizeof (struct ieee80211_hdr_3addr )); + ba_req =skb_put (skb,sizeof (struct ieee80211_hdr_3addr )); -ether_addr_copy (BAReq->addr1, dst); -ether_addr_copy (BAReq->addr2, ieee->dev->dev_addr); +ether_addr_copy (ba_req->addr1, dst); +ether_addr_copy (ba_req->addr2, ieee->dev->dev_addr); -ether_addr_copy (BAReq->addr3, ieee->current_network.bssid); - BAReq->frame_control =cpu_to_le16 (IEEE80211_STYPE_ACTION ); +ether_addr_copy (ba_req->addr3, ieee->current_network.bssid); + ba_req->frame_control =cpu_to_le16 (IEEE80211_STYPE_ACTION ); tag =skb_put (skb,9 ); *tag++ =ACT_CAT_BA ;
Signature · 1 line
2.39.2
PATCH 3/15 Staging: rtl8192e: Rename variable Delba
In reply to Tree DaviesRename variable Delba to del_ba to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +6 -6
@@ -129,7 +129,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst, {union delba_param_set DelbaParamSet;struct sk_buff *skb =NULL ; -struct ieee80211_hdr_3addr *Delba =NULL ; +struct ieee80211_hdr_3addr *del_ba =NULL ;u8 *tag =NULL ;u16 len =6 + ieee->tx_headroom;
@@ -148,12 +148,12 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,skb_reserve (skb, ieee->tx_headroom); - Delba =skb_put (skb,sizeof (struct ieee80211_hdr_3addr )); + del_ba =skb_put (skb,sizeof (struct ieee80211_hdr_3addr )); -ether_addr_copy (Delba->addr1, dst); -ether_addr_copy (Delba->addr2, ieee->dev->dev_addr); -ether_addr_copy (Delba->addr3, ieee->current_network.bssid); - Delba->frame_control =cpu_to_le16 (IEEE80211_STYPE_ACTION ); +ether_addr_copy (del_ba->addr1, dst); +ether_addr_copy (del_ba->addr2, ieee->dev->dev_addr); +ether_addr_copy (del_ba->addr3, ieee->current_network.bssid); + del_ba->frame_control =cpu_to_le16 (IEEE80211_STYPE_ACTION ); tag =skb_put (skb,6 );
Signature · 1 line
2.39.2
PATCH 4/15 Staging: rtl8192e: Rename variable TSpec
In reply to Tree DaviesRename variable TSpec to tspec to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -474,7 +474,7 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, ba->dialog_token++; ba->ba_param_set.field.amsdu_support =0 ; ba->ba_param_set.field.ba_policy = policy; - ba->ba_param_set.field.tid = ts->TsCommonInfo.TSpec.ucTSID; + ba->ba_param_set.field.tid = ts->TsCommonInfo.tspec.ucTSID; ba->ba_param_set.field.buffer_size =32 ; ba->ba_timeout_value =0 ; ba->ba_start_seq_ctrl.field.seq_num = (ts->TxCurSeq +3 ) %4096 ;
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -19,7 +19,7 @@ enum tr_select {struct ts_common_info {struct list_head List;u8 addr[ETH_ALEN ]; -struct qos_tsinfo TSpec; +struct qos_tsinfo tspec; };struct tx_ts_record {
drivers/staging/rtl8192e/rtl819x_TSProc.c +7 -7
@@ -94,7 +94,7 @@ static void TsAddBaProcess(struct timer_list *t)static void ResetTsCommonInfo (struct ts_common_info *pTsCommonInfo) {eth_zero_addr (pTsCommonInfo->addr); -memset (&pTsCommonInfo->TSpec,0 ,sizeof (struct qos_tsinfo )); +memset (&pTsCommonInfo->tspec,0 ,sizeof (struct qos_tsinfo )); }static void ResetTxTsEntry (struct tx_ts_record *ts)
@@ -198,8 +198,8 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,continue ;list_for_each_entry (pRet, psearch_list, List) {if (memcmp (pRet->addr, addr,6 ) ==0 && - pRet->TSpec.ucTSID ==TID && - pRet->TSpec.ucDirection == dir) + pRet->tspec.ucTSID ==TID && + pRet->tspec.ucDirection == dir)break ; }if (&pRet->List != psearch_list)
@@ -220,7 +220,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *addr,memcpy (pTsCommonInfo->addr, addr,6 );if (pTSPEC) -memcpy ((u8 *)(&(pTsCommonInfo->TSpec)), (u8 *)pTSPEC, +memcpy ((u8 *)(&(pTsCommonInfo->tspec)), (u8 *)pTSPEC,sizeof (struct qos_tsinfo )); }
@@ -228,8 +228,8 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, u8 *addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs) { u8 UP = 0; -struct qos_tsinfo TSpec; -struct qos_tsinfo *ts_info = &TSpec; +struct qos_tsinfo tspec; +struct qos_tsinfo *ts_info = &tspec;struct list_head *pUnusedList;struct list_head *pAddmitList;enum direction_value Dir;
@@ -308,7 +308,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, ts_info->ucTSID =UP ; ts_info->ucDirection = Dir; -MakeTSEntry (*ppTS, addr, &TSpec); +MakeTSEntry (*ppTS, addr, &tspec);list_add_tail (&((*ppTS)->List), pAddmitList);return true;
Signature · 1 line
2.39.2
PATCH 5/15 Staging: rtl8192e: Rename variable TxAdmittedBARecord
In reply to Tree DaviesRename variable TxAdmittedBARecord to tx_admitted_ba_record to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++++++------ drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_tx.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +6 -6
@@ -25,7 +25,7 @@ static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *bastatic u8 tx_ts_delete_ba (struct rtllib_device *ieee,struct tx_ts_record *ts) { -struct ba_record *admitted_ba = &ts->TxAdmittedBARecord; +struct ba_record *admitted_ba = &ts->tx_admitted_ba_record;struct ba_record *pending_ba = &ts->TxPendingBARecord;u8 send_del_ba = false;
@@ -346,7 +346,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ts->add_ba_req_in_progress = false; pending_ba = &ts->TxPendingBARecord; - pAdmittedBA = &ts->TxAdmittedBARecord; + pAdmittedBA = &ts->tx_admitted_ba_record;if (pAdmittedBA->b_valid) { netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n",
@@ -494,8 +494,8 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee,if (tx_ts_delete_ba (ieee, ts))rtllib_send_DELBA (ieee, pTsCommonInfo->addr, - (ts->TxAdmittedBARecord.b_valid) ? - (&ts->TxAdmittedBARecord) : + (ts->tx_admitted_ba_record.b_valid) ? + (&ts->tx_admitted_ba_record) : (&ts->TxPendingBARecord), TxRxSelect,DELBA_REASON_END_BA ); }else if (TxRxSelect ==RX_DIR ) {
@@ -521,12 +521,12 @@ void rtllib_ba_setup_timeout(struct timer_list *t)void rtllib_tx_ba_inact_timeout (struct timer_list *t) {struct tx_ts_record *ts =from_timer (ts, t, - TxAdmittedBARecord.timer); + tx_admitted_ba_record.timer); struct rtllib_device *ieee = container_of(ts, struct rtllib_device, TxTsRecord[ts->num]);tx_ts_delete_ba (ieee, ts);rtllib_send_DELBA (ieee, ts->TsCommonInfo.addr, - &ts->TxAdmittedBARecord,TX_DIR , + &ts->tx_admitted_ba_record,TX_DIR ,DELBA_REASON_TIMEOUT ); }
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -26,7 +26,7 @@ struct tx_ts_record {struct ts_common_info TsCommonInfo;u16 TxCurSeq;struct ba_record TxPendingBARecord; -struct ba_record TxAdmittedBARecord; +struct ba_record tx_admitted_ba_record;u8 add_ba_req_in_progress;u8 add_ba_req_delayed;u8 using_ba;
drivers/staging/rtl8192e/rtl819x_TSProc.c +2 -2
@@ -105,7 +105,7 @@ static void ResetTxTsEntry(struct tx_ts_record *ts) ts->add_ba_req_delayed = false; ts->using_ba = false; ts->disable_add_ba = false; -rtllib_reset_ba_entry (&ts->TxAdmittedBARecord); +rtllib_reset_ba_entry (&ts->tx_admitted_ba_record);rtllib_reset_ba_entry (&ts->TxPendingBARecord); }
@@ -134,7 +134,7 @@ void rtllib_ts_init(struct rtllib_device *ieee)timer_setup (&pTxTS->TxPendingBARecord.timer, rtllib_ba_setup_timeout,0 ); -timer_setup (&pTxTS->TxAdmittedBARecord.timer, +timer_setup (&pTxTS->tx_admitted_ba_record.timer, rtllib_tx_ba_inact_timeout,0 );ResetTxTsEntry (pTxTS);
drivers/staging/rtl8192e/rtllib_tx.c +2 -2
@@ -294,7 +294,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,netdev_info (ieee->dev,"%s: can't get TS\n" , __func__);return ; } -if (!ts->TxAdmittedBARecord.b_valid) { +if (!ts->tx_admitted_ba_record.b_valid) {if (ieee->wpa_ie_len && (ieee->pairwise_key_type ==KEY_TYPE_NA )) { ;
@@ -305,7 +305,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, } goto FORCED_AGG_SETTING; }else if (!ts->using_ba) { -if (SN_LESS (ts->TxAdmittedBARecord.ba_start_seq_ctrl.field.seq_num, +if (SN_LESS (ts->tx_admitted_ba_record.ba_start_seq_ctrl.field.seq_num, (ts->TxCurSeq +1 ) %4096 )) ts->using_ba = true;else
Signature · 1 line
2.39.2
PATCH 6/15 Staging: rtl8192e: Rename variable TxPendingBARecord
In reply to Tree DaviesRename variable TxPendingBARecord to tx_pending_ba_record to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++++++------ drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +6 -6
@@ -26,7 +26,7 @@ static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *bastatic u8 tx_ts_delete_ba (struct rtllib_device *ieee,struct tx_ts_record *ts) {struct ba_record *admitted_ba = &ts->tx_admitted_ba_record; -struct ba_record *pending_ba = &ts->TxPendingBARecord; +struct ba_record *pending_ba = &ts->tx_pending_ba_record;u8 send_del_ba = false;if (pending_ba->b_valid) {
@@ -345,7 +345,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) } ts->add_ba_req_in_progress = false; - pending_ba = &ts->TxPendingBARecord; + pending_ba = &ts->tx_pending_ba_record; pAdmittedBA = &ts->tx_admitted_ba_record;if (pAdmittedBA->b_valid) {
@@ -464,7 +464,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *ts,u8 policy,u8 overwrite_pending) { -struct ba_record *ba = &ts->TxPendingBARecord; +struct ba_record *ba = &ts->tx_pending_ba_record;if (ba->b_valid && !overwrite_pending)return ;
@@ -496,7 +496,7 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee,rtllib_send_DELBA (ieee, pTsCommonInfo->addr, (ts->tx_admitted_ba_record.b_valid) ? (&ts->tx_admitted_ba_record) : - (&ts->TxPendingBARecord), + (&ts->tx_pending_ba_record), TxRxSelect,DELBA_REASON_END_BA ); }else if (TxRxSelect ==RX_DIR ) { struct rx_ts_record *ts =
@@ -511,11 +511,11 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee,void rtllib_ba_setup_timeout (struct timer_list *t) {struct tx_ts_record *ts =from_timer (ts, t, - TxPendingBARecord.timer); + tx_pending_ba_record.timer); ts->add_ba_req_in_progress = false; ts->add_ba_req_delayed = true; - ts->TxPendingBARecord.b_valid = false; + ts->tx_pending_ba_record.b_valid = false; }void rtllib_tx_ba_inact_timeout (struct timer_list *t)
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -25,7 +25,7 @@ struct ts_common_info {struct tx_ts_record {struct ts_common_info TsCommonInfo;u16 TxCurSeq; -struct ba_record TxPendingBARecord; +struct ba_record tx_pending_ba_record;struct ba_record tx_admitted_ba_record;u8 add_ba_req_in_progress;u8 add_ba_req_delayed;
drivers/staging/rtl8192e/rtl819x_TSProc.c +2 -2
@@ -106,7 +106,7 @@ static void ResetTxTsEntry(struct tx_ts_record *ts) ts->using_ba = false; ts->disable_add_ba = false;rtllib_reset_ba_entry (&ts->tx_admitted_ba_record); -rtllib_reset_ba_entry (&ts->TxPendingBARecord); +rtllib_reset_ba_entry (&ts->tx_pending_ba_record); }static void ResetRxTsEntry (struct rx_ts_record *ts)
@@ -132,7 +132,7 @@ void rtllib_ts_init(struct rtllib_device *ieee) pTxTS->num = count;timer_setup (&pTxTS->TsAddBaTimer, TsAddBaProcess,0 ); -timer_setup (&pTxTS->TxPendingBARecord.timer, rtllib_ba_setup_timeout, +timer_setup (&pTxTS->tx_pending_ba_record.timer, rtllib_ba_setup_timeout,0 );timer_setup (&pTxTS->tx_admitted_ba_record.timer, rtllib_tx_ba_inact_timeout,0 );
Signature · 1 line
2.39.2
PATCH 7/15 Staging: rtl8192e: Rename variable pDialogToken
In reply to Tree DaviesRename variable pDialogToken to dialog_token to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +8 -8
@@ -215,7 +215,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) {struct ieee80211_hdr_3addr *req =NULL ;u16 rc =0 ; -u8 *dst =NULL , *pDialogToken =NULL , *tag =NULL ; +u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;struct ba_record *ba =NULL ;union ba_param_set *pBaParamSet =NULL ;u16 *pBaTimeoutVal =NULL ;
@@ -238,7 +238,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) tag = (u8 *)req; dst = (u8 *)(&req->addr2[0 ]); tag +=sizeof (struct ieee80211_hdr_3addr ); - pDialogToken = tag +2 ; + dialog_token = tag +2 ; pBaParamSet = (union ba_param_set *)(tag +3 ); pBaTimeoutVal = (u16 *)(tag +5 ); pBaStartSeqCtrl = (union sequence_control *)(req +7 );
@@ -271,7 +271,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)rtllib_FlushRxTsPendingPkts (ieee, ts);deactivate_ba_entry (ieee, ba); - ba->dialog_token = *pDialogToken; + ba->dialog_token = *dialog_token; ba->ba_param_set = *pBaParamSet; ba->ba_timeout_value = *pBaTimeoutVal; ba->ba_start_seq_ctrl = *pBaStartSeqCtrl;
@@ -293,7 +293,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)BA .ba_param_set = *pBaParamSet;BA .ba_timeout_value = *pBaTimeoutVal; -BA .dialog_token = *pDialogToken; +BA .dialog_token = *dialog_token;BA .ba_param_set.field.ba_policy =BA_POLICY_IMMEDIATE ;rtllib_send_ADDBARsp (ieee, dst, &BA , rc);return 0 ;
@@ -305,7 +305,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)struct ieee80211_hdr_3addr *rsp =NULL ;struct ba_record *pending_ba, *pAdmittedBA;struct tx_ts_record *ts =NULL ; -u8 *dst =NULL , *pDialogToken =NULL , *tag =NULL ; +u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;u16 *status_code =NULL , *pBaTimeoutVal =NULL ;union ba_param_set *pBaParamSet =NULL ;u16 reason_code;
@@ -320,7 +320,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) tag = (u8 *)rsp; dst = (u8 *)(&rsp->addr2[0 ]); tag +=sizeof (struct ieee80211_hdr_3addr ); - pDialogToken = tag +2 ; + dialog_token = tag +2 ; status_code = (u16 *)(tag +3 ); pBaParamSet = (union ba_param_set *)(tag +5 ); pBaTimeoutVal = (u16 *)(tag +7 );
@@ -353,7 +353,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) __func__);return -1 ; }else if (!pending_ba->b_valid || - (*pDialogToken != pending_ba->dialog_token)) { + (*dialog_token != pending_ba->dialog_token)) {netdev_warn (ieee->dev,"%s(): ADDBA Rsp. BA invalid, DELBA!\n" , __func__);
@@ -374,7 +374,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) goto OnADDBARsp_Reject; } - pAdmittedBA->dialog_token = *pDialogToken; + pAdmittedBA->dialog_token = *dialog_token; pAdmittedBA->ba_timeout_value = *pBaTimeoutVal; pAdmittedBA->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; pAdmittedBA->ba_param_set = *pBaParamSet;
Signature · 1 line
2.39.2
PATCH 8/15 Staging: rtl8192e: Rename variable pTsCommonInfo
In reply to Tree DaviesRename variable pTsCommonInfo to ts_common_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 10 +++++----- drivers/staging/rtl8192e/rtl819x_TSProc.c | 14 +++++++------- drivers/staging/rtl8192e/rtllib.h | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +5 -5
@@ -485,24 +485,24 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, }void rtllib_ts_init_del_ba (struct rtllib_device *ieee, -struct ts_common_info *pTsCommonInfo, +struct ts_common_info *ts_common_info,enum tr_select TxRxSelect) {if (TxRxSelect ==TX_DIR ) {struct tx_ts_record *ts = - (struct tx_ts_record *)pTsCommonInfo; + (struct tx_ts_record *)ts_common_info;if (tx_ts_delete_ba (ieee, ts)) -rtllib_send_DELBA (ieee, pTsCommonInfo->addr, +rtllib_send_DELBA (ieee, ts_common_info->addr, (ts->tx_admitted_ba_record.b_valid) ? (&ts->tx_admitted_ba_record) : (&ts->tx_pending_ba_record), TxRxSelect,DELBA_REASON_END_BA ); }else if (TxRxSelect ==RX_DIR ) {struct rx_ts_record *ts = - (struct rx_ts_record *)pTsCommonInfo; + (struct rx_ts_record *)ts_common_info;if (rx_ts_delete_ba (ieee, ts)) -rtllib_send_DELBA (ieee, pTsCommonInfo->addr, +rtllib_send_DELBA (ieee, ts_common_info->addr, &ts->rx_admitted_ba_record, TxRxSelect,DELBA_REASON_END_BA ); }
drivers/staging/rtl8192e/rtl819x_TSProc.c +7 -7
@@ -91,10 +91,10 @@ static void TsAddBaProcess(struct timer_list *t)netdev_dbg (ieee->dev,"%s(): ADDBA Req is started\n" , __func__); } -static void ResetTsCommonInfo (struct ts_common_info *pTsCommonInfo) +static void ResetTsCommonInfo (struct ts_common_info *ts_common_info) { -eth_zero_addr (pTsCommonInfo->addr); -memset (&pTsCommonInfo->tspec,0 ,sizeof (struct qos_tsinfo )); +eth_zero_addr (ts_common_info->addr); +memset (&ts_common_info->tspec,0 ,sizeof (struct qos_tsinfo )); }static void ResetTxTsEntry (struct tx_ts_record *ts)
@@ -211,16 +211,16 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,return NULL ; } -static void MakeTSEntry (struct ts_common_info *pTsCommonInfo,u8 *addr, +static void MakeTSEntry (struct ts_common_info *ts_common_info,u8 *addr,struct qos_tsinfo *pTSPEC) { -if (!pTsCommonInfo) +if (!ts_common_info)return ; -memcpy (pTsCommonInfo->addr, addr,6 ); +memcpy (ts_common_info->addr, addr,6 );if (pTSPEC) -memcpy ((u8 *)(&(pTsCommonInfo->tspec)), (u8 *)pTSPEC, +memcpy ((u8 *)(&(ts_common_info->tspec)), (u8 *)pTSPEC,sizeof (struct qos_tsinfo )); }
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1787,7 +1787,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb);void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *ts,u8 policy,u8 overwrite_pending);void rtllib_ts_init_del_ba (struct rtllib_device *ieee, -struct ts_common_info *pTsCommonInfo, +struct ts_common_info *ts_common_info,enum tr_select TxRxSelect);void rtllib_ba_setup_timeout (struct timer_list *t);void rtllib_tx_ba_inact_timeout (struct timer_list *t);
Signature · 1 line
2.39.2
PATCH 9/15 Staging: rtl8192e: Rename variable TxCurSeq
In reply to Tree DaviesRename variable TxCurSeq to tx_cur_seq to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -477,7 +477,7 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, ba->ba_param_set.field.tid = ts->TsCommonInfo.tspec.ucTSID; ba->ba_param_set.field.buffer_size =32 ; ba->ba_timeout_value =0 ; - ba->ba_start_seq_ctrl.field.seq_num = (ts->TxCurSeq +3 ) %4096 ; + ba->ba_start_seq_ctrl.field.seq_num = (ts->tx_cur_seq +3 ) %4096 ;activate_ba_entry (ba,BA_SETUP_TIMEOUT );
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -24,7 +24,7 @@ struct ts_common_info {struct tx_ts_record {struct ts_common_info TsCommonInfo; -u16 TxCurSeq; +u16 tx_cur_seq;struct ba_record tx_pending_ba_record;struct ba_record tx_admitted_ba_record;u8 add_ba_req_in_progress;
drivers/staging/rtl8192e/rtl819x_TSProc.c +1 -1
@@ -100,7 +100,7 @@ static void ResetTsCommonInfo(struct ts_common_info *ts_common_info)static void ResetTxTsEntry (struct tx_ts_record *ts) {ResetTsCommonInfo (&ts->TsCommonInfo); - ts->TxCurSeq =0 ; + ts->tx_cur_seq =0 ; ts->add_ba_req_in_progress = false; ts->add_ba_req_delayed = false; ts->using_ba = false;
drivers/staging/rtl8192e/rtllib_tx.c +3 -3
@@ -306,7 +306,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee, goto FORCED_AGG_SETTING; }else if (!ts->using_ba) {if (SN_LESS (ts->tx_admitted_ba_record.ba_start_seq_ctrl.field.seq_num, - (ts->TxCurSeq +1 ) %4096 )) + (ts->tx_cur_seq +1 ) %4096 )) ts->using_ba = true;else goto FORCED_AGG_SETTING;
@@ -500,8 +500,8 @@ static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,if (!rtllib_get_ts (ieee, (struct ts_common_info **)(&ts), dst, skb->priority,TX_DIR , true))return 0 ; - seqnum = ts->TxCurSeq; - ts->TxCurSeq = (ts->TxCurSeq +1 ) %4096 ; + seqnum = ts->tx_cur_seq; + ts->tx_cur_seq = (ts->tx_cur_seq +1 ) %4096 ;return seqnum; }return 0 ;
Signature · 1 line
2.39.2
PATCH 10/15 Staging: rtl8192e: Rename variable TsAddBaTimer
In reply to Tree DaviesRename variable TsAddBaTimer to ts_add_ba_timer to fix checkpatch warning Avoid 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
@@ -455,7 +455,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) ts->using_ba = false; ts->add_ba_req_in_progress = false; ts->add_ba_req_delayed = false; -del_timer_sync (&ts->TsAddBaTimer); +del_timer_sync (&ts->ts_add_ba_timer);tx_ts_delete_ba (ieee, ts); }return 0 ;
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -31,7 +31,7 @@ struct tx_ts_record {u8 add_ba_req_delayed;u8 using_ba;u8 disable_add_ba; -struct timer_list TsAddBaTimer; +struct timer_list ts_add_ba_timer;u8 num; };
drivers/staging/rtl8192e/rtl819x_TSProc.c +5 -5
@@ -82,7 +82,7 @@ static void RxPktPendingTimeout(struct timer_list *t)static void TsAddBaProcess (struct timer_list *t) { -struct tx_ts_record *ts =from_timer (ts, t, TsAddBaTimer); +struct tx_ts_record *ts =from_timer (ts, t, ts_add_ba_timer);u8 num = ts->num; struct rtllib_device *ieee = container_of(ts, struct rtllib_device, TxTsRecord[num]);
@@ -130,7 +130,7 @@ void rtllib_ts_init(struct rtllib_device *ieee)for (count =0 ; count <TOTAL_TS_NUM ; count++) { pTxTS->num = count; -timer_setup (&pTxTS->TsAddBaTimer, TsAddBaProcess,0 ); +timer_setup (&pTxTS->ts_add_ba_timer, TsAddBaProcess,0 );timer_setup (&pTxTS->tx_pending_ba_record.timer, rtllib_ba_setup_timeout,0 );
@@ -356,7 +356,7 @@ static void RemoveTsEntry(struct rtllib_device *ieee, }else {struct tx_ts_record *pTxTS = (struct tx_ts_record *)pTs; -del_timer_sync (&pTxTS->TsAddBaTimer); +del_timer_sync (&pTxTS->ts_add_ba_timer); } }
@@ -438,11 +438,11 @@ void TsStartAddBaProcess(struct rtllib_device *ieee, struct tx_ts_record *pTxTS)if (pTxTS->add_ba_req_delayed) {netdev_dbg (ieee->dev,"Start ADDBA after 60 sec!!\n" ); -mod_timer (&pTxTS->TsAddBaTimer, jiffies + +mod_timer (&pTxTS->ts_add_ba_timer, jiffies +msecs_to_jiffies (TS_ADDBA_DELAY )); }else {netdev_dbg (ieee->dev,"Immediately Start ADDBA\n" ); -mod_timer (&pTxTS->TsAddBaTimer, jiffies +10 ); +mod_timer (&pTxTS->ts_add_ba_timer, jiffies +10 ); } }else {netdev_dbg (ieee->dev,"BA timer is already added\n" );
Signature · 1 line
2.39.2
PATCH 11/15 Staging: rtl8192e: Rename variable DelbaParamSet
In reply to Tree DaviesRename variable DelbaParamSet to del_ba_param_set to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +5 -5
@@ -127,7 +127,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,struct ba_record *ba, enum tr_select TxRxSelect, u16 reason_code) { - union delba_param_set DelbaParamSet; + union delba_param_set del_ba_param_set;struct sk_buff *skb =NULL ;struct ieee80211_hdr_3addr *del_ba =NULL ;u8 *tag =NULL ;
@@ -137,10 +137,10 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,netdev_dbg (ieee->dev,"%s(): reason_code(%d) sentd to: %pM\n" , __func__, reason_code, dst); -memset (&DelbaParamSet,0 ,2 ); +memset (&del_ba_param_set,0 ,2 ); - DelbaParamSet.field.initiator = (TxRxSelect ==TX_DIR ) ?1 :0 ; - DelbaParamSet.field.tid = ba->ba_param_set.field.tid; + del_ba_param_set.field.initiator = (TxRxSelect ==TX_DIR ) ?1 :0 ; + del_ba_param_set.field.tid = ba->ba_param_set.field.tid; skb =dev_alloc_skb (len +sizeof (struct ieee80211_hdr_3addr ));if (!skb)
@@ -160,7 +160,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst, *tag++ =ACT_CAT_BA ; *tag++ =ACT_DELBA ; -put_unaligned_le16 (DelbaParamSet.short_data, tag); +put_unaligned_le16 (del_ba_param_set.short_data, tag); tag +=2 ;put_unaligned_le16 (reason_code, tag);
Signature · 1 line
2.39.2
PATCH 12/15 Staging: rtl8192e: Rename variable pBaParamSet
In reply to Tree DaviesRename variable pBaParamSet to ba_param_set to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +12 -12
@@ -217,7 +217,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)u16 rc =0 ;u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;struct ba_record *ba =NULL ; -union ba_param_set *pBaParamSet =NULL ; +union ba_param_set *ba_param_set =NULL ;u16 *pBaTimeoutVal =NULL ;union sequence_control *pBaStartSeqCtrl =NULL ;struct rx_ts_record *ts =NULL ;
@@ -239,7 +239,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) dst = (u8 *)(&req->addr2[0 ]); tag +=sizeof (struct ieee80211_hdr_3addr ); dialog_token = tag +2 ; - pBaParamSet = (union ba_param_set *)(tag +3 ); + ba_param_set = (union ba_param_set *)(tag +3 ); pBaTimeoutVal = (u16 *)(tag +5 ); pBaStartSeqCtrl = (union sequence_control *)(req +7 );
@@ -254,14 +254,14 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) goto OnADDBAReq_Fail; }if (!rtllib_get_ts (ieee, (struct ts_common_info **)&ts, dst, - (u8)(pBaParamSet->field.tid),RX_DIR , true)) { + (u8)(ba_param_set->field.tid),RX_DIR , true)) { rc =ADDBA_STATUS_REFUSED ;netdev_warn (ieee->dev,"%s(): can't get TS\n" , __func__); goto OnADDBAReq_Fail; } ba = &ts->rx_admitted_ba_record; -if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { +if (ba_param_set->field.ba_policy ==BA_POLICY_DELAYED ) { rc =ADDBA_STATUS_INVALID_PARAM ;netdev_warn (ieee->dev,"%s(): BA Policy is not correct\n" , __func__);
@@ -272,7 +272,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)deactivate_ba_entry (ieee, ba); ba->dialog_token = *dialog_token; - ba->ba_param_set = *pBaParamSet; + ba->ba_param_set = *ba_param_set; ba->ba_timeout_value = *pBaTimeoutVal; ba->ba_start_seq_ctrl = *pBaStartSeqCtrl;
@@ -291,7 +291,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) {struct ba_record BA ; -BA .ba_param_set = *pBaParamSet; +BA .ba_param_set = *ba_param_set;BA .ba_timeout_value = *pBaTimeoutVal;BA .dialog_token = *dialog_token;BA .ba_param_set.field.ba_policy =BA_POLICY_IMMEDIATE ;
@@ -307,7 +307,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)struct tx_ts_record *ts =NULL ;u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;u16 *status_code =NULL , *pBaTimeoutVal =NULL ; -union ba_param_set *pBaParamSet =NULL ; +union ba_param_set *ba_param_set =NULL ;u16 reason_code;if (skb->len <sizeof (struct ieee80211_hdr_3addr ) +9 ) {
@@ -322,7 +322,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) tag +=sizeof (struct ieee80211_hdr_3addr ); dialog_token = tag +2 ; status_code = (u16 *)(tag +3 ); - pBaParamSet = (union ba_param_set *)(tag +5 ); + ba_param_set = (union ba_param_set *)(tag +5 ); pBaTimeoutVal = (u16 *)(tag +7 ); if (!ieee->current_network.qos_data.active ||
@@ -338,7 +338,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) }if (!rtllib_get_ts (ieee, (struct ts_common_info **)&ts, dst, - (u8)(pBaParamSet->field.tid),TX_DIR , false)) { + (u8)(ba_param_set->field.tid),TX_DIR , false)) {netdev_warn (ieee->dev,"%s(): can't get TS\n" , __func__); reason_code =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject;
@@ -367,7 +367,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) }if (*status_code ==ADDBA_STATUS_SUCCESS ) { -if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { +if (ba_param_set->field.ba_policy ==BA_POLICY_DELAYED ) { ts->add_ba_req_delayed = true;deactivate_ba_entry (ieee, pAdmittedBA); reason_code =DELBA_REASON_END_BA ;
@@ -377,7 +377,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pAdmittedBA->dialog_token = *dialog_token; pAdmittedBA->ba_timeout_value = *pBaTimeoutVal; pAdmittedBA->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; - pAdmittedBA->ba_param_set = *pBaParamSet; + pAdmittedBA->ba_param_set = *ba_param_set;deactivate_ba_entry (ieee, pAdmittedBA);activate_ba_entry (pAdmittedBA, *pBaTimeoutVal); }else {
@@ -393,7 +393,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) {struct ba_record BA ; -BA .ba_param_set = *pBaParamSet; +BA .ba_param_set = *ba_param_set;rtllib_send_DELBA (ieee, dst, &BA ,TX_DIR , reason_code);return 0 ; }
Signature · 1 line
2.39.2
PATCH 13/15 Staging: rtl8192e: Rename variable pBaTimeoutVal
In reply to Tree DaviesRename variable pBaTimeoutVal to ba_timeout_value to fix checkpatch warning Avoid CamelCase, and make the name consistent with variables of same name/type.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +8 -8
@@ -218,7 +218,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;struct ba_record *ba =NULL ;union ba_param_set *ba_param_set =NULL ; -u16 *pBaTimeoutVal =NULL ; +u16 *ba_timeout_value =NULL ;union sequence_control *pBaStartSeqCtrl =NULL ;struct rx_ts_record *ts =NULL ;
@@ -240,7 +240,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) tag +=sizeof (struct ieee80211_hdr_3addr ); dialog_token = tag +2 ; ba_param_set = (union ba_param_set *)(tag +3 ); - pBaTimeoutVal = (u16 *)(tag +5 ); + ba_timeout_value = (u16 *)(tag +5 ); pBaStartSeqCtrl = (union sequence_control *)(req +7 ); if (!ieee->current_network.qos_data.active ||
@@ -273,7 +273,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)deactivate_ba_entry (ieee, ba); ba->dialog_token = *dialog_token; ba->ba_param_set = *ba_param_set; - ba->ba_timeout_value = *pBaTimeoutVal; + ba->ba_timeout_value = *ba_timeout_value; ba->ba_start_seq_ctrl = *pBaStartSeqCtrl; if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev) ||
@@ -292,7 +292,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)struct ba_record BA ;BA .ba_param_set = *ba_param_set; -BA .ba_timeout_value = *pBaTimeoutVal; +BA .ba_timeout_value = *ba_timeout_value;BA .dialog_token = *dialog_token;BA .ba_param_set.field.ba_policy =BA_POLICY_IMMEDIATE ;rtllib_send_ADDBARsp (ieee, dst, &BA , rc);
@@ -306,7 +306,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)struct ba_record *pending_ba, *pAdmittedBA;struct tx_ts_record *ts =NULL ;u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ; -u16 *status_code =NULL , *pBaTimeoutVal =NULL ; +u16 *status_code =NULL , *ba_timeout_value =NULL ;union ba_param_set *ba_param_set =NULL ;u16 reason_code;
@@ -323,7 +323,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) dialog_token = tag +2 ; status_code = (u16 *)(tag +3 ); ba_param_set = (union ba_param_set *)(tag +5 ); - pBaTimeoutVal = (u16 *)(tag +7 ); + ba_timeout_value = (u16 *)(tag +7 ); if (!ieee->current_network.qos_data.active || !ieee->ht_info->current_ht_support ||
@@ -375,11 +375,11 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) } pAdmittedBA->dialog_token = *dialog_token; - pAdmittedBA->ba_timeout_value = *pBaTimeoutVal; + pAdmittedBA->ba_timeout_value = *ba_timeout_value; pAdmittedBA->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; pAdmittedBA->ba_param_set = *ba_param_set;deactivate_ba_entry (ieee, pAdmittedBA); -activate_ba_entry (pAdmittedBA, *pBaTimeoutVal); +activate_ba_entry (pAdmittedBA, *ba_timeout_value); }else { ts->add_ba_req_delayed = true; ts->disable_add_ba = true;
Signature · 1 line
2.39.2
PATCH 14/15 Staging: rtl8192e: Rename variable pAdmittedBA
In reply to Tree DaviesRename variable pAdmittedBA to admitted_ba to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +10 -10
@@ -303,7 +303,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)int rtllib_rx_ADDBARsp (struct rtllib_device *ieee,struct sk_buff *skb) {struct ieee80211_hdr_3addr *rsp =NULL ; -struct ba_record *pending_ba, *pAdmittedBA; +struct ba_record *pending_ba, *admitted_ba;struct tx_ts_record *ts =NULL ;u8 *dst =NULL , *dialog_token =NULL , *tag =NULL ;u16 *status_code =NULL , *ba_timeout_value =NULL ;
@@ -346,9 +346,9 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ts->add_ba_req_in_progress = false; pending_ba = &ts->tx_pending_ba_record; - pAdmittedBA = &ts->tx_admitted_ba_record; + admitted_ba = &ts->tx_admitted_ba_record; -if (pAdmittedBA->b_valid) { +if (admitted_ba->b_valid) {netdev_dbg (ieee->dev,"%s(): ADDBA response already admitted\n" , __func__);return -1 ;
@@ -369,17 +369,17 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)if (*status_code ==ADDBA_STATUS_SUCCESS ) {if (ba_param_set->field.ba_policy ==BA_POLICY_DELAYED ) { ts->add_ba_req_delayed = true; -deactivate_ba_entry (ieee, pAdmittedBA); +deactivate_ba_entry (ieee, admitted_ba); reason_code =DELBA_REASON_END_BA ; goto OnADDBARsp_Reject; } - pAdmittedBA->dialog_token = *dialog_token; - pAdmittedBA->ba_timeout_value = *ba_timeout_value; - pAdmittedBA->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; - pAdmittedBA->ba_param_set = *ba_param_set; -deactivate_ba_entry (ieee, pAdmittedBA); -activate_ba_entry (pAdmittedBA, *ba_timeout_value); + admitted_ba->dialog_token = *dialog_token; + admitted_ba->ba_timeout_value = *ba_timeout_value; + admitted_ba->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; + admitted_ba->ba_param_set = *ba_param_set; +deactivate_ba_entry (ieee, admitted_ba); +activate_ba_entry (admitted_ba, *ba_timeout_value); }else { ts->add_ba_req_delayed = true; ts->disable_add_ba = true;
Signature · 1 line
2.39.2
PATCH 15/15 Staging: rtl8192e: Rename variable TsCommonInfo
In reply to Tree DaviesRename variable TsCommonInfo to ts_common_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 6 +++--- drivers/staging/rtl8192e/rtl819x_TS.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +3 -3
@@ -474,14 +474,14 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, ba->dialog_token++; ba->ba_param_set.field.amsdu_support =0 ; ba->ba_param_set.field.ba_policy = policy; - ba->ba_param_set.field.tid = ts->TsCommonInfo.tspec.ucTSID; + ba->ba_param_set.field.tid = ts->ts_common_info.tspec.ucTSID; ba->ba_param_set.field.buffer_size =32 ; ba->ba_timeout_value =0 ; ba->ba_start_seq_ctrl.field.seq_num = (ts->tx_cur_seq +3 ) %4096 ;activate_ba_entry (ba,BA_SETUP_TIMEOUT ); -rtllib_send_ADDBAReq (ieee, ts->TsCommonInfo.addr, ba); +rtllib_send_ADDBAReq (ieee, ts->ts_common_info.addr, ba); } void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
@@ -525,7 +525,7 @@ void rtllib_tx_ba_inact_timeout(struct timer_list *t) struct rtllib_device *ieee = container_of(ts, struct rtllib_device, TxTsRecord[ts->num]);tx_ts_delete_ba (ieee, ts); -rtllib_send_DELBA (ieee, ts->TsCommonInfo.addr, +rtllib_send_DELBA (ieee, ts->ts_common_info.addr, &ts->tx_admitted_ba_record,TX_DIR ,DELBA_REASON_TIMEOUT ); }
drivers/staging/rtl8192e/rtl819x_TS.h +1 -1
@@ -23,7 +23,7 @@ struct ts_common_info { };struct tx_ts_record { -struct ts_common_info TsCommonInfo; +struct ts_common_info ts_common_info;u16 tx_cur_seq;struct ba_record tx_pending_ba_record;struct ba_record tx_admitted_ba_record;
drivers/staging/rtl8192e/rtl819x_TSProc.c +3 -3
@@ -99,7 +99,7 @@ static void ResetTsCommonInfo(struct ts_common_info *ts_common_info)static void ResetTxTsEntry (struct tx_ts_record *ts) { -ResetTsCommonInfo (&ts->TsCommonInfo); +ResetTsCommonInfo (&ts->ts_common_info); ts->tx_cur_seq =0 ; ts->add_ba_req_in_progress = false; ts->add_ba_req_delayed = false;
@@ -138,7 +138,7 @@ void rtllib_ts_init(struct rtllib_device *ieee) rtllib_tx_ba_inact_timeout, 0);ResetTxTsEntry (pTxTS); -list_add_tail (&pTxTS->TsCommonInfo.List, +list_add_tail (&pTxTS->ts_common_info.List, &ieee->Tx_TS_Unused_List); pTxTS++; }
@@ -292,7 +292,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,struct tx_ts_record *tmp =container_of (*ppTS, struct tx_ts_record, - TsCommonInfo); + ts_common_info);ResetTxTsEntry (tmp); }else { struct rx_ts_record *ts =
Signature · 1 line
2.39.2
Quoted 22 lines · Tree Davies
This Series renames 15 variables to fix checkpatch warnings.
Thank you in advance to reviewers
~TreeTree Davies (15):
Staging: rtl8192e: Rename variable pTxTs
Staging: rtl8192e: Rename variable BAReq
Staging: rtl8192e: Rename variable Delba
Staging: rtl8192e: Rename variable TSpec
Staging: rtl8192e: Rename variable TxAdmittedBARecord
Staging: rtl8192e: Rename variable TxPendingBARecord
Staging: rtl8192e: Rename variable pDialogToken
Staging: rtl8192e: Rename variable pTsCommonInfo
Staging: rtl8192e: Rename variable TxCurSeq
Staging: rtl8192e: Rename variable TsAddBaTimer
Staging: rtl8192e: Rename variable DelbaParamSet
Staging: rtl8192e: Rename variable pBaParamSet
Staging: rtl8192e: Rename variable pBaTimeoutVal
Staging: rtl8192e: Rename variable pAdmittedBA
Staging: rtl8192e: Rename variable TsCommonInfo
Quoted 7 lines
drivers/staging/rtl8192e/rtl819x_BAProc.c | 178 +++++++++++----------- drivers/staging/rtl8192e/rtl819x_TS.h | 12 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 56 +++---- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 22 +-- 5 files changed, 135 insertions(+), 135 deletions(-)
Hi Tree,
thanks for your patches, those work on hardware well.
I am about to delete the block acknowledgment (ba) from the driver. Reason is that ba is not properly working. The AP seems to try around before it gives up. This is slowing down the connection build up.
My issue is that I need to remove the following parts:
Function rtllib_process_action() that reacts when the AP sends packets with ba.
The following three timers are also part of this functionality timer_setup(&pTxTS->ts_add_ba_timer, TsAddBaProcess, 0); timer_setup(&pTxTS->tx_pending_ba_record.timer, rtllib_ba_setup_timeout, 0); timer_setup(&pTxTS->tx_admitted_ba_record.timer, rtllib_tx_ba_inact_timeout, 0);
And I cannot really remove the ones without the others. So some kind of encirclement is happening.
Just wanted to inform you about what I plan to do.
Have a good day.
Bye Philipp