hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/rf.c
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2013 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-2013 Realtek Corporation.*/
253
264 #include "../wifi.h"
275 #include "reg.h"
....@@ -73,7 +51,7 @@
7351 if (rtlefuse->eeprom_regulatory != 0)
7452 turbo_scanoff = true;
7553
76
- if (mac->act_scanning == true) {
54
+ if (mac->act_scanning) {
7755 tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
7856 tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
7957
....@@ -495,14 +473,14 @@
495473 break;
496474 }
497475
498
- if (rtstatus != true) {
499
- RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
500
- "Radio[%d] Fail!!\n", rfpath);
476
+ if (!rtstatus) {
477
+ rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE,
478
+ "Radio[%d] Fail!!\n", rfpath);
501479 return false;
502480 }
503481
504482 }
505483
506
- RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "\n");
484
+ rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "\n");
507485 return rtstatus;
508486 }