staging:rtl8192u: Rename TSInfo - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Tue, 31 Jul 2018 20:59:57 +0000 (21:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 07:46:00 +0000 (09:46 +0200)
Rename TSInfo, the memeber variable of struct tspec_body to ts_info.
This change clears the checkpatch issue with CamelCase naming.

This is a coding style change 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/rtl819x_BAProc.c
drivers/staging/rtl8192u/ieee80211/rtl819x_Qos.h
drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c

index d35f10c..01b631c 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->ts_common_info.t_spec.TSInfo.uc_tsid;  // TID
+       pBA->BaParamSet.field.TID = pTS->ts_common_info.t_spec.ts_info.uc_tsid; // 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 a4cecf4..db0392c 100644 (file)
@@ -52,7 +52,7 @@ struct qos_tsinfo {
  * Note: sizeof 55 bytes
  */
 struct tspec_body {
-       struct qos_tsinfo       TSInfo; //u8    TSInfo[3];
+       struct qos_tsinfo       ts_info;        //u8    TSInfo[3];
        u16     NominalMSDUsize;
        u16     MaxMSDUsize;
        u32     MinServiceItv;
index bd2b4e5..e0ccaba 100644 (file)
@@ -246,10 +246,10 @@ static struct ts_common_info *SearchAdmitTRStream(struct ieee80211_device *ieee,
                if (!search_dir[dir])
                        continue;
                list_for_each_entry(pRet, psearch_list, list){
-       //              IEEE80211_DEBUG(IEEE80211_DL_TS, "ADD:%pM, TID:%d, dir:%d\n", pRet->Addr, pRet->TSpec.TSInfo.ucTSID, pRet->TSpec.TSInfo.ucDirection);
+       //              IEEE80211_DEBUG(IEEE80211_DL_TS, "ADD:%pM, TID:%d, dir:%d\n", pRet->Addr, pRet->TSpec.ts_info.ucTSID, pRet->TSpec.ts_info.ucDirection);
                        if (memcmp(pRet->addr, Addr, 6) == 0)
-                               if (pRet->t_spec.TSInfo.uc_tsid == TID)
-                                       if(pRet->t_spec.TSInfo.uc_direction == dir) {
+                               if (pRet->t_spec.ts_info.uc_tsid == TID)
+                                       if(pRet->t_spec.ts_info.uc_direction == dir) {
        //                                      printk("Bingo! got it\n");
                                                break;
                                        }
@@ -355,7 +355,7 @@ bool GetTs(
                        // For HCCA or WMMSA, TS cannot be addmit without negotiation.
                        //
                        struct tspec_body       TSpec;
-                       struct qos_tsinfo       *pTSInfo = &TSpec.TSInfo;
+                       struct qos_tsinfo       *pTSInfo = &TSpec.ts_info;
                        struct list_head        *pUnusedList =
                                                                (TxRxSelect == TX_DIR)?
                                                                (&ieee->Tx_TS_Unused_List):