Browse Source

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.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Felix Fietkau 8 years ago
parent
commit
890030d3c4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      net/mac80211/status.c

+ 2 - 1
net/mac80211/status.c

@@ -51,7 +51,8 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local,
 	struct ieee80211_hdr *hdr = (void *)skb->data;
 	struct ieee80211_hdr *hdr = (void *)skb->data;
 	int ac;
 	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);
 		ieee80211_free_txskb(&local->hw, skb);
 		return;
 		return;
 	}
 	}