ath9k: fix mic frame handling for bigger packets

SVN-Revision: 27596
lede-17.01
Felix Fietkau 2011-07-12 03:24:53 +00:00
parent 0321740a62
commit 6493242f94
1 changed files with 6 additions and 6 deletions

View File

@ -70,13 +70,13 @@
return true; return true;
} }
@@ -1882,6 +1881,9 @@ int ath_rx_tasklet(struct ath_softc *sc, @@ -1940,6 +1939,9 @@ int ath_rx_tasklet(struct ath_softc *sc,
ath9k_rx_skb_postprocess(common, hdr_skb, &rs, sc->rx.rxotherant = 0;
rxs, decrypt_error); }
+ if (rxs->flag & RX_FLAG_MMIC_STRIPPED) + if (rxs->flag & RX_FLAG_MMIC_STRIPPED)
+ skb_trim(skb, skb->len - 8); + skb_trim(skb, skb->len - 8);
+ +
/* We will now give hardware our shiny new allocated skb */ spin_lock_irqsave(&sc->sc_pm_lock, flags);
bf->bf_mpdu = requeue_skb;
bf->bf_buf_addr = dma_map_single(sc->dev, requeue_skb->data, if ((sc->ps_flags & (PS_WAIT_FOR_BEACON |