.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2014 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-2014 Realtek Corporation.*/ |
---|
25 | 3 | |
---|
26 | 4 | #include "../wifi.h" |
---|
27 | 5 | #include "../core.h" |
---|
.. | .. |
---|
35 | 13 | #include "hw.h" |
---|
36 | 14 | #include "fw.h" |
---|
37 | 15 | #include "../rtl8723com/fw_common.h" |
---|
38 | | -#include "sw.h" |
---|
39 | 16 | #include "trx.h" |
---|
40 | 17 | #include "led.h" |
---|
41 | 18 | #include "table.h" |
---|
.. | .. |
---|
86 | 63 | rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; |
---|
87 | 64 | } |
---|
88 | 65 | |
---|
89 | | -int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) |
---|
| 66 | +static int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) |
---|
90 | 67 | { |
---|
91 | 68 | int err = 0; |
---|
92 | 69 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
---|
.. | .. |
---|
97 | 74 | rtl8723be_bt_reg_init(hw); |
---|
98 | 75 | rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); |
---|
99 | 76 | |
---|
100 | | - rtlpriv->dm.dm_initialgain_enable = 1; |
---|
| 77 | + rtlpriv->dm.dm_initialgain_enable = true; |
---|
101 | 78 | rtlpriv->dm.dm_flag = 0; |
---|
102 | | - rtlpriv->dm.disable_framebursting = 0; |
---|
| 79 | + rtlpriv->dm.disable_framebursting = false; |
---|
103 | 80 | rtlpriv->dm.thermalvalue = 0; |
---|
104 | 81 | rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); |
---|
105 | 82 | |
---|
.. | .. |
---|
150 | 127 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; |
---|
151 | 128 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
---|
152 | 129 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; |
---|
153 | | - rtlpriv->cfg->mod_params->sw_crypto = |
---|
154 | | - rtlpriv->cfg->mod_params->sw_crypto; |
---|
155 | | - rtlpriv->cfg->mod_params->disable_watchdog = |
---|
156 | | - rtlpriv->cfg->mod_params->disable_watchdog; |
---|
157 | 130 | if (rtlpriv->cfg->mod_params->disable_watchdog) |
---|
158 | 131 | pr_info("watchdog disabled\n"); |
---|
159 | 132 | rtlpriv->psc.reg_fwctrl_lps = 2; |
---|
.. | .. |
---|
196 | 169 | return 0; |
---|
197 | 170 | } |
---|
198 | 171 | |
---|
199 | | -void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw) |
---|
| 172 | +static void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw) |
---|
200 | 173 | { |
---|
201 | 174 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
---|
202 | 175 | |
---|
.. | .. |
---|
207 | 180 | } |
---|
208 | 181 | |
---|
209 | 182 | /* get bt coexist status */ |
---|
210 | | -bool rtl8723be_get_btc_status(void) |
---|
| 183 | +static bool rtl8723be_get_btc_status(void) |
---|
211 | 184 | { |
---|
212 | 185 | return true; |
---|
213 | 186 | } |
---|