forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/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"
....@@ -31,7 +9,6 @@
319 #include "phy.h"
3210 #include "dm.h"
3311 #include "hw.h"
34
-#include "sw.h"
3512 #include "fw.h"
3613 #include "trx.h"
3714 #include "led.h"
....@@ -87,7 +64,7 @@
8764 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support;
8865 }
8966
90
-int rtl92ee_init_sw_vars(struct ieee80211_hw *hw)
67
+static int rtl92ee_init_sw_vars(struct ieee80211_hw *hw)
9168 {
9269 struct rtl_priv *rtlpriv = rtl_priv(hw);
9370 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
....@@ -98,9 +75,9 @@
9875 rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support;
9976 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer();
10077
101
- rtlpriv->dm.dm_initialgain_enable = 1;
78
+ rtlpriv->dm.dm_initialgain_enable = true;
10279 rtlpriv->dm.dm_flag = 0;
103
- rtlpriv->dm.disable_framebursting = 0;
80
+ rtlpriv->dm.disable_framebursting = false;
10481 rtlpci->transmit_config = CFENDFORM | BIT(15);
10582
10683 /*just 2.4G band*/
....@@ -186,7 +163,7 @@
186163 return 0;
187164 }
188165
189
-void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw)
166
+static void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw)
190167 {
191168 struct rtl_priv *rtlpriv = rtl_priv(hw);
192169
....@@ -197,7 +174,7 @@
197174 }
198175
199176 /* get bt coexist status */
200
-bool rtl92ee_get_btc_status(void)
177
+static bool rtl92ee_get_btc_status(void)
201178 {
202179 return true;
203180 }