All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: Don't aggregate rate probe frames in minstrel_ht
@ 2011-09-08  8:58 Helmut Schaa
  2011-09-08  8:58 ` [PATCH 2/2] rt2x00: Remove special case for rate probe frames Helmut Schaa
  2011-09-08  9:08 ` [PATCH 1/2] mac80211: Don't aggregate rate probe frames in minstrel_ht Felix Fietkau
  0 siblings, 2 replies; 5+ messages in thread
From: Helmut Schaa @ 2011-09-08  8:58 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville, johannes, nbd, Helmut Schaa

This is already done by rt2x00 and ath9k by checking the
IEEE80211_TX_CTL_RATE_CTRL_PROBE flag. Instead we can simply do it in
minstrel_ht.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---

Felix, I didn't have a closer look at the ath9k aggregation code but I guess it
can also be simplified with this change.

Any objections?

Thanks,
Helmut

 net/mac80211/rc80211_minstrel_ht.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c
index 2158838..6a7bbe0 100644
--- a/net/mac80211/rc80211_minstrel_ht.c
+++ b/net/mac80211/rc80211_minstrel_ht.c
@@ -627,6 +627,8 @@ minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
 		minstrel_ht_set_rate(mp, mi, &ar[0], sample_idx,
 			txrc, true, false);
 		info->flags |= IEEE80211_TX_CTL_RATE_CTRL_PROBE;
+		/* don't aggregate probe frames */
+		info->flags &= ~IEEE80211_TX_CTL_AMPDU;
 	} else {
 		minstrel_ht_set_rate(mp, mi, &ar[0], mi->max_tp_rate,
 			txrc, false, false);
-- 
1.7.3.4


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

end of thread, other threads:[~2011-09-08 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08  8:58 [PATCH 1/2] mac80211: Don't aggregate rate probe frames in minstrel_ht Helmut Schaa
2011-09-08  8:58 ` [PATCH 2/2] rt2x00: Remove special case for rate probe frames Helmut Schaa
2011-09-08 12:41   ` Ivo Van Doorn
2011-09-08  9:08 ` [PATCH 1/2] mac80211: Don't aggregate rate probe frames in minstrel_ht Felix Fietkau
2011-09-08  9:21   ` Helmut Schaa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.