mac80211: fix tx issue with CCMP PN generated in hardware
authorFelix Fietkau <nbd@nbd.name>
Mon, 12 Sep 2016 09:25:20 +0000 (11:25 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 12 Sep 2016 09:25:33 +0000 (11:25 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/patches/346-mac80211-Move-reorder-sensitive-TX-handlers-to-after.patch

index 8ceed5195da10fcf46c577027a4f2b32f6c5c5af..aba1ff45322d998c5a64fbc4833f62fd011035df 100644 (file)
@@ -404,7 +404,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        sta->tx_stats.packets[skb_get_queue_mapping(skb)]++;
  
 -      if (fast_tx->pn_offs) {
-+      if (pn_offs) {
++      if (pn_offs && (key_conf->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) {
                u64 pn;
 -              u8 *crypto_hdr = skb->data + fast_tx->pn_offs;
 +              u8 *crypto_hdr = skb->data + pn_offs;