mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
rtlwifi: rtl8192se: Fix module parameter initialization
commit 7503efbd82 upstream.
Two of the module parameter descriptions show incorrect default values.
In addition the value for software encryption is not transferred to
the locations used by the driver.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
626f652ac5
commit
da5c2c01da
@@ -187,6 +187,8 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw)
|
|||||||
rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps;
|
rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps;
|
||||||
rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
|
rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
|
||||||
rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
|
rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
|
||||||
|
rtlpriv->cfg->mod_params->sw_crypto =
|
||||||
|
rtlpriv->cfg->mod_params->sw_crypto;
|
||||||
if (!rtlpriv->psc.inactiveps)
|
if (!rtlpriv->psc.inactiveps)
|
||||||
pr_info("Power Save off (module option)\n");
|
pr_info("Power Save off (module option)\n");
|
||||||
if (!rtlpriv->psc.fwctrl_lps)
|
if (!rtlpriv->psc.fwctrl_lps)
|
||||||
@@ -425,8 +427,8 @@ module_param_named(swlps, rtl92se_mod_params.swctrl_lps, bool, 0444);
|
|||||||
module_param_named(fwlps, rtl92se_mod_params.fwctrl_lps, bool, 0444);
|
module_param_named(fwlps, rtl92se_mod_params.fwctrl_lps, bool, 0444);
|
||||||
MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n");
|
MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n");
|
||||||
MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n");
|
MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n");
|
||||||
MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n");
|
MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 1)\n");
|
||||||
MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n");
|
MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 0)\n");
|
||||||
MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)");
|
MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)");
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume);
|
static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume);
|
||||||
|
|||||||
Reference in New Issue
Block a user