| .. | .. |
|---|
| 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 "../core.h" |
|---|
| .. | .. |
|---|
| 31 | 9 | #include "phy.h" |
|---|
| 32 | 10 | #include "dm.h" |
|---|
| 33 | 11 | #include "hw.h" |
|---|
| 34 | | -#include "sw.h" |
|---|
| 35 | 12 | #include "trx.h" |
|---|
| 36 | 13 | #include "led.h" |
|---|
| 37 | 14 | #include "table.h" |
|---|
| .. | .. |
|---|
| 81 | 58 | rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; |
|---|
| 82 | 59 | } |
|---|
| 83 | 60 | |
|---|
| 84 | | -int rtl88e_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 61 | +static int rtl88e_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 85 | 62 | { |
|---|
| 86 | 63 | int err = 0; |
|---|
| 87 | 64 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| .. | .. |
|---|
| 90 | 67 | char *fw_name; |
|---|
| 91 | 68 | |
|---|
| 92 | 69 | rtl8188ee_bt_reg_init(hw); |
|---|
| 93 | | - rtlpriv->dm.dm_initialgain_enable = 1; |
|---|
| 70 | + rtlpriv->dm.dm_initialgain_enable = true; |
|---|
| 94 | 71 | rtlpriv->dm.dm_flag = 0; |
|---|
| 95 | | - rtlpriv->dm.disable_framebursting = 0; |
|---|
| 72 | + rtlpriv->dm.disable_framebursting = false; |
|---|
| 96 | 73 | rtlpriv->dm.thermalvalue = 0; |
|---|
| 97 | 74 | rtlpci->transmit_config = CFENDFORM | BIT(15); |
|---|
| 98 | 75 | |
|---|
| .. | .. |
|---|
| 137 | 114 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; |
|---|
| 138 | 115 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
|---|
| 139 | 116 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; |
|---|
| 140 | | - rtlpriv->cfg->mod_params->sw_crypto = |
|---|
| 141 | | - rtlpriv->cfg->mod_params->sw_crypto; |
|---|
| 142 | | - rtlpriv->cfg->mod_params->disable_watchdog = |
|---|
| 143 | | - rtlpriv->cfg->mod_params->disable_watchdog; |
|---|
| 144 | 117 | if (rtlpriv->cfg->mod_params->disable_watchdog) |
|---|
| 145 | 118 | pr_info("watchdog disabled\n"); |
|---|
| 146 | 119 | if (!rtlpriv->psc.inactiveps) |
|---|
| .. | .. |
|---|
| 199 | 172 | return err; |
|---|
| 200 | 173 | } |
|---|
| 201 | 174 | |
|---|
| 202 | | -void rtl88e_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 175 | +static void rtl88e_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 203 | 176 | { |
|---|
| 204 | 177 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 205 | 178 | |
|---|
| .. | .. |
|---|
| 215 | 188 | } |
|---|
| 216 | 189 | |
|---|
| 217 | 190 | /* get bt coexist status */ |
|---|
| 218 | | -bool rtl88e_get_btc_status(void) |
|---|
| 191 | +static bool rtl88e_get_btc_status(void) |
|---|
| 219 | 192 | { |
|---|
| 220 | 193 | return false; |
|---|
| 221 | 194 | } |
|---|