0125-mac80211-fix-tx-issue-with-CCMP-PN-generated-in-hardware.patch 1.0 KB

123456789101112131415161718192021
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 30 Sep 2016 16:57:57 +0200
  3. Subject: mac80211: fix tx issue with CCMP PN generated in hardware
  4. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  5. Backport of LEDE f3747020e202883a43729fc245986f9e36289d6c
  6. diff --git a/package/kernel/mac80211/patches/346-mac80211-Move-reorder-sensitive-TX-handlers-to-after.patch b/package/kernel/mac80211/patches/346-mac80211-Move-reorder-sensitive-TX-handlers-to-after.patch
  7. index 8ceed51..aba1ff4 100644
  8. --- a/package/kernel/mac80211/patches/346-mac80211-Move-reorder-sensitive-TX-handlers-to-after.patch
  9. +++ b/package/kernel/mac80211/patches/346-mac80211-Move-reorder-sensitive-TX-handlers-to-after.patch
  10. @@ -404,7 +404,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  11. sta->tx_stats.packets[skb_get_queue_mapping(skb)]++;
  12. - if (fast_tx->pn_offs) {
  13. -+ if (pn_offs) {
  14. ++ if (pn_offs && (key_conf->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) {
  15. u64 pn;
  16. - u8 *crypto_hdr = skb->data + fast_tx->pn_offs;
  17. + u8 *crypto_hdr = skb->data + pn_offs;