Staging: rtl8192e: Rename variables pBA, bCurrentHTSupport, and pTSInfo
cover Staging: rtl8192e: Rename variables pBA, bCurrentHTSupport, and pTSInfo
This series renames 3 variables to fix checkpatch warning Avoid CamelCase Thank you in advance to the reviewers
Tree
Tree Davies (3):
Staging: rtl8192e: Rename variable pTSInfo
Staging: rtl8192e: Rename variable bCurrentHTSupport
Staging: rtl8192e: Rename variable pBA
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 112 +++++++++---------- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 12 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 20 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 15 ++- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 +- 10 files changed, 88 insertions(+), 89 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/3 Staging: rtl8192e: Rename variable pTSInfo
Rename variable pTSInfo to ts_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_TSProc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/rtl8192e/rtl819x_TSProc.c +10 -10
@@ -242,7 +242,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, {u8 UP =0 ;union tspec_body TSpec; -union qos_tsinfo *pTSInfo = &TSpec.f.TSInfo; +union qos_tsinfo *ts_info = &TSpec.f.TSInfo;struct list_head *pUnusedList;struct list_head *pAddmitList;enum direction_value Dir;
@@ -318,15 +318,15 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS,netdev_dbg (ieee->dev,"to init current TS, UP:%d, Dir:%d, addr: %pM ppTs=%p\n" ,UP , Dir, addr, *ppTS); - pTSInfo->field.ucTrafficType =0 ; - pTSInfo->field.ucTSID =UP ; - pTSInfo->field.ucDirection = Dir; - pTSInfo->field.ucAccessPolicy =1 ; - pTSInfo->field.ucAggregation =0 ; - pTSInfo->field.ucPSB =0 ; - pTSInfo->field.ucUP =UP ; - pTSInfo->field.ucTSInfoAckPolicy =0 ; - pTSInfo->field.ucSchedule =0 ; + ts_info->field.ucTrafficType =0 ; + ts_info->field.ucTSID =UP ; + ts_info->field.ucDirection = Dir; + ts_info->field.ucAccessPolicy =1 ; + ts_info->field.ucAggregation =0 ; + ts_info->field.ucPSB =0 ; + ts_info->field.ucUP =UP ; + ts_info->field.ucTSInfoAckPolicy =0 ; + ts_info->field.ucSchedule =0 ;MakeTSEntry (*ppTS, addr, &TSpec,NULL ,0 ,0 );list_add_tail (&((*ppTS)->List), pAddmitList);
Signature · 1 line
2.39.2
PATCH 2/3 Staging: rtl8192e: Rename variable bCurrentHTSupport
In reply to Tree DaviesRename variable bCurrentHTSupport to current_ht_support to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 12 ++++++------ drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 12 ++++++------ drivers/staging/rtl8192e/rtllib_softmac.c | 15 +++++++-------- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 ++++---- 8 files changed, 27 insertions(+), 28 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -1
@@ -294,7 +294,7 @@ static void _rtl92e_update_beacon(void *data)struct rtllib_device *ieee = priv->rtllib;struct rtllib_network *net = &ieee->current_network; -if (ieee->ht_info->bCurrentHTSupport) +if (ieee->ht_info->current_ht_support)HT_update_self_and_peer_setting (ieee, net); ieee->ht_info->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time; ieee->ht_info->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode;
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +1 -1
@@ -864,7 +864,7 @@ static int _rtl92e_wx_set_encode_ext(struct net_device *dev,rtl92e_set_swcam (dev, idx, idx, alg, broadcast_addr, key); }else {if ((ieee->pairwise_key_type ==KEY_TYPE_CCMP ) && - ieee->ht_info->bCurrentHTSupport) + ieee->ht_info->current_ht_support)rtl92e_writeb (dev,0x173 ,1 );rtl92e_set_key (dev,4 , idx, alg, (u8 *)ieee->ap_mac_addr,0 , key);
drivers/staging/rtl8192e/rtl819x_BAProc.c +6 -6
@@ -244,13 +244,13 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) pBaStartSeqCtrl = (union sequence_control *)(req +7 );if (!ieee->current_network.qos_data.active || - !ieee->ht_info->bCurrentHTSupport || + !ieee->ht_info->current_ht_support || (ieee->ht_info->iot_action &HT_IOT_ACT_REJECT_ADDBA_REQ )) { rc =ADDBA_STATUS_REFUSED ;netdev_warn (ieee->dev,"Failed to reply on ADDBA_REQ as some capability is not ready(%d, %d)\n" , ieee->current_network.qos_data.active, - ieee->ht_info->bCurrentHTSupport); + ieee->ht_info->current_ht_support); goto OnADDBAReq_Fail; } if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst,
@@ -326,12 +326,12 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pBaTimeoutVal = (u16 *)(tag +7 );if (!ieee->current_network.qos_data.active || - !ieee->ht_info->bCurrentHTSupport || + !ieee->ht_info->current_ht_support || !ieee->ht_info->bCurrentAMPDUEnable) {netdev_warn (ieee->dev,"reject to ADDBA_RSP as some capability is not ready(%d, %d, %d)\n" , ieee->current_network.qos_data.active, - ieee->ht_info->bCurrentHTSupport, + ieee->ht_info->current_ht_support, ieee->ht_info->bCurrentAMPDUEnable); ReasonCode =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject;
@@ -413,11 +413,11 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) }if (!ieee->current_network.qos_data.active || - !ieee->ht_info->bCurrentHTSupport) { + !ieee->ht_info->current_ht_support) {netdev_warn (ieee->dev,"received DELBA while QOS or HT is not supported(%d, %d)\n" , ieee->current_network. qos_data.active, - ieee->ht_info->bCurrentHTSupport); + ieee->ht_info->current_ht_support);return -1 ; }
drivers/staging/rtl8192e/rtl819x_HT.h +1 -1
@@ -93,7 +93,7 @@ enum ht_aggre_mode {struct rt_hi_throughput {u8 enable_ht; -u8 bCurrentHTSupport; +u8 current_ht_support;u8 bRegBW40MHz;u8 bCurBW40MHz;u8 bRegShortGI40MHz;
drivers/staging/rtl8192e/rtl819x_HTProc.c +6 -6
@@ -489,7 +489,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)static const u8 EWC11NHTCap[] = {0x00 ,0x90 ,0x4c ,0x33 };static const u8 EWC11NHTInfo[] = {0x00 ,0x90 ,0x4c ,0x34 }; -if (!ht_info->bCurrentHTSupport) { +if (!ht_info->current_ht_support) {netdev_warn (ieee->dev,"%s(): HT_DISABLE\n" , __func__);return ; }
@@ -594,7 +594,7 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) {struct rt_hi_throughput *ht_info = ieee->ht_info; - ht_info->bCurrentHTSupport = false; + ht_info->current_ht_support = false; ht_info->bCurBW40MHz = false; ht_info->cur_tx_bw40mhz = false;
@@ -665,7 +665,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,* function rtllib_softmac_new_net. WB 2008.09.10 */ if (pNetwork->bssht.bd_support_ht) { - ht_info->bCurrentHTSupport = true; + ht_info->current_ht_support = true; ht_info->ePeerHTSpecVer = pNetwork->bssht.bd_ht_spec_ver; if (pNetwork->bssht.bd_ht_cap_len > 0 &&
@@ -719,7 +719,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,if (bIOTAction) ht_info->iot_action |=HT_IOT_ACT_CDD_FSYNC ; }else { - ht_info->bCurrentHTSupport = false; + ht_info->current_ht_support = false; ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_long_slot_time = false; ht_info->RT2RT_HT_Mode = (enum rt_ht_capability )0 ;
@@ -736,7 +736,7 @@ void HT_update_self_and_peer_setting(struct rtllib_device *ieee,struct ht_info_ele *pPeerHTInfo = (struct ht_info_ele *)pNetwork->bssht.bd_ht_info_buf; -if (ht_info->bCurrentHTSupport) { +if (ht_info->current_ht_support) {if (pNetwork->bssht.bd_ht_info_len !=0 ) ht_info->current_op_mode = pPeerHTInfo->OptMode; }
@@ -745,7 +745,7 @@ EXPORT_SYMBOL(HT_update_self_and_peer_setting);u8 HTCCheck (struct rtllib_device *ieee,u8 *pFrame) { -if (ieee->ht_info->bCurrentHTSupport) { +if (ieee->ht_info->current_ht_support) {if ((IsQoSDataFrame (pFrame) &&Frame_Order (pFrame)) ==1 ) {netdev_dbg (ieee->dev,"HT CONTROL FILED EXIST!!\n" );return true;
drivers/staging/rtl8192e/rtllib_softmac.c +7 -8
@@ -769,7 +769,7 @@ static struct sk_buff *rtllib_probe_resp(struct rtllib_device *ieee, crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx]; encrypt = crypt && crypt->ops && ((strcmp (crypt->ops->name,"R-WEP" ) ==0 || wpa_ie_len)); -if (ieee->ht_info->bCurrentHTSupport) { +if (ieee->ht_info->current_ht_support) { tmp_ht_cap_buf = (u8 *)&(ieee->ht_info->SelfHTCap); tmp_ht_cap_len =sizeof (ieee->ht_info->SelfHTCap); tmp_ht_info_buf = (u8 *)&(ieee->ht_info->SelfHTInfo);
@@ -976,7 +976,7 @@ rtllib_association_req(struct rtllib_network *beacon, ieee->mode =WIRELESS_MODE_G ; } -if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht) { +if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) { ht_cap_buf = (u8 *)&(ieee->ht_info->SelfHTCap); ht_cap_len =sizeof (ieee->ht_info->SelfHTCap); HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len,
@@ -1114,7 +1114,7 @@ rtllib_association_req(struct rtllib_network *beacon,memcpy (tag, osCcxVerNum.Octet, osCcxVerNum.Length); tag += osCcxVerNum.Length; } -if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht) { +if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {if (ieee->ht_info->ePeerHTSpecVer !=HT_SPEC_VER_EWC ) { tag =skb_put (skb, ht_cap_len); *tag++ =MFIE_TYPE_HT_CAP ;
@@ -1148,7 +1148,7 @@ rtllib_association_req(struct rtllib_network *beacon,rtllib_TURBO_Info (ieee, &tag); } -if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht) { +if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {if (ieee->ht_info->ePeerHTSpecVer ==HT_SPEC_VER_EWC ) { tag =skb_put (skb, ht_cap_len); *tag++ =MFIE_TYPE_GENERIC ;
@@ -1313,13 +1313,13 @@ static void rtllib_associate_complete_wq(void *data) ieee->set_wireless_mode (ieee->dev,WIRELESS_MODE_B );netdev_info (ieee->dev,"Using B rates:%d\n" , ieee->rate); } -if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht) { +if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {netdev_info (ieee->dev,"Successfully associated, ht enabled\n" );HTOnAssocRsp (ieee); }else {netdev_info (ieee->dev,"Successfully associated, ht not enabled(%d, %d)\n" , - ieee->ht_info->bCurrentHTSupport, + ieee->ht_info->current_ht_support, ieee->ht_info->enable_ht);memset (ieee->dot11ht_oper_rate_set,0 ,16 ); }
@@ -1477,8 +1477,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,HTResetSelfAndSavePeerSetting (ieee, &(ieee->current_network)); else - ieee->ht_info->bCurrentHTSupport = - false; + ieee->ht_info->current_ht_support = false; ieee->link_state =RTLLIB_ASSOCIATING ; schedule_delayed_work(
drivers/staging/rtl8192e/rtllib_softmac_wx.c +1 -1
@@ -317,7 +317,7 @@ void rtllib_wx_sync_scan_wq(void *data) ieee->ScanOperationBackupHandler (ieee->dev,SCAN_OPT_BACKUP ); -if (ieee->ht_info->bCurrentHTSupport && ieee->ht_info->enable_ht && +if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht && ieee->ht_info->bCurBW40MHz) { b40M =1 ; chan_offset = ieee->ht_info->CurSTAExtChnlOffset;
drivers/staging/rtl8192e/rtllib_tx.c +4 -4
@@ -273,7 +273,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,if (rtllib_act_scanning (ieee, false))return ; -if (!ht_info->bCurrentHTSupport || !ht_info->enable_ht) +if (!ht_info->current_ht_support || !ht_info->enable_ht)return ;if (!IsQoSDataFrame (skb->data))return ;
@@ -354,7 +354,7 @@ static void rtllib_query_HTCapShortGI(struct rtllib_device *ieee, tcb_desc->bUseShortGI = false; -if (!ht_info->bCurrentHTSupport || !ht_info->enable_ht) +if (!ht_info->current_ht_support || !ht_info->enable_ht)return ;if (ht_info->forced_short_gi) {
@@ -375,7 +375,7 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee, tcb_desc->bPacketBW = false; -if (!ht_info->bCurrentHTSupport || !ht_info->enable_ht) +if (!ht_info->current_ht_support || !ht_info->enable_ht)return ;if (tcb_desc->bMulticast || tcb_desc->bBroadcast)
@@ -438,7 +438,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee, tcb_desc->rts_rate =MGN_24M ;break ; } -if (ht_info->bCurrentHTSupport && ht_info->enable_ht) { +if (ht_info->current_ht_support && ht_info->enable_ht) {u8 HTOpMode = ht_info->current_op_mode; if ((ht_info->bCurBW40MHz && (HTOpMode == 2 ||
Signature · 1 line
2.39.2
PATCH 3/3 Staging: rtl8192e: Rename variable pBA
In reply to Tree DaviesRename variable pBA to ba to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 100 +++++++++++----------- drivers/staging/rtl8192e/rtllib.h | 2 +- 2 files changed, 51 insertions(+), 51 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +50 -50
@@ -10,17 +10,17 @@#include "rtllib.h" #include "rtl819x_BA.h" -static void activate_ba_entry (struct ba_record *pBA,u16 time) +static void activate_ba_entry (struct ba_record *ba,u16 time) { - pBA->b_valid = true; + ba->b_valid = true;if (time !=0 ) -mod_timer (&pBA->timer, jiffies +msecs_to_jiffies (time)); +mod_timer (&ba->timer, jiffies +msecs_to_jiffies (time)); } -static void deactivate_ba_entry (struct rtllib_device *ieee,struct ba_record *pBA) +static void deactivate_ba_entry (struct rtllib_device *ieee,struct ba_record *ba) { - pBA->b_valid = false; -del_timer_sync (&pBA->timer); + ba->b_valid = false; +del_timer_sync (&ba->timer); }static u8 tx_ts_delete_ba (struct rtllib_device *ieee,struct tx_ts_record *pTxTs)
@@ -54,17 +54,17 @@ static u8 rx_ts_delete_ba(struct rtllib_device *ieee, struct rx_ts_record *ts)return bSendDELBA; } -void rtllib_reset_ba_entry (struct ba_record *pBA) +void rtllib_reset_ba_entry (struct ba_record *ba) { - pBA->b_valid = false; - pBA->ba_param_set.short_data =0 ; - pBA->ba_timeout_value =0 ; - pBA->dialog_token =0 ; - pBA->ba_start_seq_ctrl.short_data =0 ; + ba->b_valid = false; + ba->ba_param_set.short_data =0 ; + ba->ba_timeout_value =0 ; + ba->dialog_token =0 ; + ba->ba_start_seq_ctrl.short_data =0 ; }static struct sk_buff *rtllib_ADDBA (struct rtllib_device *ieee,u8 *dst, -struct ba_record *pBA, +struct ba_record *ba,u16 status_code,u8 type) {struct sk_buff *skb =NULL ;
@@ -75,8 +75,8 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst,netdev_dbg (ieee->dev,"%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n" , __func__, type, dst, ieee->dev); -if (!pBA) { -netdev_warn (ieee->dev,"pBA is NULL\n" ); +if (!ba) { +netdev_warn (ieee->dev,"ba is NULL\n" );return NULL ; } skb =dev_alloc_skb (len +sizeof (struct ieee80211_hdr_3addr ));
@@ -98,21 +98,21 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst, tag =skb_put (skb,9 ); *tag++ =ACT_CAT_BA ; *tag++ = type; - *tag++ = pBA->dialog_token; + *tag++ = ba->dialog_token;if (type ==ACT_ADDBARSP ) {put_unaligned_le16 (status_code, tag); tag +=2 ; } -put_unaligned_le16 (pBA->ba_param_set.short_data, tag); +put_unaligned_le16 (ba->ba_param_set.short_data, tag); tag +=2 ; -put_unaligned_le16 (pBA->ba_timeout_value, tag); +put_unaligned_le16 (ba->ba_timeout_value, tag); tag +=2 ;if (type ==ACT_ADDBAREQ ) { -memcpy (tag, (u8 *)&pBA->ba_start_seq_ctrl,2 ); +memcpy (tag, (u8 *)&ba->ba_start_seq_ctrl,2 ); tag +=2 ; }
@@ -124,7 +124,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst, }static struct sk_buff *rtllib_DELBA (struct rtllib_device *ieee,u8 *dst, -struct ba_record *pBA, +struct ba_record *ba,enum tr_select TxRxSelect,u16 ReasonCode) {union delba_param_set DelbaParamSet;
@@ -140,7 +140,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,memset (&DelbaParamSet,0 ,2 ); DelbaParamSet.field.initiator = (TxRxSelect ==TX_DIR ) ?1 :0 ; - DelbaParamSet.field.tid = pBA->ba_param_set.field.tid; + DelbaParamSet.field.tid = ba->ba_param_set.field.tid; skb =dev_alloc_skb (len +sizeof (struct ieee80211_hdr_3addr ));if (!skb)
@@ -174,11 +174,11 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst, }static void rtllib_send_ADDBAReq (struct rtllib_device *ieee,u8 *dst, -struct ba_record *pBA) +struct ba_record *ba) {struct sk_buff *skb; - skb =rtllib_ADDBA (ieee, dst, pBA,0 ,ACT_ADDBAREQ ); + skb =rtllib_ADDBA (ieee, dst, ba,0 ,ACT_ADDBAREQ );if (skb)softmac_mgmt_xmit (skb, ieee);
@@ -187,11 +187,11 @@ static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst, }static void rtllib_send_ADDBARsp (struct rtllib_device *ieee,u8 *dst, -struct ba_record *pBA,u16 status_code) +struct ba_record *ba,u16 status_code) {struct sk_buff *skb; - skb =rtllib_ADDBA (ieee, dst, pBA, status_code,ACT_ADDBARSP ); + skb =rtllib_ADDBA (ieee, dst, ba, status_code,ACT_ADDBARSP );if (skb)softmac_mgmt_xmit (skb, ieee);else
@@ -199,12 +199,12 @@ static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst, }static void rtllib_send_DELBA (struct rtllib_device *ieee,u8 *dst, -struct ba_record *pBA,enum tr_select TxRxSelect, +struct ba_record *ba,enum tr_select TxRxSelect,u16 ReasonCode) {struct sk_buff *skb; - skb =rtllib_DELBA (ieee, dst, pBA, TxRxSelect, ReasonCode); + skb =rtllib_DELBA (ieee, dst, ba, TxRxSelect, ReasonCode);if (skb)softmac_mgmt_xmit (skb, ieee);else
@@ -216,7 +216,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 ; -struct ba_record *pBA =NULL ; +struct ba_record *ba =NULL ;union ba_param_set *pBaParamSet =NULL ;u16 *pBaTimeoutVal =NULL ;union sequence_control *pBaStartSeqCtrl =NULL ;
@@ -259,7 +259,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 = &ts->rx_admitted_ba_record; + ba = &ts->rx_admitted_ba_record;if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { rc =ADDBA_STATUS_INVALID_PARAM ;
@@ -270,20 +270,20 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)rtllib_FlushRxTsPendingPkts (ieee, ts); -deactivate_ba_entry (ieee, pBA); - pBA->dialog_token = *pDialogToken; - pBA->ba_param_set = *pBaParamSet; - pBA->ba_timeout_value = *pBaTimeoutVal; - pBA->ba_start_seq_ctrl = *pBaStartSeqCtrl; +deactivate_ba_entry (ieee, ba); + ba->dialog_token = *pDialogToken; + ba->ba_param_set = *pBaParamSet; + ba->ba_timeout_value = *pBaTimeoutVal; + ba->ba_start_seq_ctrl = *pBaStartSeqCtrl;if (ieee->GetHalfNmodeSupportByAPsHandler (ieee->dev) || (ieee->ht_info->iot_action &HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT )) - pBA->ba_param_set.field.buffer_size =1 ; + ba->ba_param_set.field.buffer_size =1 ;else - pBA->ba_param_set.field.buffer_size =32 ; + ba->ba_param_set.field.buffer_size =32 ; -activate_ba_entry (pBA,0 ); -rtllib_send_ADDBARsp (ieee, dst, pBA,ADDBA_STATUS_SUCCESS ); +activate_ba_entry (ba,0 ); +rtllib_send_ADDBARsp (ieee, dst, ba,ADDBA_STATUS_SUCCESS );return 0 ;
@@ -464,24 +464,24 @@ 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 *pTS,u8 policy,u8 bOverwritePending) { -struct ba_record *pBA = &pTS->TxPendingBARecord; +struct ba_record *ba = &pTS->TxPendingBARecord; -if (pBA->b_valid && !bOverwritePending) +if (ba->b_valid && !bOverwritePending)return ; -deactivate_ba_entry (ieee, pBA); +deactivate_ba_entry (ieee, ba); - pBA->dialog_token++; - pBA->ba_param_set.field.amsdu_support =0 ; - pBA->ba_param_set.field.ba_policy = policy; - pBA->ba_param_set.field.tid = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; - pBA->ba_param_set.field.buffer_size =32 ; - pBA->ba_timeout_value =0 ; - pBA->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq +3 ) %4096 ; + 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 = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; + ba->ba_param_set.field.buffer_size =32 ; + ba->ba_timeout_value =0 ; + ba->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq +3 ) %4096 ; -activate_ba_entry (pBA,BA_SETUP_TIMEOUT ); +activate_ba_entry (ba,BA_SETUP_TIMEOUT ); -rtllib_send_ADDBAReq (ieee, pTS->TsCommonInfo.addr, pBA); +rtllib_send_ADDBAReq (ieee, pTS->TsCommonInfo.addr, ba); } void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1819,7 +1819,7 @@ void rtllib_ts_init_del_ba(struct rtllib_device *ieee,void rtllib_ba_setup_timeout (struct timer_list *t);void rtllib_tx_ba_inact_timeout (struct timer_list *t);void rtllib_rx_ba_inact_timeout (struct timer_list *t); -void rtllib_reset_ba_entry (struct ba_record *pBA); +void rtllib_reset_ba_entry (struct ba_record *ba);bool rtllib_get_ts (struct rtllib_device *ieee,struct ts_common_info **ppTS,u8 *addr,u8 TID ,enum tr_select TxRxSelect,bool bAddNewTs);void rtllib_ts_init (struct rtllib_device *ieee);
Signature · 1 line
2.39.2
Quoted 10 lines · Tree Davies
This series renames 3 variables to fix checkpatch warning Avoid CamelCase Thank you in advance to the reviewers
TreeTree Davies (3):
Staging: rtl8192e: Rename variable pTSInfo
Staging: rtl8192e: Rename variable bCurrentHTSupport
Staging: rtl8192e: Rename variable pBA
Quoted 12 lines
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 2 +- drivers/staging/rtl8192e/rtl819x_BAProc.c | 112 +++++++++---------- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 12 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 20 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 15 ++- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 +- 10 files changed, 88 insertions(+), 89 deletions(-)