diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192ce/rf.c')
| -rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ce/rf.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c b/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c index e301b12e281a..90d0f2cf3b27 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c | |||
| @@ -34,9 +34,9 @@ | |||
| 34 | #include "rf.h" | 34 | #include "rf.h" |
| 35 | #include "dm.h" | 35 | #include "dm.h" |
| 36 | 36 | ||
| 37 | static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw); | 37 | static bool _rtl92ce_phy_rf6052_config_parafile(struct ieee80211_hw *hw); |
| 38 | 38 | ||
| 39 | void rtl92c_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) | 39 | void rtl92ce_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) |
| 40 | { | 40 | { |
| 41 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 41 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
| 42 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | 42 | struct rtl_phy *rtlphy = &(rtlpriv->phy); |
| @@ -62,7 +62,7 @@ void rtl92c_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) | |||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | void rtl92ce_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, | 64 | void rtl92ce_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, |
| 65 | u8 *ppowerlevel) | 65 | u8 *ppowerlevel) |
| 66 | { | 66 | { |
| 67 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 67 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
| 68 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | 68 | struct rtl_phy *rtlphy = &(rtlpriv->phy); |
| @@ -128,8 +128,7 @@ void rtl92ce_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, | |||
| 128 | 128 | ||
| 129 | tmpval = tx_agc[RF90_PATH_A] >> 8; | 129 | tmpval = tx_agc[RF90_PATH_A] >> 8; |
| 130 | 130 | ||
| 131 | if (mac->mode == WIRELESS_MODE_B) | 131 | tmpval = tmpval & 0xff00ffff; |
| 132 | tmpval = tmpval & 0xff00ffff; | ||
| 133 | 132 | ||
| 134 | rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); | 133 | rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); |
| 135 | 134 | ||
| @@ -440,16 +439,17 @@ bool rtl92ce_phy_rf6052_config(struct ieee80211_hw *hw) | |||
| 440 | else | 439 | else |
| 441 | rtlphy->num_total_rfpath = 2; | 440 | rtlphy->num_total_rfpath = 2; |
| 442 | 441 | ||
| 443 | return _rtl92c_phy_rf6052_config_parafile(hw); | 442 | return _rtl92ce_phy_rf6052_config_parafile(hw); |
| 443 | |||
| 444 | } | 444 | } |
| 445 | 445 | ||
| 446 | static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw) | 446 | static bool _rtl92ce_phy_rf6052_config_parafile(struct ieee80211_hw *hw) |
| 447 | { | 447 | { |
| 448 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 448 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
| 449 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | 449 | struct rtl_phy *rtlphy = &(rtlpriv->phy); |
| 450 | u32 u4_regvalue = 0; | 450 | u32 u4_regvalue = 0; |
| 451 | u8 rfpath; | 451 | u8 rfpath; |
| 452 | bool rtstatus; | 452 | bool rtstatus = true; |
| 453 | struct bb_reg_def *pphyreg; | 453 | struct bb_reg_def *pphyreg; |
| 454 | 454 | ||
| 455 | for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { | 455 | for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { |
| @@ -484,12 +484,12 @@ static bool _rtl92c_phy_rf6052_config_parafile(struct ieee80211_hw *hw) | |||
| 484 | 484 | ||
| 485 | switch (rfpath) { | 485 | switch (rfpath) { |
| 486 | case RF90_PATH_A: | 486 | case RF90_PATH_A: |
| 487 | rtstatus = rtl92ce_phy_config_rf_with_headerfile(hw, | 487 | rtstatus = rtl92c_phy_config_rf_with_headerfile(hw, |
| 488 | (enum radio_path) rfpath); | 488 | (enum radio_path)rfpath); |
| 489 | break; | 489 | break; |
| 490 | case RF90_PATH_B: | 490 | case RF90_PATH_B: |
| 491 | rtstatus = rtl92ce_phy_config_rf_with_headerfile(hw, | 491 | rtstatus = rtl92c_phy_config_rf_with_headerfile(hw, |
| 492 | (enum radio_path) rfpath); | 492 | (enum radio_path)rfpath); |
| 493 | break; | 493 | break; |
| 494 | case RF90_PATH_C: | 494 | case RF90_PATH_C: |
| 495 | break; | 495 | break; |
