Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2005 00:54:04 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 87231 for review
Message-ID:  <200511260054.jAQ0s4KM015272@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=87231

Change 87231 by sam@sam_ebb on 2005/11/26 00:53:59

	do tx complete callback

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#115 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#115 (text+ko) ====

@@ -4320,7 +4320,15 @@
 					nacked++;
 				ath_rate_tx_complete(sc, an, ds, ds0);
 			}
+
 			/*
+			 * Do any tx complete callback.  Note this must
+			 * be done before releasing the node reference.
+			 */
+			if (bf->bf_m->m_flags & M_TXCB)
+				ieee80211_process_callback(ni, bf->bf_m,
+					ds->ds_txstat.ts_status);
+			/*
 			 * Reclaim reference to node.
 			 *
 			 * NB: the node may be reclaimed here if, for example
@@ -4332,6 +4340,7 @@
 		bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap,
 		    BUS_DMASYNC_POSTWRITE);
 		bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
+
 		m_freem(bf->bf_m);
 		bf->bf_m = NULL;
 		bf->bf_node = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511260054.jAQ0s4KM015272>