hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.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 "reg.h"
....@@ -71,7 +49,7 @@
7149 if (rtlefuse->eeprom_regulatory != 0)
7250 turbo_scanoff = true;
7351
74
- if (mac->act_scanning == true) {
52
+ if (mac->act_scanning) {
7553 tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
7654 tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
7755
....@@ -501,13 +479,13 @@
501479 break;
502480 }
503481
504
- if (rtstatus != true) {
505
- RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
506
- "Radio[%d] Fail!!\n", rfpath);
482
+ if (!rtstatus) {
483
+ rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE,
484
+ "Radio[%d] Fail!!\n", rfpath);
507485 return false;
508486 }
509487 }
510488
511
- RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "\n");
489
+ rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "\n");
512490 return rtstatus;
513491 }