43 #include <linux/module.h>
98 rtlpriv->
dm.dm_initialgain_enable =
true;
99 rtlpriv->
dm.dm_flag = 0;
100 rtlpriv->
dm.disable_framebursting =
false;
101 rtlpriv->
dm.thermalvalue = 0;
133 rtlpriv->
dbg.global_debuglevel = rtlpriv->
cfg->mod_params->debug;
135 rtlpriv->
psc.inactiveps = rtlpriv->
cfg->mod_params->inactiveps;
136 rtlpriv->
psc.swctrl_lps = rtlpriv->
cfg->mod_params->swctrl_lps;
137 rtlpriv->
psc.fwctrl_lps = rtlpriv->
cfg->mod_params->fwctrl_lps;
138 if (!rtlpriv->
psc.inactiveps)
139 pr_info(
"rtl8192ce: Power Save off (module option)\n");
140 if (!rtlpriv->
psc.fwctrl_lps)
141 pr_info(
"rtl8192ce: FW Power Save off (module option)\n");
142 rtlpriv->
psc.reg_fwctrl_lps = 3;
143 rtlpriv->
psc.reg_max_lps_awakeintvl = 5;
146 rtl92c_init_aspm_vars(hw);
148 if (rtlpriv->
psc.reg_fwctrl_lps == 1)
150 else if (rtlpriv->
psc.reg_fwctrl_lps == 2)
152 else if (rtlpriv->
psc.reg_fwctrl_lps == 3)
157 if (!rtlpriv->
rtlhal.pfirmware) {
159 "Can't alloc buffer for fw\n");
166 rtlpriv->
cfg->fw_name =
"rtlwifi/rtl8192cfwU.bin";
168 rtlpriv->
cfg->fw_name =
"rtlwifi/rtl8192cfwU_B.bin";
169 pr_info(
"****** This B_CUT device may not work with kernels 3.6 and earlier\n");
173 pr_info(
"Using firmware %s\n", rtlpriv->
cfg->fw_name);
179 "Failed to request firmware!\n");
190 if (rtlpriv->
rtlhal.pfirmware) {
257 .write_readback =
true,
258 .name =
"rtl92c_pci",
259 .fw_name =
"rtlwifi/rtl8192cfw.bin",
260 .ops = &rtl8192ce_hal_ops,
261 .mod_params = &rtl92ce_mod_params,
373 MODULE_PARM_DESC(swlps,
"Set to 1 to use SW control power save (default 0)\n");
374 MODULE_PARM_DESC(fwlps,
"Set to 1 to use FW control power save (default 1)\n");
377 static const struct dev_pm_ops rtlwifi_pm_ops = {
387 .name = KBUILD_MODNAME,
388 .id_table = rtl92ce_pci_ids,
391 .driver.pm = &rtlwifi_pm_ops,