aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index fbdcc80437fe..6a7dd26f2a13 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -658,9 +658,9 @@ static bool ath_edma_get_buffers(struct ath_softc *sc,
658 __skb_unlink(skb, &rx_edma->rx_fifo); 658 __skb_unlink(skb, &rx_edma->rx_fifo);
659 list_add_tail(&bf->list, &sc->rx.rxbuf); 659 list_add_tail(&bf->list, &sc->rx.rxbuf);
660 ath_rx_edma_buf_link(sc, qtype); 660 ath_rx_edma_buf_link(sc, qtype);
661 } else {
662 bf = NULL;
663 } 661 }
662
663 bf = NULL;
664 } 664 }
665 665
666 *dest = bf; 666 *dest = bf;
@@ -785,7 +785,8 @@ static bool ath9k_rx_accept(struct ath_common *common,
785 * descriptor does contain a valid key index. This has been observed 785 * descriptor does contain a valid key index. This has been observed
786 * mostly with CCMP encryption. 786 * mostly with CCMP encryption.
787 */ 787 */
788 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID) 788 if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID ||
789 !test_bit(rx_stats->rs_keyix, common->ccmp_keymap))
789 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; 790 rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS;
790 791
791 if (!rx_stats->rs_datalen) { 792 if (!rx_stats->rs_datalen) {