staging: rtl8723au: Remove ugly wrapper ODM_ConfigBBWithHeaderFile23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 13 Jul 2014 07:32:07 +0000 (09:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:14:32 +0000 (12:14 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm_HWConfig.c
drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c
drivers/staging/rtl8723au/include/odm.h
drivers/staging/rtl8723au/include/odm_HWConfig.h

index 4fc0b06c5dbcc7d34d0e55c1cf71cd78110b9630..40fea7de7a1096509a5c0c9a78bd2df50cd8d88c 100644 (file)
@@ -423,22 +423,6 @@ void ODM_MacStatusQuery23a(struct dm_odm_t *pDM_Odm, u8 *pMacStatus, u8 MacID,
 
 }
 
-int ODM_ConfigBBWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
-                                 enum odm_bb_config_type ConfigType)
-{
-       if (pDM_Odm->SupportICType == ODM_RTL8723A) {
-               if (ConfigType == CONFIG_BB_PHY_REG)
-                       ODM_ReadAndConfig_PHY_REG_1T_8723A(pDM_Odm);
-               else if (ConfigType == CONFIG_BB_AGC_TAB)
-                       ODM_ReadAndConfig_AGC_TAB_1T_8723A(pDM_Odm);
-               ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
-                            (" ===> phy_ConfigBBWithHeaderFile() phy:Rtl8723AGCTAB_1TArray\n"));
-               ODM_RT_TRACE(pDM_Odm, ODM_COMP_INIT, ODM_DBG_LOUD,
-                            (" ===> phy_ConfigBBWithHeaderFile() agc:Rtl8723PHY_REG_1TArray\n"));
-       }
-       return _SUCCESS;
-}
-
 int ODM_ConfigMACWithHeaderFile23a(struct dm_odm_t *pDM_Odm)
 {
        if (pDM_Odm->SupportICType == ODM_RTL8723A)
index 8a6ba63151cdf989b7c5e3121e37108c389caa4c..7dc2de01610809586d73d0783d5de1e951704673 100644 (file)
@@ -753,11 +753,7 @@ phy_BB8723a_Config_ParaFile(struct rtw_adapter *Adapter)
        /*  1. Read PHY_REG.TXT BB INIT!! */
        /*  We will seperate as 88C / 92C according to chip version */
        /*  */
-       if (ODM_ConfigBBWithHeaderFile23a(&pHalData->odmpriv,
-                                         CONFIG_BB_PHY_REG) == _FAIL)
-               rtStatus = _FAIL;
-       if (rtStatus != _SUCCESS)
-               goto phy_BB8190_Config_ParaFile_Fail;
+       ODM_ReadAndConfig_PHY_REG_1T_8723A(&pHalData->odmpriv);
 
        /*  */
        /*  20100318 Joseph: Config 2T2R to 1T2R if necessary. */
@@ -784,9 +780,7 @@ phy_BB8723a_Config_ParaFile(struct rtw_adapter *Adapter)
        /*  */
        /*  3. BB AGC table Initialization */
        /*  */
-       if (ODM_ConfigBBWithHeaderFile23a(&pHalData->odmpriv,
-                                         CONFIG_BB_AGC_TAB) == _FAIL)
-               rtStatus = _FAIL;
+       ODM_ReadAndConfig_AGC_TAB_1T_8723A(&pHalData->odmpriv);
 
 phy_BB8190_Config_ParaFile_Fail:
 
index 183d8ff1ab9ba5570cd1a12d1cfbd0b1f65f7ca9..08c6f7297d6de371120ca532ed4424c4e330b91e 100644 (file)
@@ -855,14 +855,6 @@ enum odm_rf_content {
        odm_radiod_txt = 0x1003
 };
 
-enum odm_bb_config_type {
-    CONFIG_BB_PHY_REG,
-    CONFIG_BB_AGC_TAB,
-    CONFIG_BB_AGC_TAB_2G,
-    CONFIG_BB_AGC_TAB_5G,
-    CONFIG_BB_PHY_REG_PG,
-};
-
 /*  Status code */
 enum rt_status {
        RT_STATUS_SUCCESS,
index f8236cac9c1005bb951ef4b169092ce027ff0040..6fe6f70de358ec0c1e316e1584f434b2a462a205 100644 (file)
@@ -160,9 +160,6 @@ void ODM_MacStatusQuery23a(struct dm_odm_t *pDM_Odm,
        bool bPacketBeacon
 );
 
-int ODM_ConfigBBWithHeaderFile23a(struct dm_odm_t *pDM_Odm,
-                                 enum odm_bb_config_type ConfigType);
-
 int ODM_ConfigMACWithHeaderFile23a(struct dm_odm_t *pDM_Odm);
 
 #endif