staging: r8188eu: remove ODM_AntselStatistics_88C()
authorMichael Straube <straube.linux@gmail.com>
Fri, 15 Oct 2021 16:35:04 +0000 (18:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Oct 2021 14:38:17 +0000 (16:38 +0200)
Function ODM_AntselStatistics_88C() is not used, remove it.

Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211015163507.9091-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c
drivers/staging/r8188eu/include/odm.h

index 28bd6f36cddd23069d81c34c45a3033abb221b99..d3d13164ca8f90aef4962eec686112d9134873f3 100644 (file)
@@ -1016,27 +1016,6 @@ void odm_InitHybridAntDiv(struct odm_dm_struct *pDM_Odm)
        ODM_AntennaDiversityInit_88E(pDM_Odm);
 }
 
-void ODM_AntselStatistics_88C(struct odm_dm_struct *pDM_Odm, u8 MacId, u32 PWDBAll, bool isCCKrate)
-{
-       struct sw_ant_switch *pDM_SWAT_Table = &pDM_Odm->DM_SWAT_Table;
-
-       if (pDM_SWAT_Table->antsel == 1) {
-               if (isCCKrate) {
-                       pDM_SWAT_Table->CCK_Ant1_Cnt[MacId]++;
-               } else {
-                       pDM_SWAT_Table->OFDM_Ant1_Cnt[MacId]++;
-                       pDM_SWAT_Table->RSSI_Ant1_Sum[MacId] += PWDBAll;
-               }
-       } else {
-               if (isCCKrate) {
-                       pDM_SWAT_Table->CCK_Ant2_Cnt[MacId]++;
-               } else {
-                       pDM_SWAT_Table->OFDM_Ant2_Cnt[MacId]++;
-                       pDM_SWAT_Table->RSSI_Ant2_Sum[MacId] += PWDBAll;
-               }
-       }
-}
-
 void odm_HwAntDiv(struct odm_dm_struct *pDM_Odm)
 {
        if (!(pDM_Odm->SupportAbility & ODM_BB_ANT_DIV))
index db24678eb0bc5766aff66c173488c6a3d8a090aa..a8e9089433ba5b2f880ec3ab53d7c378cf750418 100644 (file)
@@ -899,7 +899,4 @@ void ODM_CmnInfoPtrArrayHook(struct odm_dm_struct *pDM_Odm,
 
 void ODM_CmnInfoUpdate(struct odm_dm_struct *pDM_Odm, u32 CmnInfo, u64 Value);
 
-void ODM_AntselStatistics_88C(struct odm_dm_struct *pDM_Odm, u8 MacId,
-                             u32 PWDBAll, bool isCCKrate);
-
 #endif