Skip to contentSkip to conversation

mac80211: Don't aggregate rate probe frames in minstrel_ht

PATCH In review Helmut Schaa 3 participants 5 messages Sep 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mac80211: Don't aggregate rate probe frames in minstrel_ht

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.

---

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(-)
net/mac80211/rc80211_minstrel_ht.c +2 -0
index 2158838..6a7bbe0 100644
@@ -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);
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 rt2x00: Remove special case for rate probe frames

This is handled in minstrel_ht now. No need to special case it here again.

Cc Ivo Van Doorn <[email protected]>
Cc Gertjan van Wingerde <[email protected]>

---

Ivo, I'm sending this directly to John due to the dependency on the minstrel_ht patch.

 drivers/net/wireless/rt2x00/rt2x00queue.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00queue.c +2 -4
index ba0d7e6..033d2cd 100644
@@ -330,11 +330,9 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev,
 	}
 
 	/*
-	 * This frame is eligible for an AMPDU, however, don't aggregate
-	 * frames that are intended to probe a specific tx rate.
+	 * This frame is eligible for an AMPDU.
 	 */
-	if (tx_info->flags & IEEE80211_TX_CTL_AMPDU &&
-	    !(tx_info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE))
+	if (tx_info->flags & IEEE80211_TX_CTL_AMPDU)
 		__set_bit(ENTRY_TXD_HT_AMPDU, &txdesc->flags);
 
 	/*
Signature · 1 line
1.7.3.4
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] rt2x00: Remove special case for rate probe frames

Quoted 6 lines · Helmut Schaa

This is handled in minstrel_ht now. No need to special case it here again.

Cc Ivo Van Doorn <[email protected]>
Cc Gertjan van Wingerde <[email protected]>
Quoted 30 lines

---

Ivo, I'm sending this directly to John due to the dependency on the minstrel_ht patch.

 drivers/net/wireless/rt2x00/rt2x00queue.c |    6 ++----

 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/wireless/rt2x00/rt2x00queue.c +2 -5
index ba0d7e6..033d2cd 100644
@@ -330,11 +330,9 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev,
        }
 
        /*
-        * This frame is eligible for an AMPDU, however, don't aggregate
-        * frames that are intended to probe a specific tx rate.
+        * This frame is eligible for an AMPDU.
         */
-       if (tx_info->flags & IEEE80211_TX_CTL_AMPDU &&
-           !(tx_info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE))
+       if (tx_info->flags & IEEE80211_TX_CTL_AMPDU)
                __set_bit(ENTRY_TXD_HT_AMPDU, &txdesc->flags);
 
        /*
--

1.7.3.4

#3 lore raw
In reply to Helmut Schaa
Quoted 11 lines · 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.

---

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?

Yes, this probably breaks ath9k. IEEE80211_TX_CTL_AMPDU is used to indicate that the packet is part of an aggregation session, so ath9k only does block ack window tracking for packets that have this flag set. I think the drivers should continue to check for IEEE80211_TX_CTL_RATE_CTRL_PROBE

- Felix

#4 lore raw
Quoted 13 lines · Felix Fietkau
Quoted 12 lines · 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.

---

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

Quoted 7 lines
Quoted 1 line

Any objections?

Yes, this probably breaks ath9k. IEEE80211_TX_CTL_AMPDU is used to indicate that the packet is part of an aggregation session, so ath9k only does block ack window tracking for packets that have this flag set.
I think the drivers should continue to check for IEEE80211_TX_CTL_RATE_CTRL_PROBE

Ok, the flag description is a bit misleading then:

@IEEE80211_TX_CTL_AMPDU: this frame should be sent as part of an A-MPDU

John, please drop this series.

Helmut