bool PHY_RF6052_Config( struct net_device* dev) { struct r8192_priv *priv = rtllib_priv(dev); RT_STATUS rtStatus = RT_STATUS_SUCCESS; u8 bRegHwParaFile = 1; if(priv->rf_type == RF_1T1R) priv->NumTotalRFPath = 1; else priv->NumTotalRFPath = 2; switch( bRegHwParaFile ) { case 0: phy_RF6052_Config_HardCode(dev); break; case 1: rtStatus = phy_RF6052_Config_ParaFile(dev); break; case 2: phy_RF6052_Config_HardCode(dev); phy_RF6052_Config_ParaFile(dev); break; default: phy_RF6052_Config_HardCode(dev); break; } return (rtStatus == RT_STATUS_SUCCESS)?1:0; }
int PHY_RF6052_Config8192D( IN PADAPTER Adapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); int rtStatus = _SUCCESS; // // Initialize general global value // // TODO: Extend RF_PATH_C and RF_PATH_D in the future if(pHalData->rf_type == RF_1T1R) pHalData->NumTotalRFPath = 1; else pHalData->NumTotalRFPath = 2; #ifdef CONFIG_DUALMAC_CONCURRENT if(pHalData->bSlaveOfDMSP) { DBG_871X(("PHY_RF6052_Config() skip configuration RF \n")); return rtStatus; } #endif // // Config BB and RF // rtStatus = phy_RF6052_Config_ParaFile(Adapter); return rtStatus; }
int PHY_RF6052_Config8188E( IN PADAPTER Adapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); int rtStatus = _SUCCESS; // // Initialize general global value // // TODO: Extend RF_PATH_C and RF_PATH_D in the future if(pHalData->rf_type == RF_1T1R) pHalData->NumTotalRFPath = 1; else pHalData->NumTotalRFPath = 2; // // Config BB and RF // rtStatus = phy_RF6052_Config_ParaFile(Adapter); #if 0 switch( Adapter->MgntInfo.bRegHwParaFile ) { case 0: phy_RF6052_Config_HardCode(Adapter); break; case 1: rtStatus = phy_RF6052_Config_ParaFile(Adapter); break; case 2: // Partial Modify. phy_RF6052_Config_HardCode(Adapter); phy_RF6052_Config_ParaFile(Adapter); break; default: phy_RF6052_Config_HardCode(Adapter); break; } #endif return rtStatus; }
bool PHY_RF6052_Config(struct net_device* dev) { struct r8192_priv *priv = ieee80211_priv(dev); bool rtStatus = true; u8 bRegHwParaFile = 1; // // Initialize general global value // if(priv->rf_type == RF_1T1R) priv->NumTotalRFPath = 1; else // TODO: Extend RF_PATH_C and RF_PATH_D in the future priv->NumTotalRFPath = 2; // // Config BB and RF // //bRegHwParaFile = priv->bRegHwParaFile; switch(bRegHwParaFile) { case 0: phy_RF6052_Config_HardCode(dev); break; case 1: rtStatus = phy_RF6052_Config_ParaFile(dev); break; case 2: // Partial Modify. phy_RF6052_Config_HardCode(dev); phy_RF6052_Config_ParaFile(dev); break; default: phy_RF6052_Config_HardCode(dev); break; } return rtStatus; }
int PHY_RF6052_Config8723A(struct rtw_adapter *Adapter) { struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter); /* Initialize general global value */ /* TODO: Extend RF_PATH_C and RF_PATH_D in the future */ if (pHalData->rf_type == RF_1T1R) pHalData->NumTotalRFPath = 1; else pHalData->NumTotalRFPath = 2; /* Config BB and RF */ return phy_RF6052_Config_ParaFile(Adapter); }
RT_STATUS PHY_RF6052_Config(struct net_device* dev) { struct r8192_priv *priv = rtllib_priv(dev); RT_STATUS rtStatus = RT_STATUS_SUCCESS; //RF90_RADIO_PATH_E eRFPath; //BB_REGISTER_DEFINITION_T *pPhyReg; //u32 OrgStoreRFIntSW[RF90_PATH_D+1]; // // Initialize general global value // // TODO: Extend RF_PATH_C and RF_PATH_D in the future if(priv->rf_type == RF_1T1R) priv->NumTotalRFPath = 1; else priv->NumTotalRFPath = 2; // // Config BB and RF // // switch( priv->bRegHwParaFile ) // { // case 0: // phy_RF6052_Config_HardCode(dev); // break; // case 1: rtStatus = phy_RF6052_Config_ParaFile(dev); // break; // case 2: // Partial Modify. // phy_RF6052_Config_HardCode(dev); // phy_RF6052_Config_ParaFile(dev); // break; // default: // phy_RF6052_Config_HardCode(dev); // break; // } return rtStatus; }
int PHY_RF6052_Config8188E(struct adapter *Adapter) { struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter); int rtStatus = _SUCCESS; /* */ /* Initialize general global value */ /* */ /* TODO: Extend RF_PATH_C and RF_PATH_D in the future */ if (pHalData->rf_type == RF_1T1R) pHalData->NumTotalRFPath = 1; else pHalData->NumTotalRFPath = 2; /* */ /* Config BB and RF */ /* */ rtStatus = phy_RF6052_Config_ParaFile(Adapter); return rtStatus; }
int PHY_RF6052_Config8723A( IN PADAPTER Adapter) { HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter); int rtStatus = _SUCCESS; // // Initialize general global value // // TODO: Extend RF_PATH_C and RF_PATH_D in the future if(pHalData->rf_type == RF_1T1R) pHalData->NumTotalRFPath = 1; else pHalData->NumTotalRFPath = 2; // // Config BB and RF // rtStatus = phy_RF6052_Config_ParaFile(Adapter); return rtStatus; }