diff options
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/sw.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/sw.c b/drivers/net/wireless/rtlwifi/rtl8192de/sw.c index f6419b7ed2f4..c681597c7f20 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/sw.c | |||
@@ -150,6 +150,10 @@ static int rtl92d_init_sw_vars(struct ieee80211_hw *hw) | |||
150 | rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; | 150 | rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; |
151 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; | 151 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; |
152 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; | 152 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
153 | if (!rtlpriv->psc.inactiveps) | ||
154 | pr_info("rtl8192ce: Power Save off (module option)\n"); | ||
155 | if (!rtlpriv->psc.fwctrl_lps) | ||
156 | pr_info("rtl8192ce: FW Power Save off (module option)\n"); | ||
153 | rtlpriv->psc.reg_fwctrl_lps = 3; | 157 | rtlpriv->psc.reg_fwctrl_lps = 3; |
154 | rtlpriv->psc.reg_max_lps_awakeintvl = 5; | 158 | rtlpriv->psc.reg_max_lps_awakeintvl = 5; |
155 | /* for ASPM, you can close aspm through | 159 | /* for ASPM, you can close aspm through |
@@ -376,10 +380,10 @@ module_param_named(swenc, rtl92de_mod_params.sw_crypto, bool, 0444); | |||
376 | module_param_named(ips, rtl92de_mod_params.inactiveps, bool, 0444); | 380 | module_param_named(ips, rtl92de_mod_params.inactiveps, bool, 0444); |
377 | module_param_named(swlps, rtl92de_mod_params.swctrl_lps, bool, 0444); | 381 | module_param_named(swlps, rtl92de_mod_params.swctrl_lps, bool, 0444); |
378 | module_param_named(fwlps, rtl92de_mod_params.fwctrl_lps, bool, 0444); | 382 | module_param_named(fwlps, rtl92de_mod_params.fwctrl_lps, bool, 0444); |
379 | MODULE_PARM_DESC(swenc, "using hardware crypto (default 0 [hardware])\n"); | 383 | MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); |
380 | MODULE_PARM_DESC(ips, "using no link power save (default 1 is open)\n"); | 384 | MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); |
381 | MODULE_PARM_DESC(swlps, "using linked sw control power save (default 1" | 385 | MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); |
382 | " is open)\n"); | 386 | MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); |
383 | 387 | ||
384 | static struct pci_driver rtl92de_driver = { | 388 | static struct pci_driver rtl92de_driver = { |
385 | .name = KBUILD_MODNAME, | 389 | .name = KBUILD_MODNAME, |