diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2014-09-22 10:39:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-26 17:22:28 -0400 |
commit | d3feae41a3473a0f7b431d6af4e092865d586e52 (patch) | |
tree | 43302b96adb47881f637a8a201c6a0a573aaa180 /drivers/net/wireless/rtlwifi/rtl8723be/hw.c | |
parent | 3c67b8f9f3b5bb1207c9bb198e5ef04ff56921dd (diff) |
rtlwifi: Update power-save routines for 062814 driver
Realtek released a new version of the drivers on 06/28/2014. This
patch implements the new power-save code. These changes also force
corresponding changes in the drivers.
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/rtl8723be/hw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723be/hw.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c index 3cd286930fe0..1b939183f39d 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "../rtl8723com/fw_common.h" | 39 | #include "../rtl8723com/fw_common.h" |
40 | #include "led.h" | 40 | #include "led.h" |
41 | #include "hw.h" | 41 | #include "hw.h" |
42 | #include "pwrseqcmd.h" | ||
42 | #include "pwrseq.h" | 43 | #include "pwrseq.h" |
43 | #include "../btcoexist/rtl_btc.h" | 44 | #include "../btcoexist/rtl_btc.h" |
44 | 45 | ||
@@ -814,9 +815,9 @@ static bool _rtl8723be_init_mac(struct ieee80211_hw *hw) | |||
814 | mac_func_enable = false; | 815 | mac_func_enable = false; |
815 | 816 | ||
816 | /* HW Power on sequence */ | 817 | /* HW Power on sequence */ |
817 | if (!rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, | 818 | if (!rtlbe_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, |
818 | PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, | 819 | PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, |
819 | RTL8723_NIC_ENABLE_FLOW)) { | 820 | RTL8723_NIC_ENABLE_FLOW)) { |
820 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, | 821 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, |
821 | "init MAC Fail as power on failure\n"); | 822 | "init MAC Fail as power on failure\n"); |
822 | return false; | 823 | return false; |
@@ -1305,8 +1306,8 @@ static void _rtl8723be_poweroff_adapter(struct ieee80211_hw *hw) | |||
1305 | 1306 | ||
1306 | /* Combo (PCIe + USB) Card and PCIe-MF Card */ | 1307 | /* Combo (PCIe + USB) Card and PCIe-MF Card */ |
1307 | /* 1. Run LPS WL RFOFF flow */ | 1308 | /* 1. Run LPS WL RFOFF flow */ |
1308 | rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, | 1309 | rtlbe_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, |
1309 | PWR_INTF_PCI_MSK, RTL8723_NIC_LPS_ENTER_FLOW); | 1310 | PWR_INTF_PCI_MSK, RTL8723_NIC_LPS_ENTER_FLOW); |
1310 | 1311 | ||
1311 | /* 2. 0x1F[7:0] = 0 */ | 1312 | /* 2. 0x1F[7:0] = 0 */ |
1312 | /* turn off RF */ | 1313 | /* turn off RF */ |
@@ -1324,8 +1325,8 @@ static void _rtl8723be_poweroff_adapter(struct ieee80211_hw *hw) | |||
1324 | rtl_write_byte(rtlpriv, REG_MCUFWDL, 0x00); | 1325 | rtl_write_byte(rtlpriv, REG_MCUFWDL, 0x00); |
1325 | 1326 | ||
1326 | /* HW card disable configuration. */ | 1327 | /* HW card disable configuration. */ |
1327 | rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, | 1328 | rtlbe_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, |
1328 | PWR_INTF_PCI_MSK, RTL8723_NIC_DISABLE_FLOW); | 1329 | PWR_INTF_PCI_MSK, RTL8723_NIC_DISABLE_FLOW); |
1329 | 1330 | ||
1330 | /* Reset MCU IO Wrapper */ | 1331 | /* Reset MCU IO Wrapper */ |
1331 | u1b_tmp = rtl_read_byte(rtlpriv, REG_RSV_CTRL + 1); | 1332 | u1b_tmp = rtl_read_byte(rtlpriv, REG_RSV_CTRL + 1); |