diff mbox

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

Message ID 1315472282-21051-1-git-send-email-helmut.schaa@googlemail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Helmut Schaa Sept. 8, 2011, 8:58 a.m. UTC
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(-)

Comments

Felix Fietkau Sept. 8, 2011, 9:08 a.m. UTC | #1
On 2011-09-08 10:58 AM, Helmut Schaa wrote:
> 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?
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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Helmut Schaa Sept. 8, 2011, 9:21 a.m. UTC | #2
On Thu, Sep 8, 2011 at 11:08 AM, Felix Fietkau <nbd@openwrt.org> wrote:
> On 2011-09-08 10:58 AM, Helmut Schaa wrote:
>>
>> 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?
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);