forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2010 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-2010 Realtek Corporation.*/
253
264 #include "../wifi.h"
275 #include "../core.h"
....@@ -32,7 +10,6 @@
3210 #include "dm.h"
3311 #include "hw.h"
3412 #include "fw.h"
35
-#include "sw.h"
3613 #include "trx.h"
3714 #include "led.h"
3815 #include "table.h"
....@@ -87,7 +64,7 @@
8764 }
8865
8966 /*InitializeVariables8812E*/
90
-int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw)
67
+static int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw)
9168 {
9269 int err = 0;
9370 struct rtl_priv *rtlpriv = rtl_priv(hw);
....@@ -99,9 +76,9 @@
9976 rtl8821ae_bt_reg_init(hw);
10077 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer();
10178
102
- rtlpriv->dm.dm_initialgain_enable = 1;
79
+ rtlpriv->dm.dm_initialgain_enable = true;
10380 rtlpriv->dm.dm_flag = 0;
104
- rtlpriv->dm.disable_framebursting = 0;
81
+ rtlpriv->dm.disable_framebursting = false;
10582 rtlpriv->dm.thermalvalue = 0;
10683 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25);
10784
....@@ -167,10 +144,6 @@
167144 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
168145 rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support;
169146 rtlpci->int_clear = rtlpriv->cfg->mod_params->int_clear;
170
- rtlpriv->cfg->mod_params->sw_crypto =
171
- rtlpriv->cfg->mod_params->sw_crypto;
172
- rtlpriv->cfg->mod_params->disable_watchdog =
173
- rtlpriv->cfg->mod_params->disable_watchdog;
174147 if (rtlpriv->cfg->mod_params->disable_watchdog)
175148 pr_info("watchdog disabled\n");
176149 rtlpriv->psc.reg_fwctrl_lps = 2;
....@@ -237,7 +210,7 @@
237210 return 0;
238211 }
239212
240
-void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw)
213
+static void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw)
241214 {
242215 struct rtl_priv *rtlpriv = rtl_priv(hw);
243216
....@@ -254,7 +227,7 @@
254227 }
255228
256229 /* get bt coexist status */
257
-bool rtl8821ae_get_btc_status(void)
230
+static bool rtl8821ae_get_btc_status(void)
258231 {
259232 return true;
260233 }