| .. | .. |
|---|
| 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 "base.h" |
|---|
| .. | .. |
|---|
| 195 | 173 | u8 try_per_rate, i, rix; |
|---|
| 196 | 174 | bool not_data = !ieee80211_is_data(fc); |
|---|
| 197 | 175 | |
|---|
| 198 | | - if (rate_control_send_low(sta, priv_sta, txrc)) |
|---|
| 199 | | - return; |
|---|
| 200 | | - |
|---|
| 201 | 176 | rix = _rtl_rc_get_highest_rix(rtlpriv, sta, skb, not_data); |
|---|
| 202 | 177 | try_per_rate = 1; |
|---|
| 203 | 178 | _rtl_rc_rate_set_series(rtlpriv, sta, &rates[0], txrc, |
|---|
| .. | .. |
|---|
| 258 | 233 | !(skb->protocol == cpu_to_be16(ETH_P_PAE))) { |
|---|
| 259 | 234 | if (ieee80211_is_data_qos(fc)) { |
|---|
| 260 | 235 | u8 tid = rtl_get_tid(skb); |
|---|
| 236 | + |
|---|
| 261 | 237 | if (_rtl_tx_aggr_check(rtlpriv, sta_entry, |
|---|
| 262 | 238 | tid)) { |
|---|
| 263 | 239 | sta_entry->tids[tid].agg.agg_state = |
|---|
| .. | .. |
|---|
| 285 | 261 | { |
|---|
| 286 | 262 | } |
|---|
| 287 | 263 | |
|---|
| 288 | | -static void *rtl_rate_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) |
|---|
| 264 | +static void *rtl_rate_alloc(struct ieee80211_hw *hw) |
|---|
| 289 | 265 | { |
|---|
| 290 | 266 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 291 | 267 | return rtlpriv; |
|---|
| .. | .. |
|---|
| 315 | 291 | struct ieee80211_sta *sta, void *priv_sta) |
|---|
| 316 | 292 | { |
|---|
| 317 | 293 | struct rtl_rate_priv *rate_priv = priv_sta; |
|---|
| 294 | + |
|---|
| 318 | 295 | kfree(rate_priv); |
|---|
| 319 | 296 | } |
|---|
| 320 | 297 | |
|---|