diff options
author | Sylvain Roger Rieunier <sylvain.roger.rieunier@gmail.com> | 2012-07-09 13:25:09 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-12 06:10:48 -0400 |
commit | 2a9e6c58871df77b69afffad250062853570ee23 (patch) | |
tree | 769e6f12c8bbcd15e713a56b4170fc43a065a741 /net/mac80211 | |
parent | 4922f71f2506e36d81a03f8fec4559bb7d175bf7 (diff) |
minstrel_ht: enable frame aggregation for fixed rate
When sample_idx is set to a value other than -1 it activates
the IEEE80211_TX_CTL_RATE_CTRL_PROBE flag which disables
frame aggregation. To allow frame aggregation during fixed
rate it is necessary to set max_tp_rate, max_tp_rate2 and
max_prob_rate instead of sample_idx.
Signed-off-by: Sylvain Roger Rieunier <sylvain.roger.rieunier@gmail.com>
[reword commit message a bit]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 2d1acc6c5445..ee748183b927 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c | |||
@@ -626,8 +626,12 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, | |||
626 | 626 | ||
627 | #ifdef CONFIG_MAC80211_DEBUGFS | 627 | #ifdef CONFIG_MAC80211_DEBUGFS |
628 | /* use fixed index if set */ | 628 | /* use fixed index if set */ |
629 | if (mp->fixed_rate_idx != -1) | 629 | if (mp->fixed_rate_idx != -1) { |
630 | sample_idx = mp->fixed_rate_idx; | 630 | mi->max_tp_rate = mp->fixed_rate_idx; |
631 | mi->max_tp_rate2 = mp->fixed_rate_idx; | ||
632 | mi->max_prob_rate = mp->fixed_rate_idx; | ||
633 | sample_idx = -1; | ||
634 | } | ||
631 | #endif | 635 | #endif |
632 | 636 | ||
633 | if (sample_idx >= 0) { | 637 | if (sample_idx >= 0) { |