42 #include <linux/module.h>
95 rtlpriv->
dm.dm_initialgain_enable =
true;
96 rtlpriv->
dm.dm_flag = 0;
97 rtlpriv->
dm.disable_framebursting =
false;
98 rtlpriv->
dm.thermalvalue = 0;
99 rtlpriv->
dm.useramask =
true;
103 rtlpriv->
phy.current_channel = 36;
105 rtlpriv->
phy.current_channel = 1;
108 rtlpriv->
rtlhal.disable_amsdu_8k =
true;
146 rtlpriv->
dbg.global_debuglevel = rtlpriv->
cfg->mod_params->debug;
148 rtlpriv->
psc.inactiveps = rtlpriv->
cfg->mod_params->inactiveps;
149 rtlpriv->
psc.swctrl_lps = rtlpriv->
cfg->mod_params->swctrl_lps;
150 rtlpriv->
psc.fwctrl_lps = rtlpriv->
cfg->mod_params->fwctrl_lps;
151 if (!rtlpriv->
psc.inactiveps)
152 pr_info(
"Power Save off (module option)\n");
153 if (!rtlpriv->
psc.fwctrl_lps)
154 pr_info(
"FW Power Save off (module option)\n");
155 rtlpriv->
psc.reg_fwctrl_lps = 3;
156 rtlpriv->
psc.reg_max_lps_awakeintvl = 5;
159 rtl92d_init_aspm_vars(hw);
161 if (rtlpriv->
psc.reg_fwctrl_lps == 1)
163 else if (rtlpriv->
psc.reg_fwctrl_lps == 2)
165 else if (rtlpriv->
psc.reg_fwctrl_lps == 3)
169 rtlpriv->
rtlhal.earlymode_enable =
true;
170 for (tid = 0; tid < 8; tid++)
171 skb_queue_head_init(&rtlpriv->
mac80211.skb_waitq[tid]);
175 if (!rtlpriv->
rtlhal.pfirmware) {
177 "Can't alloc buffer for fw\n");
182 pr_info(
"Driver for Realtek RTL8192DE WLAN interface\n");
183 pr_info(
"Loading firmware file %s\n", rtlpriv->
cfg->fw_name);
191 "Failed to request firmware!\n");
198 static void rtl92d_deinit_sw_vars(
struct ieee80211_hw *hw)
203 if (rtlpriv->
rtlhal.pfirmware) {
207 for (tid = 0; tid < 8; tid++)
212 .init_sw_vars = rtl92d_init_sw_vars,
213 .deinit_sw_vars = rtl92d_deinit_sw_vars,
265 .write_readback =
true,
267 .fw_name =
"rtlwifi/rtl8192defw.bin",
268 .ops = &rtl8192de_hal_ops,
269 .mod_params = &rtl92de_mod_params,
377 MODULE_PARM_DESC(swlps,
"Set to 1 to use SW control power save (default 0)\n");
378 MODULE_PARM_DESC(fwlps,
"Set to 1 to use FW control power save (default 1)\n");
381 static const struct dev_pm_ops rtlwifi_pm_ops = {
391 .name = KBUILD_MODNAME,
392 .id_table = rtl92de_pci_ids,
395 .driver.pm = &rtlwifi_pm_ops,
404 static int __init rtl92de_module_init(
void)
412 ret = pci_register_driver(&rtl92de_driver);
414 RT_ASSERT(
false,
"No device found\n");
418 static void __exit rtl92de_module_exit(
void)