diff options
author | Chaoming_Li <chaoming_li@realsil.com.cn> | 2011-04-25 13:54:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-26 16:14:55 -0400 |
commit | 76c34f910a5c99a402de5068444563d4c151e794 (patch) | |
tree | 0845a2441841e07e2b0fb0d59ecf815ad72b7520 /drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | |
parent | e0b5a5078675f58736787982af811244eeb98081 (diff) |
rtlwifi: rtl8192ce: Change rtl8192ce routines phy and trx and modify rtl8192cu for addition of rtl8192se and rtl8192de
Change rtl8192ce routines phy and trx for addition of RTL8192SE and RTL8192DE.
In addition, make necessary modifications to rtl8192cu. This patch also
removes the temporary patches needed to enable intermediate steps to build
without error.
Signed-off-by: Chaoming_Li <chaoming_li@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu/hw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index 861f39fad3ec..52e2af58c1ed 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | |||
@@ -39,10 +39,10 @@ | |||
39 | #include "mac.h" | 39 | #include "mac.h" |
40 | #include "dm.h" | 40 | #include "dm.h" |
41 | #include "hw.h" | 41 | #include "hw.h" |
42 | #include "../rtl8192ce/hw.h" | ||
42 | #include "trx.h" | 43 | #include "trx.h" |
43 | #include "led.h" | 44 | #include "led.h" |
44 | #include "table.h" | 45 | #include "table.h" |
45 | #include "../rtl8192ce/hw.h" | ||
46 | 46 | ||
47 | static void _rtl92cu_phy_param_tab_init(struct ieee80211_hw *hw) | 47 | static void _rtl92cu_phy_param_tab_init(struct ieee80211_hw *hw) |
48 | { | 48 | { |
@@ -606,12 +606,10 @@ void rtl92cu_read_eeprom_info(struct ieee80211_hw *hw) | |||
606 | if (!IS_NORMAL_CHIP(rtlhal->version)) | 606 | if (!IS_NORMAL_CHIP(rtlhal->version)) |
607 | return; | 607 | return; |
608 | tmp_u1b = rtl_read_byte(rtlpriv, REG_9346CR); | 608 | tmp_u1b = rtl_read_byte(rtlpriv, REG_9346CR); |
609 | #if 0 /* temporary */ | 609 | rtlefuse->epromtype = (tmp_u1b & BOOT_FROM_EEPROM) ? |
610 | rtlefuse->epromtype = (tmp_u1b & EEPROMSEL) ? | ||
611 | EEPROM_93C46 : EEPROM_BOOT_EFUSE; | 610 | EEPROM_93C46 : EEPROM_BOOT_EFUSE; |
612 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, ("Boot from %s\n", | 611 | RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, ("Boot from %s\n", |
613 | (tmp_u1b & EEPROMSEL) ? "EERROM" : "EFUSE")); | 612 | (tmp_u1b & BOOT_FROM_EEPROM) ? "EERROM" : "EFUSE")); |
614 | #endif | ||
615 | rtlefuse->autoload_failflag = (tmp_u1b & EEPROM_EN) ? false : true; | 613 | rtlefuse->autoload_failflag = (tmp_u1b & EEPROM_EN) ? false : true; |
616 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("Autoload %s\n", | 614 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("Autoload %s\n", |
617 | (tmp_u1b & EEPROM_EN) ? "OK!!" : "ERR!!")); | 615 | (tmp_u1b & EEPROM_EN) ? "OK!!" : "ERR!!")); |
@@ -980,7 +978,7 @@ static void _rtl92cu_init_wmac_setting(struct ieee80211_hw *hw) | |||
980 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 978 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
981 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); | 979 | struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); |
982 | 980 | ||
983 | mac->rx_conf = (RCR_APM | RCR_AM | RCR_ADF | RCR_AB | RCR_APP_FCS | | 981 | mac->rx_conf = (RCR_APM | RCR_AM | RCR_ADF | RCR_AB | RCR_APPFCS | |
984 | RCR_APP_ICV | RCR_AMF | RCR_HTC_LOC_CTRL | | 982 | RCR_APP_ICV | RCR_AMF | RCR_HTC_LOC_CTRL | |
985 | RCR_APP_MIC | RCR_APP_PHYSTS | RCR_ACRC32); | 983 | RCR_APP_MIC | RCR_APP_PHYSTS | RCR_ACRC32); |
986 | rtl_write_dword(rtlpriv, REG_RCR, mac->rx_conf); | 984 | rtl_write_dword(rtlpriv, REG_RCR, mac->rx_conf); |
@@ -2185,7 +2183,9 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
2185 | } | 2183 | } |
2186 | } | 2184 | } |
2187 | 2185 | ||
2188 | void rtl92cu_update_hal_rate_table(struct ieee80211_hw *hw) | 2186 | void rtl92cu_update_hal_rate_table(struct ieee80211_hw *hw, |
2187 | struct ieee80211_sta *sta, | ||
2188 | u8 rssi_level) | ||
2189 | { | 2189 | { |
2190 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 2190 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
2191 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | 2191 | struct rtl_phy *rtlphy = &(rtlpriv->phy); |