linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] minstrel_ht: enable frame aggregation for fixed rate
@ 2012-06-08  7:44 Sylvain Roger Rieunier
  2012-06-09  8:10 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Sylvain Roger Rieunier @ 2012-06-08  7:44 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, nbd, Sylvain Roger Rieunier

when i was trying fixed rate in minstrel_ht, frame aggregation
was not working. so i fix it.

Signed-off-by: Sylvain Roger Rieunier <sylvain.roger.rieunier@gmail.com>
---
 net/mac80211/rc80211_minstrel_ht.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 2d1acc6..342ec71 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -626,8 +626,11 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
 
 #ifdef CONFIG_MAC80211_DEBUGFS
 	/* use fixed index if set */
-	if (mp->fixed_rate_idx != -1)
-		sample_idx = mp->fixed_rate_idx;
+	if (mp->fixed_rate_idx != -1) {
+		mi->max_tp_rate = mp->fixed_rate_idx;
+		mi->max_tp_rate2 = mp->fixed_rate_idx;
+		sample_idx = -1;
+	}
 #endif
 
 	if (sample_idx >= 0) {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-12 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-08  7:44 [PATCH v2] minstrel_ht: enable frame aggregation for fixed rate Sylvain Roger Rieunier
2012-06-09  8:10 ` Johannes Berg
     [not found]   ` <4FD605DD.9020800@gmail.com>
2012-06-11 14:58     ` Johannes Berg
2012-06-12 10:42       ` sylvain_gmail

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).