PERFORCE change 87231 for review
Sam Leffler
sam at FreeBSD.org
Sat Nov 26 00:54:24 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=87231
Change 87231 by sam at 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;
More information about the p4-projects
mailing list