diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-10-15 13:13:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:36 -0400 |
commit | f4a8cd94fc43829d065aae94f6d379c6f0f1301c (patch) | |
tree | 19159beeca84268804a4ea33c80d695da64087ce /net/mac80211/rc80211_minstrel.h | |
parent | 0a9542ee12fb57d408f19aac738e8abe8670be7a (diff) |
minstrel: improve performance for non-MRR drivers
This patch enhances minstrel's performance for non-MRR setups,
by preventing it from sampling slower rates with >95% success
probability and by putting at least 1 non-sample frame between
several sample frames.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel.h')
-rw-r--r-- | net/mac80211/rc80211_minstrel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/rc80211_minstrel.h b/net/mac80211/rc80211_minstrel.h index 9a90a6aee043..869fe0ef951d 100644 --- a/net/mac80211/rc80211_minstrel.h +++ b/net/mac80211/rc80211_minstrel.h | |||
@@ -16,6 +16,7 @@ struct minstrel_rate { | |||
16 | unsigned int perfect_tx_time; | 16 | unsigned int perfect_tx_time; |
17 | unsigned int ack_time; | 17 | unsigned int ack_time; |
18 | 18 | ||
19 | int sample_limit; | ||
19 | unsigned int retry_count; | 20 | unsigned int retry_count; |
20 | unsigned int retry_count_cts; | 21 | unsigned int retry_count_cts; |
21 | unsigned int retry_count_rtscts; | 22 | unsigned int retry_count_rtscts; |
@@ -57,6 +58,7 @@ struct minstrel_sta_info { | |||
57 | 58 | ||
58 | int n_rates; | 59 | int n_rates; |
59 | struct minstrel_rate *r; | 60 | struct minstrel_rate *r; |
61 | bool prev_sample; | ||
60 | 62 | ||
61 | /* sampling table */ | 63 | /* sampling table */ |
62 | u8 *sample_table; | 64 | u8 *sample_table; |