OSDN Git Service

staging:rtl8192u: Rename TxAdmittedBARecord - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 27 Jul 2018 17:31:08 +0000 (18:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 08:15:51 +0000 (10:15 +0200)
Rename the member variable TxAdmittedBARecord to tx_admitted_ba_record
This change clears the checkpatch issue with CamelCase naming.

The resulting changes are purely coding style changes which should not
impact runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c

index 77ec1d5..2fb9464 100644 (file)
@@ -335,14 +335,14 @@ static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee,
                        printk("===>can't get TS\n");
                        return;
                }
-               if (!pTxTs->TxAdmittedBARecord.bValid)
+               if (!pTxTs->tx_admitted_ba_record.bValid)
                {
                        TsStartAddBaProcess(ieee, pTxTs);
                        goto FORCED_AGG_SETTING;
                }
                else if (!pTxTs->bUsingBa)
                {
-                       if (SN_LESS(pTxTs->TxAdmittedBARecord.BaStartSeqCtrl.field.SeqNum, (pTxTs->tx_cur_seq + 1) % 4096))
+                       if (SN_LESS(pTxTs->tx_admitted_ba_record.BaStartSeqCtrl.field.SeqNum, (pTxTs->tx_cur_seq + 1) % 4096))
                                pTxTs->bUsingBa = true;
                        else
                                goto FORCED_AGG_SETTING;
index 55b989d..92666fd 100644 (file)
@@ -42,7 +42,7 @@ static void DeActivateBAEntry(struct ieee80211_device *ieee, PBA_RECORD pBA)
  ********************************************************************************************************************/
 static u8 TxTsDeleteBA(struct ieee80211_device *ieee, struct tx_ts_record *pTxTs)
 {
-       PBA_RECORD              pAdmittedBa = &pTxTs->TxAdmittedBARecord;  //These two BA entries must exist in TS structure
+       PBA_RECORD              pAdmittedBa = &pTxTs->tx_admitted_ba_record;  //These two BA entries must exist in TS structure
        PBA_RECORD              pPendingBa = &pTxTs->tx_pending_ba_record;
        u8                      bSendDELBA = false;
 
@@ -471,7 +471,7 @@ int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, struct sk_buff *skb)
 
        pTS->bAddBaReqInProgress = false;
        pPendingBA = &pTS->tx_pending_ba_record;
-       pAdmittedBA = &pTS->TxAdmittedBARecord;
+       pAdmittedBA = &pTS->tx_admitted_ba_record;
 
 
        //
@@ -647,7 +647,7 @@ TsInitDelBA(struct ieee80211_device *ieee, struct ts_common_info *pTsCommonInfo,
                        ieee80211_send_DELBA(
                                ieee,
                                pTsCommonInfo->addr,
-                               (pTxTs->TxAdmittedBARecord.bValid)?(&pTxTs->TxAdmittedBARecord):(&pTxTs->tx_pending_ba_record),
+                               (pTxTs->tx_admitted_ba_record.bValid)?(&pTxTs->tx_admitted_ba_record):(&pTxTs->tx_pending_ba_record),
                                TxRxSelect,
                                DELBA_REASON_END_BA);
        } else if (TxRxSelect == RX_DIR) {
@@ -678,13 +678,13 @@ void BaSetupTimeOut(struct timer_list *t)
 
 void TxBaInactTimeout(struct timer_list *t)
 {
-       struct tx_ts_record *pTxTs = from_timer(pTxTs, t, TxAdmittedBARecord.Timer);
+       struct tx_ts_record *pTxTs = from_timer(pTxTs, t, tx_admitted_ba_record.Timer);
        struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[pTxTs->num]);
        TxTsDeleteBA(ieee, pTxTs);
        ieee80211_send_DELBA(
                ieee,
                pTxTs->ts_common_info.addr,
-               &pTxTs->TxAdmittedBARecord,
+               &pTxTs->tx_admitted_ba_record,
                TX_DIR,
                DELBA_REASON_TIMEOUT);
 }
index 3af894f..cacf9b9 100644 (file)
@@ -30,7 +30,7 @@ struct tx_ts_record {
        struct ts_common_info           ts_common_info;
        u16                             tx_cur_seq;
        BA_RECORD                       tx_pending_ba_record;   /*  For BA Originator */
-       BA_RECORD                       TxAdmittedBARecord;     /*  For BA Originator */
+       BA_RECORD                       tx_admitted_ba_record;  /*  For BA Originator */
 /*     QOS_DL_RECORD           DLRecord; */
        u8                              bAddBaReqInProgress;
        u8                              bAddBaReqDelayed;
index 3cb6354..e347a83 100644 (file)
@@ -117,7 +117,7 @@ static void ResetTxTsEntry(struct tx_ts_record *pTS)
        pTS->bAddBaReqInProgress = false;
        pTS->bAddBaReqDelayed = false;
        pTS->bUsingBa = false;
-       ResetBaEntry(&pTS->TxAdmittedBARecord); //For BA Originator
+       ResetBaEntry(&pTS->tx_admitted_ba_record); //For BA Originator
        ResetBaEntry(&pTS->tx_pending_ba_record);
 }
 
@@ -153,7 +153,7 @@ void TSInitialize(struct ieee80211_device *ieee)
                timer_setup(&pTxTS->TsAddBaTimer, TsAddBaProcess, 0);
                timer_setup(&pTxTS->tx_pending_ba_record.Timer, BaSetupTimeOut,
                            0);
-               timer_setup(&pTxTS->TxAdmittedBARecord.Timer,
+               timer_setup(&pTxTS->tx_admitted_ba_record.Timer,
                            TxBaInactTimeout, 0);
                ResetTxTsEntry(pTxTS);
                list_add_tail(&pTxTS->ts_common_info.list, &ieee->Tx_TS_Unused_List);