.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2012 Realtek Corporation. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of version 2 of the GNU General Public License as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * The full GNU General Public License is included in this distribution in the |
---|
15 | | - * file called LICENSE. |
---|
16 | | - * |
---|
17 | | - * Contact Information: |
---|
18 | | - * wlanfae <wlanfae@realtek.com> |
---|
19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
---|
20 | | - * Hsinchu 300, Taiwan. |
---|
21 | | - * |
---|
22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
---|
23 | | - * |
---|
24 | | - *****************************************************************************/ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
---|
25 | 3 | |
---|
26 | 4 | #include "../wifi.h" |
---|
27 | 5 | #include "../core.h" |
---|
.. | .. |
---|
33 | 11 | #include "fw.h" |
---|
34 | 12 | #include "../rtl8723com/fw_common.h" |
---|
35 | 13 | #include "hw.h" |
---|
36 | | -#include "sw.h" |
---|
37 | 14 | #include "trx.h" |
---|
38 | 15 | #include "led.h" |
---|
39 | 16 | #include "table.h" |
---|
.. | .. |
---|
89 | 66 | rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; |
---|
90 | 67 | } |
---|
91 | 68 | |
---|
92 | | -int rtl8723e_init_sw_vars(struct ieee80211_hw *hw) |
---|
| 69 | +static int rtl8723e_init_sw_vars(struct ieee80211_hw *hw) |
---|
93 | 70 | { |
---|
94 | 71 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
---|
95 | 72 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
---|
.. | .. |
---|
101 | 78 | |
---|
102 | 79 | rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); |
---|
103 | 80 | |
---|
104 | | - rtlpriv->dm.dm_initialgain_enable = 1; |
---|
| 81 | + rtlpriv->dm.dm_initialgain_enable = true; |
---|
105 | 82 | rtlpriv->dm.dm_flag = 0; |
---|
106 | | - rtlpriv->dm.disable_framebursting = 0; |
---|
| 83 | + rtlpriv->dm.disable_framebursting = false; |
---|
107 | 84 | rtlpriv->dm.thermalvalue = 0; |
---|
108 | 85 | rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); |
---|
109 | 86 | |
---|
.. | .. |
---|
151 | 128 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; |
---|
152 | 129 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
---|
153 | 130 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; |
---|
154 | | - rtlpriv->cfg->mod_params->sw_crypto = |
---|
155 | | - rtlpriv->cfg->mod_params->sw_crypto; |
---|
156 | | - rtlpriv->cfg->mod_params->disable_watchdog = |
---|
157 | | - rtlpriv->cfg->mod_params->disable_watchdog; |
---|
158 | 131 | if (rtlpriv->cfg->mod_params->disable_watchdog) |
---|
159 | 132 | pr_info("watchdog disabled\n"); |
---|
160 | 133 | rtlpriv->psc.reg_fwctrl_lps = 3; |
---|
.. | .. |
---|
175 | 148 | return 1; |
---|
176 | 149 | } |
---|
177 | 150 | |
---|
178 | | - if (IS_81xxC_VENDOR_UMC_B_CUT(rtlhal->version)) |
---|
| 151 | + if (IS_81XXC_VENDOR_UMC_B_CUT(rtlhal->version)) |
---|
179 | 152 | fw_name = "rtlwifi/rtl8723fw_B.bin"; |
---|
180 | 153 | |
---|
181 | 154 | rtlpriv->max_fw_size = 0x6000; |
---|
.. | .. |
---|
192 | 165 | return 0; |
---|
193 | 166 | } |
---|
194 | 167 | |
---|
195 | | -void rtl8723e_deinit_sw_vars(struct ieee80211_hw *hw) |
---|
| 168 | +static void rtl8723e_deinit_sw_vars(struct ieee80211_hw *hw) |
---|
196 | 169 | { |
---|
197 | 170 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
---|
198 | 171 | |
---|
.. | .. |
---|
203 | 176 | } |
---|
204 | 177 | |
---|
205 | 178 | /* get bt coexist status */ |
---|
206 | | -bool rtl8723e_get_btc_status(void) |
---|
| 179 | +static bool rtl8723e_get_btc_status(void) |
---|
207 | 180 | { |
---|
208 | 181 | return true; |
---|
209 | 182 | } |
---|
.. | .. |
---|
266 | 239 | static struct rtl_mod_params rtl8723e_mod_params = { |
---|
267 | 240 | .sw_crypto = false, |
---|
268 | 241 | .inactiveps = true, |
---|
269 | | - .swctrl_lps = false, |
---|
270 | | - .fwctrl_lps = true, |
---|
| 242 | + .swctrl_lps = true, |
---|
| 243 | + .fwctrl_lps = false, |
---|
271 | 244 | .aspm_support = 1, |
---|
272 | 245 | .debug_level = 0, |
---|
273 | 246 | .debug_mask = 0, |
---|
.. | .. |
---|
395 | 368 | bool, 0444); |
---|
396 | 369 | MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); |
---|
397 | 370 | MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); |
---|
398 | | -MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); |
---|
399 | | -MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); |
---|
| 371 | +MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 1)\n"); |
---|
| 372 | +MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 0)\n"); |
---|
400 | 373 | MODULE_PARM_DESC(msi, "Set to 1 to use MSI interrupts mode (default 0)\n"); |
---|
401 | 374 | MODULE_PARM_DESC(aspm, "Set to 1 to enable ASPM (default 1)\n"); |
---|
402 | 375 | MODULE_PARM_DESC(debug_level, "Set debug level (0-5) (default 0)"); |
---|