diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 7 |
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 e1fcc68124dc..0735aeb3b26c 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
| @@ -695,9 +695,9 @@ static bool ath_edma_get_buffers(struct ath_softc *sc, | |||
| 695 | __skb_unlink(skb, &rx_edma->rx_fifo); | 695 | __skb_unlink(skb, &rx_edma->rx_fifo); |
| 696 | list_add_tail(&bf->list, &sc->rx.rxbuf); | 696 | list_add_tail(&bf->list, &sc->rx.rxbuf); |
| 697 | ath_rx_edma_buf_link(sc, qtype); | 697 | ath_rx_edma_buf_link(sc, qtype); |
| 698 | } else { | ||
| 699 | bf = NULL; | ||
| 700 | } | 698 | } |
| 699 | |||
| 700 | bf = NULL; | ||
| 701 | } | 701 | } |
| 702 | 702 | ||
| 703 | *dest = bf; | 703 | *dest = bf; |
| @@ -822,7 +822,8 @@ static bool ath9k_rx_accept(struct ath_common *common, | |||
| 822 | * descriptor does contain a valid key index. This has been observed | 822 | * descriptor does contain a valid key index. This has been observed |
| 823 | * mostly with CCMP encryption. | 823 | * mostly with CCMP encryption. |
| 824 | */ | 824 | */ |
| 825 | if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID) | 825 | if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID || |
| 826 | !test_bit(rx_stats->rs_keyix, common->ccmp_keymap)) | ||
| 826 | rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; | 827 | rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS; |
| 827 | 828 | ||
| 828 | if (!rx_stats->rs_datalen) { | 829 | if (!rx_stats->rs_datalen) { |
