| .. | .. |
|---|
| 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.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../core.h" |
|---|
| .. | .. |
|---|
| 36 | 14 | #include "../rtl8192c/phy_common.h" |
|---|
| 37 | 15 | #include "hw.h" |
|---|
| 38 | 16 | #include "rf.h" |
|---|
| 39 | | -#include "sw.h" |
|---|
| 40 | 17 | #include "trx.h" |
|---|
| 41 | 18 | #include "led.h" |
|---|
| 42 | 19 | |
|---|
| .. | .. |
|---|
| 87 | 64 | rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; |
|---|
| 88 | 65 | } |
|---|
| 89 | 66 | |
|---|
| 90 | | -int rtl92c_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 67 | +static int rtl92c_init_sw_vars(struct ieee80211_hw *hw) |
|---|
| 91 | 68 | { |
|---|
| 92 | 69 | int err; |
|---|
| 93 | 70 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| .. | .. |
|---|
| 135 | 112 | rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; |
|---|
| 136 | 113 | rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; |
|---|
| 137 | 114 | rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; |
|---|
| 138 | | - rtlpriv->cfg->mod_params->sw_crypto = |
|---|
| 139 | | - rtlpriv->cfg->mod_params->sw_crypto; |
|---|
| 140 | 115 | if (!rtlpriv->psc.inactiveps) |
|---|
| 141 | 116 | pr_info("rtl8192ce: Power Save off (module option)\n"); |
|---|
| 142 | 117 | if (!rtlpriv->psc.fwctrl_lps) |
|---|
| .. | .. |
|---|
| 185 | 160 | return 0; |
|---|
| 186 | 161 | } |
|---|
| 187 | 162 | |
|---|
| 188 | | -void rtl92c_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 163 | +static void rtl92c_deinit_sw_vars(struct ieee80211_hw *hw) |
|---|
| 189 | 164 | { |
|---|
| 190 | 165 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 191 | 166 | |
|---|