322-mac80211-don-t-handle-filtered-frames-within-a-BA-se.patch 912 B

12345678910111213141516171819202122232425262728
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Wed, 22 Feb 2017 16:13:17 +0100
  3. Subject: [PATCH] mac80211: don't handle filtered frames within a BA session
  4. When running a BA session, the driver (or the hardware) already takes
  5. care of retransmitting failed frames, since it has to keep the receiver
  6. reorder window in sync.
  7. Adding another layer of retransmit around that does not improve
  8. anything. In fact, it can only lead to some strong reordering with huge
  9. latency.
  10. Cc: stable@vger.kernel.org
  11. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  12. ---
  13. --- a/net/mac80211/status.c
  14. +++ b/net/mac80211/status.c
  15. @@ -51,7 +51,8 @@ static void ieee80211_handle_filtered_fr
  16. struct ieee80211_hdr *hdr = (void *)skb->data;
  17. int ac;
  18. - if (info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER) {
  19. + if (info->flags & (IEEE80211_TX_CTL_NO_PS_BUFFER |
  20. + IEEE80211_TX_CTL_AMPDU)) {
  21. ieee80211_free_txskb(&local->hw, skb);
  22. return;
  23. }