ath - Change the way the edma rxfifo is reset (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Aug 2014 20:54:17 +0000 (13:54 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Aug 2014 20:54:17 +0000 (13:54 -0700)
* Correct a debugging change that wasn't supposed to go in.

sys/dev/netif/ath/ath/if_ath_rx_edma.c

index 4afa781..a33d72a 100644 (file)
@@ -754,7 +754,7 @@ ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs)
        /*
         * Allocate buffers until the FIFO is full or nbufs is reached.
         */
-       for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen - 1; i++) {
+       for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) {
                /* Ensure the FIFO is already blank, complain loudly! */
                if (re->m_fifo[re->m_fifo_tail] != NULL) {
                        device_printf(sc->sc_dev,