| .. | .. |
|---|
| 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.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "reg.h" |
|---|
| .. | .. |
|---|
| 73 | 51 | if (rtlefuse->eeprom_regulatory != 0) |
|---|
| 74 | 52 | turbo_scanoff = true; |
|---|
| 75 | 53 | |
|---|
| 76 | | - if (mac->act_scanning == true) { |
|---|
| 54 | + if (mac->act_scanning) { |
|---|
| 77 | 55 | tx_agc[RF90_PATH_A] = 0x3f3f3f3f; |
|---|
| 78 | 56 | tx_agc[RF90_PATH_B] = 0x3f3f3f3f; |
|---|
| 79 | 57 | |
|---|
| .. | .. |
|---|
| 495 | 473 | break; |
|---|
| 496 | 474 | } |
|---|
| 497 | 475 | |
|---|
| 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); |
|---|
| 501 | 479 | return false; |
|---|
| 502 | 480 | } |
|---|
| 503 | 481 | |
|---|
| 504 | 482 | } |
|---|
| 505 | 483 | |
|---|
| 506 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "\n"); |
|---|
| 484 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "\n"); |
|---|
| 507 | 485 | return rtstatus; |
|---|
| 508 | 486 | } |
|---|