1
0

322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch 1022 B

123456789101112131415161718192021222324252627282930
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Fri, 4 Nov 2016 10:13:34 +0100
  3. Subject: [PATCH] mac80211: update A-MPDU flag on tx dequeue
  4. The sequence number counter is used to derive the starting sequence
  5. number. Since that counter is updated on tx dequeue, the A-MPDU flag
  6. needs to be up to date at the tme of dequeue as well.
  7. This patch prevents sending more A-MPDU frames after the session has
  8. been terminated and also ensures that aggregation starts right after the
  9. session has been established
  10. Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
  11. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  12. ---
  13. --- a/net/mac80211/tx.c
  14. +++ b/net/mac80211/tx.c
  15. @@ -3462,6 +3462,11 @@ begin:
  16. goto begin;
  17. }
  18. + if (test_bit(IEEE80211_TXQ_AMPDU, &txqi->flags))
  19. + info->flags |= IEEE80211_TX_CTL_AMPDU;
  20. + else
  21. + info->flags &= ~IEEE80211_TX_CTL_AMPDU;
  22. +
  23. if (info->control.flags & IEEE80211_TX_CTRL_FAST_XMIT) {
  24. struct sta_info *sta = container_of(txq->sta, struct sta_info,
  25. sta);