forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/sw.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2012 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-2012 Realtek Corporation.*/
253
264 #include "../wifi.h"
275 #include "../core.h"
....@@ -36,7 +14,6 @@
3614 #include "../rtl8192c/phy_common.h"
3715 #include "hw.h"
3816 #include "rf.h"
39
-#include "sw.h"
4017 #include "trx.h"
4118 #include "led.h"
4219
....@@ -87,7 +64,7 @@
8764 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support;
8865 }
8966
90
-int rtl92c_init_sw_vars(struct ieee80211_hw *hw)
67
+static int rtl92c_init_sw_vars(struct ieee80211_hw *hw)
9168 {
9269 int err;
9370 struct rtl_priv *rtlpriv = rtl_priv(hw);
....@@ -135,8 +112,6 @@
135112 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps;
136113 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
137114 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
138
- rtlpriv->cfg->mod_params->sw_crypto =
139
- rtlpriv->cfg->mod_params->sw_crypto;
140115 if (!rtlpriv->psc.inactiveps)
141116 pr_info("rtl8192ce: Power Save off (module option)\n");
142117 if (!rtlpriv->psc.fwctrl_lps)
....@@ -185,7 +160,7 @@
185160 return 0;
186161 }
187162
188
-void rtl92c_deinit_sw_vars(struct ieee80211_hw *hw)
163
+static void rtl92c_deinit_sw_vars(struct ieee80211_hw *hw)
189164 {
190165 struct rtl_priv *rtlpriv = rtl_priv(hw);
191166