forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/realtek/rtlwifi/rc.c
....@@ -1,27 +1,5 @@
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.*/
253
264 #include "wifi.h"
275 #include "base.h"
....@@ -195,9 +173,6 @@
195173 u8 try_per_rate, i, rix;
196174 bool not_data = !ieee80211_is_data(fc);
197175
198
- if (rate_control_send_low(sta, priv_sta, txrc))
199
- return;
200
-
201176 rix = _rtl_rc_get_highest_rix(rtlpriv, sta, skb, not_data);
202177 try_per_rate = 1;
203178 _rtl_rc_rate_set_series(rtlpriv, sta, &rates[0], txrc,
....@@ -258,6 +233,7 @@
258233 !(skb->protocol == cpu_to_be16(ETH_P_PAE))) {
259234 if (ieee80211_is_data_qos(fc)) {
260235 u8 tid = rtl_get_tid(skb);
236
+
261237 if (_rtl_tx_aggr_check(rtlpriv, sta_entry,
262238 tid)) {
263239 sta_entry->tids[tid].agg.agg_state =
....@@ -285,7 +261,7 @@
285261 {
286262 }
287263
288
-static void *rtl_rate_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)
264
+static void *rtl_rate_alloc(struct ieee80211_hw *hw)
289265 {
290266 struct rtl_priv *rtlpriv = rtl_priv(hw);
291267 return rtlpriv;
....@@ -315,6 +291,7 @@
315291 struct ieee80211_sta *sta, void *priv_sta)
316292 {
317293 struct rtl_rate_priv *rate_priv = priv_sta;
294
+
318295 kfree(rate_priv);
319296 }
320297