hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192se/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"
....@@ -33,7 +11,6 @@
3311 #include "dm.h"
3412 #include "fw.h"
3513 #include "hw.h"
36
-#include "sw.h"
3714 #include "trx.h"
3815 #include "led.h"
3916
....@@ -88,8 +65,8 @@
8865 struct rt_firmware *pfirmware = NULL;
8966 char *fw_name = "rtlwifi/rtl8192sefw.bin";
9067
91
- RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
92
- "Firmware callback routine entered!\n");
68
+ rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD,
69
+ "Firmware callback routine entered!\n");
9370 complete(&rtlpriv->firmware_loading_complete);
9471 if (!firmware) {
9572 pr_err("Firmware %s not available\n", fw_name);
....@@ -183,8 +160,6 @@
183160 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps;
184161 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps;
185162 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps;
186
- rtlpriv->cfg->mod_params->sw_crypto =
187
- rtlpriv->cfg->mod_params->sw_crypto;
188163 if (!rtlpriv->psc.inactiveps)
189164 pr_info("Power Save off (module option)\n");
190165 if (!rtlpriv->psc.fwctrl_lps)