staging:rtl8192u: Rename TSpec > t_spec - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Mon, 16 Jul 2018 19:04:51 +0000 (20:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:55:57 +0000 (08:55 +0200)
Rename the TS_COMMON_INFO structure's member TSpec to t_spec. This change
clears the checkpatch issue with CamelCase naming of variables. There should
be no impact on runtime execution.

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

index 297c498aef6a469afae2296990334a6e245b6089..2c7d3ab1b5f7b2bbda4892a36591cc33c6b6962b 100644 (file)
@@ -626,7 +626,7 @@ TsInitAddBA(
        pBA->DialogToken++;                                             // DialogToken: Only keep the latest dialog token
        pBA->BaParamSet.field.AMSDU_Support = 0;        // Do not support A-MSDU with A-MPDU now!!
        pBA->BaParamSet.field.BAPolicy = Policy;        // Policy: Delayed or Immediate
-       pBA->BaParamSet.field.TID = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID;      // TID
+       pBA->BaParamSet.field.TID = pTS->TsCommonInfo.t_spec.f.TSInfo.field.ucTSID;     // TID
        // BufferSize: This need to be set according to A-MPDU vector
        pBA->BaParamSet.field.BufferSize = 32;          // BufferSize: This need to be set according to A-MPDU vector
        pBA->BaTimeoutValue = 0;                                        // Timeout value: Set 0 to disable Timer
index 62c6fc513540d4b9232aa99432be6180750a4218..4c1b2e27cf94f6d631b5e42e495865da4b8493a5 100644 (file)
@@ -20,7 +20,7 @@ struct ts_common_info {
        struct timer_list               setup_timer;
        struct timer_list               inact_timer;
        u8                              addr[6];
-       TSPEC_BODY                      TSpec;
+       TSPEC_BODY                      t_spec;
        QOS_TCLAS                       TClass[TCLAS_NUM];
        u8                              TClasProc;
        u8                              TClasNum;
index 72a5fc0bbb475396a4fa1fa5a2e00e8da586310b..f9f4196f43fa69ddeaf607e77251dbff966ad3bc 100644 (file)
@@ -104,7 +104,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(TSPEC_BODY));
+       memset(&pTsCommonInfo->t_spec, 0, sizeof(TSPEC_BODY));
        memset(&pTsCommonInfo->TClass, 0, sizeof(QOS_TCLAS)*TCLAS_NUM);
        pTsCommonInfo->TClasProc = 0;
        pTsCommonInfo->TClasNum = 0;
@@ -248,8 +248,8 @@ static struct ts_common_info *SearchAdmitTRStream(struct ieee80211_device *ieee,
                list_for_each_entry(pRet, psearch_list, list){
        //              IEEE80211_DEBUG(IEEE80211_DL_TS, "ADD:%pM, TID:%d, dir:%d\n", pRet->Addr, pRet->TSpec.f.TSInfo.field.ucTSID, pRet->TSpec.f.TSInfo.field.ucDirection);
                        if (memcmp(pRet->addr, Addr, 6) == 0)
-                               if (pRet->TSpec.f.TSInfo.field.ucTSID == TID)
-                                       if(pRet->TSpec.f.TSInfo.field.ucDirection == dir) {
+                               if (pRet->t_spec.f.TSInfo.field.ucTSID == TID)
+                                       if(pRet->t_spec.f.TSInfo.field.ucDirection == dir) {
        //                                      printk("Bingo! got it\n");
                                                break;
                                        }
@@ -276,7 +276,7 @@ static void MakeTSEntry(struct ts_common_info *pTsCommonInfo, u8 *Addr,
        memcpy(pTsCommonInfo->addr, Addr, 6);
 
        if(pTSPEC != NULL)
-               memcpy((u8 *)(&(pTsCommonInfo->TSpec)), (u8 *)pTSPEC, sizeof(TSPEC_BODY));
+               memcpy((u8 *)(&(pTsCommonInfo->t_spec)), (u8 *)pTSPEC, sizeof(TSPEC_BODY));
 
        for(count = 0; count < TCLAS_Num; count++)
                memcpy((u8 *)(&(pTsCommonInfo->TClass[count])), (u8 *)pTCLAS, sizeof(QOS_TCLAS));