Skip to contentSkip to conversation

mac80211: don't handle filtered frames within a BA session

PATCH New Felix Fietkau 1 participant 1 message Feb 22, 2017 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: don't handle filtered frames within a BA session

When running a BA session, the driver (or the hardware) already takes care of retransmitting failed frames, since it has to keep the receiver reorder window in sync.

Adding another layer of retransmit around that does not improve anything. In fact, it can only lead to some strong reordering with huge latency.

---
 net/mac80211/status.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/mac80211/status.c +2 -1
index b6a5394fa4c4..9d19d8698ac0 100644
@@ -51,7 +51,8 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local,
 	struct ieee80211_hdr *hdr = (void *)skb->data;
 	int ac;
 
-	if (info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER) {
+	if (info->flags & (IEEE80211_TX_CTL_NO_PS_BUFFER |
+			   IEEE80211_TX_CTL_AMPDU)) {
 		ieee80211_free_txskb(&local->hw, skb);
 		return;
 	}
Signature · 1 line
2.11.0