rtlwifi: Modify power mode parameters of 8723be and 8821ae.
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 21 Jun 2017 17:15:33 +0000 (12:15 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Jun 2017 17:50:59 +0000 (20:50 +0300)
Change the parameters suggested by FW.
awake int: 2
smart_ps: 2 or 0
ps_mode: 2 (MAX -- every DTIM)

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c

index 8c0ac96b543005efe8348b7f09dfa4f2be725e90..f9d10f1e7cf8a6b9a2f75961aaf7ee1e903773b0 100644 (file)
@@ -155,8 +155,8 @@ int rtl8723be_init_sw_vars(struct ieee80211_hw *hw)
                 rtlpriv->cfg->mod_params->disable_watchdog;
        if (rtlpriv->cfg->mod_params->disable_watchdog)
                pr_info("watchdog disabled\n");
-       rtlpriv->psc.reg_fwctrl_lps = 3;
-       rtlpriv->psc.reg_max_lps_awakeintvl = 5;
+       rtlpriv->psc.reg_fwctrl_lps = 2;
+       rtlpriv->psc.reg_max_lps_awakeintvl = 2;
        /* for ASPM, you can close aspm through
         * set const_support_pciaspm = 0
         */
index abaf34cb14331487d8bd3ad789ea5450148d74f4..d71d2776ca03290eac3a834bf16775d87163214d 100644 (file)
@@ -172,8 +172,8 @@ int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw)
                rtlpriv->cfg->mod_params->disable_watchdog;
        if (rtlpriv->cfg->mod_params->disable_watchdog)
                pr_info("watchdog disabled\n");
-       rtlpriv->psc.reg_fwctrl_lps = 3;
-       rtlpriv->psc.reg_max_lps_awakeintvl = 5;
+       rtlpriv->psc.reg_fwctrl_lps = 2;
+       rtlpriv->psc.reg_max_lps_awakeintvl = 2;
 
        /* for ASPM, you can close aspm through
         * set const_support_pciaspm = 0