.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /****************************************************************************** |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. |
---|
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 | | - * You should have received a copy of the GNU General Public License along with |
---|
15 | | - * this program; if not, write to the Free Software Foundation, Inc., |
---|
16 | | - * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA |
---|
17 | | - * |
---|
18 | | - * The full GNU General Public License is included in this distribution in the |
---|
19 | | - * file called LICENSE. |
---|
20 | 5 | * |
---|
21 | 6 | * Contact Information: |
---|
22 | 7 | * Intel Linux Wireless <ilw@linux.intel.com> |
---|
.. | .. |
---|
139 | 124 | win->stamp = 0; |
---|
140 | 125 | } |
---|
141 | 126 | |
---|
142 | | -/** |
---|
| 127 | +/* |
---|
143 | 128 | * il3945_rate_scale_flush_wins - flush out the rate scale wins |
---|
144 | 129 | * |
---|
145 | 130 | * Returns the number of wins that have gathered data but were |
---|
.. | .. |
---|
244 | 229 | D_RATE("leave\n"); |
---|
245 | 230 | } |
---|
246 | 231 | |
---|
247 | | -/** |
---|
| 232 | +/* |
---|
248 | 233 | * il3945_collect_tx_data - Update the success/failure sliding win |
---|
249 | 234 | * |
---|
250 | 235 | * We keep a sliding win of the last 64 packets transmitted |
---|
.. | .. |
---|
389 | 374 | } |
---|
390 | 375 | |
---|
391 | 376 | static void * |
---|
392 | | -il3945_rs_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) |
---|
| 377 | +il3945_rs_alloc(struct ieee80211_hw *hw) |
---|
393 | 378 | { |
---|
394 | 379 | return hw->priv; |
---|
395 | 380 | } |
---|
.. | .. |
---|
431 | 416 | del_timer_sync(&rs_sta->rate_scale_flush); |
---|
432 | 417 | } |
---|
433 | 418 | |
---|
434 | | -/** |
---|
| 419 | +/* |
---|
435 | 420 | * il3945_rs_tx_status - Update rate control values based on Tx results |
---|
436 | 421 | * |
---|
437 | 422 | * NOTE: Uses il_priv->retry_rate for the # of retries attempted by |
---|
.. | .. |
---|
599 | 584 | return (high << 8) | low; |
---|
600 | 585 | } |
---|
601 | 586 | |
---|
602 | | -/** |
---|
| 587 | +/* |
---|
603 | 588 | * il3945_rs_get_rate - find the rate for the requested packet |
---|
604 | 589 | * |
---|
605 | 590 | * Returns the ieee80211_rate structure allocated by the driver. |
---|
.. | .. |
---|
645 | 630 | D_RATE("Rate scaling information not initialized yet.\n"); |
---|
646 | 631 | il_sta = NULL; |
---|
647 | 632 | } |
---|
648 | | - |
---|
649 | | - if (rate_control_send_low(sta, il_sta, txrc)) |
---|
650 | | - return; |
---|
651 | 633 | |
---|
652 | 634 | rate_mask = sta->supp_rates[sband->band]; |
---|
653 | 635 | |
---|
.. | .. |
---|
781 | 763 | |
---|
782 | 764 | switch (scale_action) { |
---|
783 | 765 | case -1: |
---|
784 | | - /* Decrese rate */ |
---|
| 766 | + /* Decrease rate */ |
---|
785 | 767 | if (low != RATE_INVALID) |
---|
786 | 768 | idx = low; |
---|
787 | 769 | break; |
---|
.. | .. |
---|
861 | 843 | { |
---|
862 | 844 | struct il3945_rs_sta *lq_sta = il_sta; |
---|
863 | 845 | |
---|
864 | | - lq_sta->rs_sta_dbgfs_stats_table_file = |
---|
865 | | - debugfs_create_file("rate_stats_table", 0600, dir, lq_sta, |
---|
866 | | - &rs_sta_dbgfs_stats_table_ops); |
---|
867 | | - |
---|
868 | | -} |
---|
869 | | - |
---|
870 | | -static void |
---|
871 | | -il3945_remove_debugfs(void *il, void *il_sta) |
---|
872 | | -{ |
---|
873 | | - struct il3945_rs_sta *lq_sta = il_sta; |
---|
874 | | - debugfs_remove(lq_sta->rs_sta_dbgfs_stats_table_file); |
---|
| 846 | + debugfs_create_file("rate_stats_table", 0600, dir, lq_sta, |
---|
| 847 | + &rs_sta_dbgfs_stats_table_ops); |
---|
875 | 848 | } |
---|
876 | 849 | #endif |
---|
877 | 850 | |
---|
.. | .. |
---|
898 | 871 | .free_sta = il3945_rs_free_sta, |
---|
899 | 872 | #ifdef CONFIG_MAC80211_DEBUGFS |
---|
900 | 873 | .add_sta_debugfs = il3945_add_debugfs, |
---|
901 | | - .remove_sta_debugfs = il3945_remove_debugfs, |
---|
902 | 874 | #endif |
---|
903 | 875 | |
---|
904 | 876 | }; |
---|