mirror of https://gitee.com/openkylin/linux.git
rtlwifi: rtl8723ae: Fix initialization of module parameters
This driver has some errors in the handling of module parameters. These include missing initialization for parameters msi_support and disable_watchdog. In addition, neither of these parameters nor sw_crypto are transferred into the locations used by the driver. A final fix is adding parameter msi to the module named and description macros. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Stable <stable@vger.kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
7079604ddb
commit
793b099942
|
@ -150,6 +150,11 @@ int rtl8723e_init_sw_vars(struct ieee80211_hw *hw)
|
|||
rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps;
|
||||
rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
|
||||
rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
|
||||
rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support;
|
||||
rtlpriv->cfg->mod_params->sw_crypto =
|
||||
rtlpriv->cfg->mod_params->sw_crypto;
|
||||
rtlpriv->cfg->mod_params->disable_watchdog =
|
||||
rtlpriv->cfg->mod_params->disable_watchdog;
|
||||
if (rtlpriv->cfg->mod_params->disable_watchdog)
|
||||
pr_info("watchdog disabled\n");
|
||||
rtlpriv->psc.reg_fwctrl_lps = 3;
|
||||
|
@ -267,6 +272,8 @@ static struct rtl_mod_params rtl8723e_mod_params = {
|
|||
.swctrl_lps = false,
|
||||
.fwctrl_lps = true,
|
||||
.debug = DBG_EMERG,
|
||||
.msi_support = false,
|
||||
.disable_watchdog = false,
|
||||
};
|
||||
|
||||
static struct rtl_hal_cfg rtl8723e_hal_cfg = {
|
||||
|
@ -383,12 +390,14 @@ module_param_named(debug, rtl8723e_mod_params.debug, int, 0444);
|
|||
module_param_named(ips, rtl8723e_mod_params.inactiveps, bool, 0444);
|
||||
module_param_named(swlps, rtl8723e_mod_params.swctrl_lps, bool, 0444);
|
||||
module_param_named(fwlps, rtl8723e_mod_params.fwctrl_lps, bool, 0444);
|
||||
module_param_named(msi, rtl8723e_mod_params.msi_support, bool, 0444);
|
||||
module_param_named(disable_watchdog, rtl8723e_mod_params.disable_watchdog,
|
||||
bool, 0444);
|
||||
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(swlps, "Set to 1 to use SW control power save (default 0)\n");
|
||||
MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n");
|
||||
MODULE_PARM_DESC(msi, "Set to 1 to use MSI interrupts mode (default 0)\n");
|
||||
MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)");
|
||||
MODULE_PARM_DESC(disable_watchdog, "Set to 1 to disable the watchdog (default 0)\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue