rf_type is always equal to RF_1T1R.

Signed-off-by: Ivan Safonov <insafo...@gmail.com>
---
 drivers/staging/rtl8188eu/hal/bb_cfg.c            | 5 +----
 drivers/staging/rtl8188eu/hal/phy.c               | 5 +----
 drivers/staging/rtl8188eu/hal/rf_cfg.c            | 5 +----
 drivers/staging/rtl8188eu/hal/rtl8188e_dm.c       | 7 +------
 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 3 ---
 drivers/staging/rtl8188eu/hal/usb_halinit.c       | 2 +-
 drivers/staging/rtl8188eu/include/rtl8188e_hal.h  | 1 -
 7 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.c 
b/drivers/staging/rtl8188eu/hal/bb_cfg.c
index c349923..134fa6c 100644
--- a/drivers/staging/rtl8188eu/hal/bb_cfg.c
+++ b/drivers/staging/rtl8188eu/hal/bb_cfg.c
@@ -518,8 +518,7 @@ static void store_pwrindex_offset(struct adapter *adapter,
                power_level_offset[4] = data;
        if (regaddr == rTxAGC_A_Mcs15_Mcs12) {
                power_level_offset[5] = data;
-               if (hal_data->rf_type == RF_1T1R)
-                       hal_data->pwrGroupCnt++;
+               hal_data->pwrGroupCnt++;
        }
        if (regaddr == rTxAGC_B_Rate18_06)
                power_level_offset[8] = data;
@@ -537,8 +536,6 @@ static void store_pwrindex_offset(struct adapter *adapter,
                power_level_offset[12] = data;
        if (regaddr == rTxAGC_B_Mcs15_Mcs12) {
                power_level_offset[13] = data;
-               if (hal_data->rf_type != RF_1T1R)
-                       hal_data->pwrGroupCnt++;
        }
 }
 
diff --git a/drivers/staging/rtl8188eu/hal/phy.c 
b/drivers/staging/rtl8188eu/hal/phy.c
index 4e3c2e6..aaf8c26 100644
--- a/drivers/staging/rtl8188eu/hal/phy.c
+++ b/drivers/staging/rtl8188eu/hal/phy.c
@@ -149,10 +149,7 @@ static void get_tx_power_index(struct adapter *adapt, u8 
channel, u8 *cck_pwr,
        u8 index = (channel - 1);
        u8 TxCount = 0, path_nums;
 
-       if ((RF_1T2R == hal_data->rf_type) || (RF_1T1R == hal_data->rf_type))
-               path_nums = 1;
-       else
-               path_nums = 2;
+       path_nums = 1;
 
        for (TxCount = 0; TxCount < path_nums; TxCount++) {
                if (TxCount == RF_PATH_A) {
diff --git a/drivers/staging/rtl8188eu/hal/rf_cfg.c 
b/drivers/staging/rtl8188eu/hal/rf_cfg.c
index dc26ad3..dde6441 100644
--- a/drivers/staging/rtl8188eu/hal/rf_cfg.c
+++ b/drivers/staging/rtl8188eu/hal/rf_cfg.c
@@ -301,10 +301,7 @@ static bool rtl88e_phy_rf6052_config(struct adapter *adapt)
 {
        struct hal_data_8188e *hal_data = adapt->HalData;
 
-       if (hal_data->rf_type == RF_1T1R)
-               hal_data->NumTotalRFPath = 1;
-       else
-               hal_data->NumTotalRFPath = 2;
+       hal_data->NumTotalRFPath = 1;
 
        return rf6052_conf_para(adapt);
 }
diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c 
b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
index 964b169..62c75cc 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
@@ -57,12 +57,7 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)
        dm_odm->PatchID = hal_data->CustomerID;
        dm_odm->bWIFITest = Adapter->registrypriv.wifi_spec;
 
-       if (hal_data->rf_type == RF_1T1R)
-               dm_odm->RFType = ODM_1T1R;
-       else if (hal_data->rf_type == RF_2T2R)
-               dm_odm->RFType = ODM_2T2R;
-       else if (hal_data->rf_type == RF_1T2R)
-               dm_odm->RFType = ODM_1T2R;
+       dm_odm->RFType = ODM_1T1R;
 
        dm_odm->AntDivType = hal_data->TRxAntDivType;
 
diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c 
b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
index a7b0375..385bc2f 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
@@ -135,10 +135,7 @@ void rtw_hal_read_chip_version(struct adapter *padapter)
        dump_chip_info(ChipVersion);
 
        pHalData->VersionID = ChipVersion;
-       pHalData->rf_type = RF_1T1R;
        pHalData->NumTotalRFPath = 1;
-
-       MSG_88E("RF_Type is %x!!\n", pHalData->rf_type);
 }
 
 void rtw_hal_set_odm_var(struct adapter *Adapter, enum hal_odm_variable 
eVariable, void *pValue1, bool bSet)
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c 
b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index 113bd0b..7692ca4 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1763,7 +1763,7 @@ void rtw_hal_get_hwreg(struct adapter *Adapter, u8 
variable, u8 *val)
                val[0] = (BIT(0) & usb_read8(Adapter, REG_TDECTRL+2)) ? true : 
false;
                break;
        case HW_VAR_RF_TYPE:
-               val[0] = Adapter->HalData->rf_type;
+               val[0] = RF_1T1R;
                break;
        case HW_VAR_FWLPS_RF_ON:
                {
diff --git a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h 
b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
index 34268d9..7c81e3f 100644
--- a/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
+++ b/drivers/staging/rtl8188eu/include/rtl8188e_hal.h
@@ -202,7 +202,6 @@ struct hal_data_8188e {
 
        /* rf_ctrl */
        u8      rf_chip;
-       u8      rf_type;
        u8      NumTotalRFPath;
 
        u8      BoardType;
-- 
2.7.3

Reply via email to