ath9k: Fix bug in handling rx frames with invalid descriptor content
PATCH 1/2 ath9k: Fix bug in handling rx frames with invalid descriptor content
Don't send them for further processing.
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>
--- drivers/net/wireless/ath/ath9k/recv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/recv.c +1 -0
@@ -718,6 +718,7 @@ static bool ath_edma_get_buffers(struct ath_softc *sc,__skb_unlink (skb, &rx_edma->rx_fifo);list_add_tail (&bf->list, &sc->rx.rxbuf);ath_rx_edma_buf_link (sc, qtype); +return true; }skb_queue_tail (&rx_edma->rx_buffers, skb);
Signature · 1 line
1.7.0.4
PATCH 2/2 ath9k: Remove unused rx_edma in ath_rx_addbuffer_edma()
Signed-off-by Vasanthakumar Thiagarajan <[email protected]>
--- drivers/net/wireless/ath/ath9k/recv.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/wireless/ath/ath9k/recv.c +0 -2
@@ -150,11 +150,9 @@ static bool ath_rx_edma_buf_link(struct ath_softc *sc,static void ath_rx_addbuffer_edma (struct ath_softc *sc,enum ath9k_rx_qtype qtype,int size) { -struct ath_rx_edma *rx_edma;struct ath_common *common =ath9k_hw_common (sc->sc_ah);u32 nbuf =0 ; - rx_edma = &sc->rx.rx_edma[qtype];if (list_empty (&sc->rx.rxbuf)) {ath_print (common,ATH_DBG_QUEUE ,"No free rx buf available\n" );return ;
Signature · 1 line
1.7.0.4