staging: rtl8188eu: Remove unused function odm_DIGbyRSSI_LPS()
authornavin patidar <navin.patidar@gmail.com>
Sun, 18 May 2014 15:19:09 +0000 (20:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:48:56 +0000 (01:48 +0900)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm.c

index 89a26e3e217ff81100899c75b69068951044519b..d8482ab4a34913a49115d5376ca7c068d526f8c8 100644 (file)
@@ -529,51 +529,6 @@ void ODM_Write_DIG(struct odm_dm_struct *pDM_Odm, u8 CurrentIGI)
 /*  Add by Neil Chen to enable edcca to MP Platform */
 }
 
-/* Need LPS mode for CE platform --2012--08--24--- */
-/* 8723AS/8189ES */
-void odm_DIGbyRSSI_LPS(struct odm_dm_struct *pDM_Odm)
-{
-       struct adapter *pAdapter = pDM_Odm->Adapter;
-       struct false_alarm_stats *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
-
-       u8 RSSI_Lower = DM_DIG_MIN_NIC;   /* 0x1E or 0x1C */
-       u8 bFwCurrentInPSMode = false;
-       u8 CurrentIGI = pDM_Odm->RSSI_Min;
-
-       CurrentIGI = CurrentIGI + RSSI_OFFSET_DIG;
-       bFwCurrentInPSMode = pAdapter->pwrctrlpriv.bFwCurrentInPSMode;
-
-       /*  Using FW PS mode to make IGI */
-       if (bFwCurrentInPSMode) {
-               ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("---Neil---odm_DIG is in LPS mode\n"));
-               /* Adjust by  FA in LPS MODE */
-               if (pFalseAlmCnt->Cnt_all > DM_DIG_FA_TH2_LPS)
-                       CurrentIGI = CurrentIGI+2;
-               else if (pFalseAlmCnt->Cnt_all > DM_DIG_FA_TH1_LPS)
-                       CurrentIGI = CurrentIGI+1;
-               else if (pFalseAlmCnt->Cnt_all < DM_DIG_FA_TH0_LPS)
-                       CurrentIGI = CurrentIGI-1;
-       } else {
-               CurrentIGI = RSSI_Lower;
-       }
-
-       /* Lower bound checking */
-
-       /* RSSI Lower bound check */
-       if ((pDM_Odm->RSSI_Min-10) > DM_DIG_MIN_NIC)
-               RSSI_Lower = (pDM_Odm->RSSI_Min-10);
-       else
-               RSSI_Lower = DM_DIG_MIN_NIC;
-
-       /* Upper and Lower Bound checking */
-        if (CurrentIGI > DM_DIG_MAX_NIC)
-               CurrentIGI = DM_DIG_MAX_NIC;
-        else if (CurrentIGI < RSSI_Lower)
-               CurrentIGI = RSSI_Lower;
-
-       ODM_Write_DIG(pDM_Odm, CurrentIGI);/* ODM_Write_DIG(pDM_Odm, pDM_DigTable->CurIGValue); */
-}
-
 void odm_DIGInit(struct odm_dm_struct *pDM_Odm)
 {
        struct adapter *adapter = pDM_Odm->Adapter;