diff options
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 1a6e72fe7be..c8c658bfcf9 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -1618,9 +1618,8 @@ ath5k_rx_start(struct ath5k_softc *sc) | |||
1618 | ATH5K_DBG(sc, ATH5K_DEBUG_RESET, "cachelsz %u rxbufsize %u\n", | 1618 | ATH5K_DBG(sc, ATH5K_DEBUG_RESET, "cachelsz %u rxbufsize %u\n", |
1619 | sc->cachelsz, sc->rxbufsize); | 1619 | sc->cachelsz, sc->rxbufsize); |
1620 | 1620 | ||
1621 | sc->rxlink = NULL; | ||
1622 | |||
1623 | spin_lock_bh(&sc->rxbuflock); | 1621 | spin_lock_bh(&sc->rxbuflock); |
1622 | sc->rxlink = NULL; | ||
1624 | list_for_each_entry(bf, &sc->rxbuf, list) { | 1623 | list_for_each_entry(bf, &sc->rxbuf, list) { |
1625 | ret = ath5k_rxbuf_setup(sc, bf); | 1624 | ret = ath5k_rxbuf_setup(sc, bf); |
1626 | if (ret != 0) { | 1625 | if (ret != 0) { |
@@ -1629,9 +1628,9 @@ ath5k_rx_start(struct ath5k_softc *sc) | |||
1629 | } | 1628 | } |
1630 | } | 1629 | } |
1631 | bf = list_first_entry(&sc->rxbuf, struct ath5k_buf, list); | 1630 | bf = list_first_entry(&sc->rxbuf, struct ath5k_buf, list); |
1631 | ath5k_hw_set_rxdp(ah, bf->daddr); | ||
1632 | spin_unlock_bh(&sc->rxbuflock); | 1632 | spin_unlock_bh(&sc->rxbuflock); |
1633 | 1633 | ||
1634 | ath5k_hw_set_rxdp(ah, bf->daddr); | ||
1635 | ath5k_hw_start_rx_dma(ah); /* enable recv descriptors */ | 1634 | ath5k_hw_start_rx_dma(ah); /* enable recv descriptors */ |
1636 | ath5k_mode_setup(sc); /* set filters, etc. */ | 1635 | ath5k_mode_setup(sc); /* set filters, etc. */ |
1637 | ath5k_hw_start_rx_pcu(ah); /* re-enable PCU/DMA engine */ | 1636 | ath5k_hw_start_rx_pcu(ah); /* re-enable PCU/DMA engine */ |