44 #include <linux/module.h>
100 "Firmware callback routine entered!\n");
103 pr_err(
"Firmware %s not available\n", rtlpriv->
cfg->fw_name);
109 "Firmware is too big!\n");
122 "Can't register mac80211 hw\n");
125 rtlpriv->
mac80211.mac80211_registered = 1;
139 u16 earlyrxthreshold = 7;
141 rtlpriv->
dm.dm_initialgain_enable =
true;
142 rtlpriv->
dm.dm_flag = 0;
143 rtlpriv->
dm.disable_framebursting =
false;
144 rtlpriv->
dm.thermalvalue = 0;
145 rtlpriv->
dm.useramask =
true;
205 rtlpriv->
dbg.global_debuglevel = rtlpriv->
cfg->mod_params->debug;
207 rtlpriv->
psc.inactiveps = rtlpriv->
cfg->mod_params->inactiveps;
208 rtlpriv->
psc.swctrl_lps = rtlpriv->
cfg->mod_params->swctrl_lps;
209 rtlpriv->
psc.fwctrl_lps = rtlpriv->
cfg->mod_params->fwctrl_lps;
210 if (!rtlpriv->
psc.inactiveps)
211 pr_info(
"Power Save off (module option)\n");
212 if (!rtlpriv->
psc.fwctrl_lps)
213 pr_info(
"FW Power Save off (module option)\n");
214 rtlpriv->
psc.reg_fwctrl_lps = 3;
215 rtlpriv->
psc.reg_max_lps_awakeintvl = 5;
218 rtl92s_init_aspm_vars(hw);
220 if (rtlpriv->
psc.reg_fwctrl_lps == 1)
222 else if (rtlpriv->
psc.reg_fwctrl_lps == 2)
224 else if (rtlpriv->
psc.reg_fwctrl_lps == 3)
229 if (!rtlpriv->
rtlhal.pfirmware)
234 pr_info(
"Driver for Realtek RTL8192SE/RTL8191SE\n"
235 "Loading firmware %s\n", rtlpriv->
cfg->fw_name);
242 "Failed to request firmware!\n");
249 static void rtl92s_deinit_sw_vars(
struct ieee80211_hw *hw)
253 if (rtlpriv->
rtlhal.pfirmware) {
260 .init_sw_vars = rtl92s_init_sw_vars,
261 .deinit_sw_vars = rtl92s_deinit_sw_vars,
314 .write_readback =
false,
315 .name =
"rtl92s_pci",
316 .fw_name =
"rtlwifi/rtl8192sefw.bin",
317 .ops = &rtl8192se_hal_ops,
318 .mod_params = &rtl92se_mod_params,
431 MODULE_PARM_DESC(swlps,
"Set to 1 to use SW control power save (default 0)\n");
432 MODULE_PARM_DESC(fwlps,
"Set to 1 to use FW control power save (default 1)\n");
435 static const struct dev_pm_ops rtlwifi_pm_ops = {
445 .name = KBUILD_MODNAME,
446 .id_table = rtl92se_pci_ids,
449 .driver.pm = &rtlwifi_pm_ops,