forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/sw.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2013 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-2013 Realtek Corporation.*/
253
264 #include "../wifi.h"
275 #include "../core.h"
....@@ -31,7 +9,6 @@
319 #include "phy.h"
3210 #include "dm.h"
3311 #include "hw.h"
34
-#include "sw.h"
3512 #include "trx.h"
3613 #include "led.h"
3714 #include "table.h"
....@@ -81,7 +58,7 @@
8158 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support;
8259 }
8360
84
-int rtl88e_init_sw_vars(struct ieee80211_hw *hw)
61
+static int rtl88e_init_sw_vars(struct ieee80211_hw *hw)
8562 {
8663 int err = 0;
8764 struct rtl_priv *rtlpriv = rtl_priv(hw);
....@@ -90,9 +67,9 @@
9067 char *fw_name;
9168
9269 rtl8188ee_bt_reg_init(hw);
93
- rtlpriv->dm.dm_initialgain_enable = 1;
70
+ rtlpriv->dm.dm_initialgain_enable = true;
9471 rtlpriv->dm.dm_flag = 0;
95
- rtlpriv->dm.disable_framebursting = 0;
72
+ rtlpriv->dm.disable_framebursting = false;
9673 rtlpriv->dm.thermalvalue = 0;
9774 rtlpci->transmit_config = CFENDFORM | BIT(15);
9875
....@@ -137,10 +114,6 @@
137114 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
138115 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
139116 rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support;
140
- rtlpriv->cfg->mod_params->sw_crypto =
141
- rtlpriv->cfg->mod_params->sw_crypto;
142
- rtlpriv->cfg->mod_params->disable_watchdog =
143
- rtlpriv->cfg->mod_params->disable_watchdog;
144117 if (rtlpriv->cfg->mod_params->disable_watchdog)
145118 pr_info("watchdog disabled\n");
146119 if (!rtlpriv->psc.inactiveps)
....@@ -199,7 +172,7 @@
199172 return err;
200173 }
201174
202
-void rtl88e_deinit_sw_vars(struct ieee80211_hw *hw)
175
+static void rtl88e_deinit_sw_vars(struct ieee80211_hw *hw)
203176 {
204177 struct rtl_priv *rtlpriv = rtl_priv(hw);
205178
....@@ -215,7 +188,7 @@
215188 }
216189
217190 /* get bt coexist status */
218
-bool rtl88e_get_btc_status(void)
191
+static bool rtl88e_get_btc_status(void)
219192 {
220193 return false;
221194 }