staging: rtl8188eu: Rework function ODM_AntselStatistics_88E()
authornavin patidar <navin.patidar@gmail.com>
Sat, 20 Sep 2014 14:25:56 +0000 (19:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:47:13 +0000 (23:47 -0700)
Rename CamelCase function name and local variables.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm_HWConfig.c
drivers/staging/rtl8188eu/hal/odm_RTL8188E.c
drivers/staging/rtl8188eu/include/odm_RTL8188E.h

index dbc1368d81faf85163f39cb58346b3917f57e908..4e4e21936e7ccf0c3d75cc3684b4815c197ef154 100644 (file)
@@ -315,7 +315,7 @@ static void odm_Process_RSSIForDM(struct odm_dm_struct *dm_odm,
                if (pPktinfo->bPacketToSelf || pPktinfo->bPacketBeacon) {
                        antsel_tr_mux = (pDM_FatTable->antsel_rx_keep_2<<2) |
                                        (pDM_FatTable->antsel_rx_keep_1<<1) | pDM_FatTable->antsel_rx_keep_0;
-                       ODM_AntselStatistics_88E(dm_odm, antsel_tr_mux, pPktinfo->StationID, pPhyInfo->RxPWDBAll);
+                       rtl88eu_dm_ant_sel_statistics(dm_odm, antsel_tr_mux, pPktinfo->StationID, pPhyInfo->RxPWDBAll);
                }
        }
        /* Smart Antenna Debug Message------------------ */
index 5a514055bacdad11662bc5ce18c8977719b19904..95bcc0a2f579bfe42cf03dac3ad4d76ee98f910b 100644 (file)
@@ -249,24 +249,25 @@ void rtl88eu_dm_set_tx_ant_by_tx_info(struct odm_dm_struct *dm_odm,
        }
 }
 
-void ODM_AntselStatistics_88E(struct odm_dm_struct *dm_odm, u8 antsel_tr_mux, u32 MacId, u8 RxPWDBAll)
+void rtl88eu_dm_ant_sel_statistics(struct odm_dm_struct *dm_odm,
+                                  u8 antsel_tr_mux, u32 mac_id, u8 rx_pwdb_all)
 {
        struct fast_ant_train *dm_fat_tbl = &dm_odm->DM_FatTable;
        if (dm_odm->AntDivType == CG_TRX_HW_ANTDIV) {
                if (antsel_tr_mux == MAIN_ANT_CG_TRX) {
-                       dm_fat_tbl->MainAnt_Sum[MacId] += RxPWDBAll;
-                       dm_fat_tbl->MainAnt_Cnt[MacId]++;
+                       dm_fat_tbl->MainAnt_Sum[mac_id] += rx_pwdb_all;
+                       dm_fat_tbl->MainAnt_Cnt[mac_id]++;
                } else {
-                       dm_fat_tbl->AuxAnt_Sum[MacId] += RxPWDBAll;
-                       dm_fat_tbl->AuxAnt_Cnt[MacId]++;
+                       dm_fat_tbl->AuxAnt_Sum[mac_id] += rx_pwdb_all;
+                       dm_fat_tbl->AuxAnt_Cnt[mac_id]++;
                }
        } else if (dm_odm->AntDivType == CGCS_RX_HW_ANTDIV) {
                if (antsel_tr_mux == MAIN_ANT_CGCS_RX) {
-                       dm_fat_tbl->MainAnt_Sum[MacId] += RxPWDBAll;
-                       dm_fat_tbl->MainAnt_Cnt[MacId]++;
+                       dm_fat_tbl->MainAnt_Sum[mac_id] += rx_pwdb_all;
+                       dm_fat_tbl->MainAnt_Cnt[mac_id]++;
                } else {
-                       dm_fat_tbl->AuxAnt_Sum[MacId] += RxPWDBAll;
-                       dm_fat_tbl->AuxAnt_Cnt[MacId]++;
+                       dm_fat_tbl->AuxAnt_Sum[mac_id] += rx_pwdb_all;
+                       dm_fat_tbl->AuxAnt_Cnt[mac_id]++;
                }
        }
 }
index 7a10101642c86ab7981d28b821176cfe21742acc..684947f4d4a2174a1dc7e63967709015d89994f0 100644 (file)
@@ -38,8 +38,8 @@ void rtl88eu_dm_set_tx_ant_by_tx_info(struct odm_dm_struct *dm_odm, u8 *desc,
 
 void rtl88eu_dm_update_rx_idle_ant(struct odm_dm_struct *dm_odm, u8 ant);
 
-void ODM_AntselStatistics_88E(struct odm_dm_struct *pDM_Odm, u8        antsel_tr_mux,
-                             u32 MacId, u8 RxPWDBAll);
+void rtl88eu_dm_ant_sel_statistics(struct odm_dm_struct *dm_odm, u8 antsel_tr_mux,
+                                  u32 mac_id, u8 rx_pwdb_all);
 
 void odm_FastAntTraining(struct odm_dm_struct *pDM_Odm);