forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
....@@ -1,27 +1,5 @@
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.*/
253
264 #include "../wifi.h"
275 #include "../core.h"
....@@ -35,7 +13,6 @@
3513 #include "hw.h"
3614 #include "fw.h"
3715 #include "../rtl8723com/fw_common.h"
38
-#include "sw.h"
3916 #include "trx.h"
4017 #include "led.h"
4118 #include "table.h"
....@@ -86,7 +63,7 @@
8663 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support;
8764 }
8865
89
-int rtl8723be_init_sw_vars(struct ieee80211_hw *hw)
66
+static int rtl8723be_init_sw_vars(struct ieee80211_hw *hw)
9067 {
9168 int err = 0;
9269 struct rtl_priv *rtlpriv = rtl_priv(hw);
....@@ -97,9 +74,9 @@
9774 rtl8723be_bt_reg_init(hw);
9875 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer();
9976
100
- rtlpriv->dm.dm_initialgain_enable = 1;
77
+ rtlpriv->dm.dm_initialgain_enable = true;
10178 rtlpriv->dm.dm_flag = 0;
102
- rtlpriv->dm.disable_framebursting = 0;
79
+ rtlpriv->dm.disable_framebursting = false;
10380 rtlpriv->dm.thermalvalue = 0;
10481 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25);
10582
....@@ -150,10 +127,6 @@
150127 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
151128 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
152129 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;
157130 if (rtlpriv->cfg->mod_params->disable_watchdog)
158131 pr_info("watchdog disabled\n");
159132 rtlpriv->psc.reg_fwctrl_lps = 2;
....@@ -196,7 +169,7 @@
196169 return 0;
197170 }
198171
199
-void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw)
172
+static void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw)
200173 {
201174 struct rtl_priv *rtlpriv = rtl_priv(hw);
202175
....@@ -207,7 +180,7 @@
207180 }
208181
209182 /* get bt coexist status */
210
-bool rtl8723be_get_btc_status(void)
183
+static bool rtl8723be_get_btc_status(void)
211184 {
212185 return true;
213186 }