| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2010 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-2010 Realtek Corporation.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../core.h" |
|---|
| .. | .. |
|---|
| 32 | 10 | #include "dm.h" |
|---|
| 33 | 11 | #include "hw.h" |
|---|
| 34 | 12 | #include "fw.h" |
|---|
| 35 | | -#include "sw.h" |
|---|
| 36 | 13 | #include "trx.h" |
|---|
| 37 | 14 | #include "led.h" |
|---|
| 38 | 15 | #include "table.h" |
|---|
| .. | .. |
|---|
| 87 | 64 | } |
|---|
| 88 | 65 | |
|---|
| 89 | 66 | /*InitializeVariables8812E*/ |
|---|
| 90 | | -int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 67 | +static int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 91 | 68 | { |
|---|
| 92 | 69 | int err = 0; |
|---|
| 93 | 70 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| .. | .. |
|---|
| 99 | 76 | rtl8821ae_bt_reg_init(hw); |
|---|
| 100 | 77 | rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); |
|---|
| 101 | 78 | |
|---|
| 102 | | - rtlpriv->dm.dm_initialgain_enable = 1; |
|---|
| 79 | + rtlpriv->dm.dm_initialgain_enable = true; |
|---|
| 103 | 80 | rtlpriv->dm.dm_flag = 0; |
|---|
| 104 | | - rtlpriv->dm.disable_framebursting = 0; |
|---|
| 81 | + rtlpriv->dm.disable_framebursting = false; |
|---|
| 105 | 82 | rtlpriv->dm.thermalvalue = 0; |
|---|
| 106 | 83 | rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); |
|---|
| 107 | 84 | |
|---|
| .. | .. |
|---|
| 167 | 144 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
|---|
| 168 | 145 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; |
|---|
| 169 | 146 | rtlpci->int_clear = rtlpriv->cfg->mod_params->int_clear; |
|---|
| 170 | | - rtlpriv->cfg->mod_params->sw_crypto = |
|---|
| 171 | | - rtlpriv->cfg->mod_params->sw_crypto; |
|---|
| 172 | | - rtlpriv->cfg->mod_params->disable_watchdog = |
|---|
| 173 | | - rtlpriv->cfg->mod_params->disable_watchdog; |
|---|
| 174 | 147 | if (rtlpriv->cfg->mod_params->disable_watchdog) |
|---|
| 175 | 148 | pr_info("watchdog disabled\n"); |
|---|
| 176 | 149 | rtlpriv->psc.reg_fwctrl_lps = 2; |
|---|
| .. | .. |
|---|
| 237 | 210 | return 0; |
|---|
| 238 | 211 | } |
|---|
| 239 | 212 | |
|---|
| 240 | | -void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 213 | +static void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 241 | 214 | { |
|---|
| 242 | 215 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 243 | 216 | |
|---|
| .. | .. |
|---|
| 254 | 227 | } |
|---|
| 255 | 228 | |
|---|
| 256 | 229 | /* get bt coexist status */ |
|---|
| 257 | | -bool rtl8821ae_get_btc_status(void) |
|---|
| 230 | +static bool rtl8821ae_get_btc_status(void) |
|---|
| 258 | 231 | { |
|---|
| 259 | 232 | return true; |
|---|
| 260 | 233 | } |
|---|