svn commit: r225129 - user/adrian/if_ath_tx/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Wed Aug 24 05:59:58 UTC 2011


Author: adrian
Date: Wed Aug 24 05:59:58 2011
New Revision: 225129
URL: http://svn.freebsd.org/changeset/base/225129

Log:
  * Setup bf_lastds when fiddling with beacon descriptors
  * Restore a DMA unmap call I removed earlier

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Wed Aug 24 04:42:31 2011	(r225128)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c	Wed Aug 24 05:59:58 2011	(r225129)
@@ -2494,6 +2494,7 @@ ath_beacon_setup(struct ath_softc *sc, s
 	/* setup descriptors */
 	ds = bf->bf_desc;
 	bf->bf_last = bf;
+	bf->bf_lastds = ds;
 
 	flags = HAL_TXDESC_NOACK;
 	if (ic->ic_opmode == IEEE80211_M_IBSS && sc->sc_hasveol) {
@@ -4577,6 +4578,7 @@ void
 ath_freebuf(struct ath_softc *sc, struct ath_buf *bf)
 {
 	bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
+	bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap, BUS_DMASYNC_POSTWRITE);
 
 	KASSERT((bf->bf_node == NULL), ("%s: bf->bf_node != NULL\n", __func__));
 	KASSERT((bf->bf_m == NULL), ("%s: bf->bf_m != NULL\n", __func__));


More information about the svn-src-user mailing list