| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2014 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-2014 Realtek Corporation.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../core.h" |
|---|
| .. | .. |
|---|
| 31 | 9 | #include "phy.h" |
|---|
| 32 | 10 | #include "dm.h" |
|---|
| 33 | 11 | #include "hw.h" |
|---|
| 34 | | -#include "sw.h" |
|---|
| 35 | 12 | #include "fw.h" |
|---|
| 36 | 13 | #include "trx.h" |
|---|
| 37 | 14 | #include "led.h" |
|---|
| .. | .. |
|---|
| 87 | 64 | rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; |
|---|
| 88 | 65 | } |
|---|
| 89 | 66 | |
|---|
| 90 | | -int rtl92ee_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 67 | +static int rtl92ee_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 91 | 68 | { |
|---|
| 92 | 69 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 93 | 70 | struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); |
|---|
| .. | .. |
|---|
| 98 | 75 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; |
|---|
| 99 | 76 | rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); |
|---|
| 100 | 77 | |
|---|
| 101 | | - rtlpriv->dm.dm_initialgain_enable = 1; |
|---|
| 78 | + rtlpriv->dm.dm_initialgain_enable = true; |
|---|
| 102 | 79 | rtlpriv->dm.dm_flag = 0; |
|---|
| 103 | | - rtlpriv->dm.disable_framebursting = 0; |
|---|
| 80 | + rtlpriv->dm.disable_framebursting = false; |
|---|
| 104 | 81 | rtlpci->transmit_config = CFENDFORM | BIT(15); |
|---|
| 105 | 82 | |
|---|
| 106 | 83 | /*just 2.4G band*/ |
|---|
| .. | .. |
|---|
| 186 | 163 | return 0; |
|---|
| 187 | 164 | } |
|---|
| 188 | 165 | |
|---|
| 189 | | -void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 166 | +static void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 190 | 167 | { |
|---|
| 191 | 168 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 192 | 169 | |
|---|
| .. | .. |
|---|
| 197 | 174 | } |
|---|
| 198 | 175 | |
|---|
| 199 | 176 | /* get bt coexist status */ |
|---|
| 200 | | -bool rtl92ee_get_btc_status(void) |
|---|
| 177 | +static bool rtl92ee_get_btc_status(void) |
|---|
| 201 | 178 | { |
|---|
| 202 | 179 | return true; |
|---|
| 203 | 180 | } |
|---|