staging: rtl8723au: ODM_BB_DIG is always set
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 2 Mar 2015 20:24:40 +0000 (15:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:28 +0000 (09:54 -0800)
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/hal/rtl8723a_dm.c
drivers/staging/rtl8723au/include/odm.h

index 64dd980a170d262980f536d663d1ced9ef53e6f0..406c503343adef4e250b8e0be674ae8891c763ce 100644 (file)
@@ -583,10 +583,9 @@ void odm_DIG23a(struct rtw_adapter *adapter)
        u8 CurrentIGI = pDM_DigTable->CurIGValue;
 
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_DIG23a() ==>\n"));
-       /* if (!(pDM_Odm->SupportAbility & (ODM_BB_DIG|ODM_BB_FA_CNT))) */
-       if ((!(pDM_Odm->SupportAbility&ODM_BB_DIG)) || (!(pDM_Odm->SupportAbility&ODM_BB_FA_CNT))) {
+       if (!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT)) {
                ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD,
-                            ("odm_DIG23a() Return: SupportAbility ODM_BB_DIG or ODM_BB_FA_CNT is disabled\n"));
+                            ("odm_DIG23a() Return: SupportAbility ODM_BB_FA_CNT is disabled\n"));
                return;
        }
 
index 61ff14aca36503a9875c1a328784fe09b0474e8a..16811ffc67f2fe62ce1d4a38c6081bbbc5ac5dcf 100644 (file)
@@ -129,8 +129,7 @@ static void Update_ODM_ComInfo_8723a(struct rtw_adapter *Adapter)
        struct dm_odm_t *pDM_Odm = &pHalData->odmpriv;
        struct dm_priv  *pdmpriv = &pHalData->dmpriv;
        int i;
-       pdmpriv->InitODMFlag =  ODM_BB_DIG              |
-                               ODM_BB_DYNAMIC_TXPWR    |
+       pdmpriv->InitODMFlag =  ODM_BB_DYNAMIC_TXPWR    |
                                ODM_BB_FA_CNT           |
                                ODM_BB_RSSI_MONITOR     |
                                ODM_BB_CCK_PD           |
index 4653518f3d7e48f9bb9dd744ca0e1bcf64207fb5..7ee874aea77617f099bd3b1680aaaf4e76bf87dc 100644 (file)
@@ -347,7 +347,6 @@ enum odm_cmninfo {
 /*  Define ODM support ability.  ODM_CMNINFO_ABILITY */
 enum {
        /*  BB ODM section BIT 0-15 */
-       ODM_BB_DIG                              = BIT(0),
        ODM_BB_DYNAMIC_TXPWR                    = BIT(2),
        ODM_BB_FA_CNT                           = BIT(3),
        ODM_BB_RSSI_MONITOR                     = BIT(4),