313-mac80211-fix-sequence-number-allocation-regression.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Tue, 11 Oct 2016 11:24:07 +0200
  3. Subject: [PATCH] mac80211: fix sequence number allocation regression
  4. The recent commit that moved around TX handlers dropped the sequence
  5. number allocation at the end of ieee80211_tx_dequeue and calls
  6. ieee80211_tx_h_sequence instead (for the non-fast-xmit case).
  7. However, it did not change the fast-xmit sequence allocation condition
  8. in ieee80211_xmit_fast_finish, which skipped seqno alloc if intermediate
  9. tx queues are being used.
  10. Drop the now obsolete condition.
  11. Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
  12. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  13. ---
  14. --- a/net/mac80211/tx.c
  15. +++ b/net/mac80211/tx.c
  16. @@ -3212,7 +3212,6 @@ static void ieee80211_xmit_fast_finish(s
  17. struct sk_buff *skb)
  18. {
  19. struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
  20. - struct ieee80211_local *local = sdata->local;
  21. struct ieee80211_hdr *hdr = (void *)skb->data;
  22. u8 tid = IEEE80211_NUM_TIDS;
  23. @@ -3224,8 +3223,7 @@ static void ieee80211_xmit_fast_finish(s
  24. if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
  25. tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK;
  26. *ieee80211_get_qos_ctl(hdr) = tid;
  27. - if (!ieee80211_get_txq(local, &sdata->vif, &sta->sta, skb))
  28. - hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
  29. + hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
  30. } else {
  31. info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
  32. hdr->seq_ctrl = cpu_to_le16(sdata->sequence_number);