1
0

324-mac80211-fix-A-MSDU-aggregation-with-fast-xmit-txq.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Fri, 4 Nov 2016 10:18:51 +0100
  3. Subject: [PATCH] mac80211: fix A-MSDU aggregation with fast-xmit + txq
  4. A-MSDU aggregation alters the QoS header after a frame has been
  5. enqueued, so it needs to be ready before enqueue and not overwritten
  6. again afterwards
  7. Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
  8. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  9. ---
  10. --- a/net/mac80211/tx.c
  11. +++ b/net/mac80211/tx.c
  12. @@ -3245,7 +3245,6 @@ static void ieee80211_xmit_fast_finish(s
  13. if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
  14. tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK;
  15. - *ieee80211_get_qos_ctl(hdr) = tid;
  16. hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
  17. } else {
  18. info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
  19. @@ -3370,6 +3369,11 @@ static bool ieee80211_xmit_fast(struct i
  20. (tid_tx ? IEEE80211_TX_CTL_AMPDU : 0);
  21. info->control.flags = IEEE80211_TX_CTRL_FAST_XMIT;
  22. + if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
  23. + tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK;
  24. + *ieee80211_get_qos_ctl(hdr) = tid;
  25. + }
  26. +
  27. __skb_queue_head_init(&tx.skbs);
  28. tx.flags = IEEE80211_TX_UNICAST;