diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2012-07-23 23:40:13 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-07-23 23:40:13 +0000 |
| commit | 1006fc0c3bc4da106121abe5ddc72c1b57c6360b (patch) | |
| tree | ee595f54ee113486a7fca35a2bbc3fe116ece1b0 /sys/dev/ath/if_ath_rx.c | |
| parent | 8a489dc248c293cc42ed70806225a02376af3f65 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/if_ath_rx.c')
| -rw-r--r-- | sys/dev/ath/if_ath_rx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c index 9e90977b9057..4027bfeb74e2 100644 --- a/sys/dev/ath/if_ath_rx.c +++ b/sys/dev/ath/if_ath_rx.c @@ -1075,7 +1075,7 @@ ath_legacy_dma_rxsetup(struct ath_softc *sc) device_printf(sc->sc_dev, "%s: called\n", __func__); error = ath_descdma_setup(sc, &sc->sc_rxdma, &sc->sc_rxbuf, - "rx", ath_rxbuf, 1); + "rx", sizeof(struct ath_desc), ath_rxbuf, 1); if (error != 0) return (error); @@ -1099,6 +1099,9 @@ ath_recv_setup_legacy(struct ath_softc *sc) device_printf(sc->sc_dev, "DMA setup: legacy\n"); + /* Sensible legacy defaults */ + sc->sc_rx_statuslen = 0; + sc->sc_rx.recv_start = ath_legacy_startrecv; sc->sc_rx.recv_stop = ath_legacy_stoprecv; sc->sc_rx.recv_flush = ath_legacy_flushrecv; |
