staging: rtl8723au: bDMInitialGainEnable is always true
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 21 Jul 2014 09:24:43 +0000 (11:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:09:26 +0000 (12:09 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c
drivers/staging/rtl8723au/include/odm.h

index dd025853293571470587169014e0105cf355bdc7..ed6d3af809a24fb2780f2bd10dc589db472cb918 100644 (file)
@@ -717,10 +717,6 @@ void odm_DIG23aInit(struct dm_odm_t *pDM_Odm)
        pDM_DigTable->DIG_Dynamic_MIN_1 = DM_DIG_MIN_NIC;
        pDM_DigTable->bMediaConnect_0 = false;
        pDM_DigTable->bMediaConnect_1 = false;
-
-       /* To Initialize pDM_Odm->bDMInitialGainEnable == false to avoid DIG error */
-       pDM_Odm->bDMInitialGainEnable = true;
-
 }
 
 void odm_DIG23a(struct dm_odm_t *pDM_Odm)
@@ -747,12 +743,6 @@ void odm_DIG23a(struct dm_odm_t *pDM_Odm)
                return;
        }
 
-       /* add by Neil Chen to avoid PSD is processing */
-       if (!pDM_Odm->bDMInitialGainEnable) {
-               ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG23a() Return: PSD is Processing \n"));
-               return;
-       }
-
        DIG_Dynamic_MIN = pDM_DigTable->DIG_Dynamic_MIN_0;
        FirstConnect = (pDM_Odm->bLinked) && (!pDM_DigTable->bMediaConnect_0);
        FirstDisConnect = (!pDM_Odm->bLinked) && (pDM_DigTable->bMediaConnect_0);
index b2f661e4e1767ffde2e6addaccbdf0b04c5a3940..9c8e7d8256d42b5180d7c8cc5557d2393f92a4e4 100644 (file)
@@ -818,7 +818,6 @@ struct dm_odm_t {
        bool                    bUserAssignLevel;
        u8                      RSSI_BT;                        /* come from BT */
        bool                    bPSDinProcess;
-       bool                    bDMInitialGainEnable;
 
        /* for rate adaptive, in fact,  88c/92c fw will handle this */
        u8                      bUseRAMask;