Date: Tue, 27 Aug 2013 14:39:37 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254957 - head/sys/dev/ath Message-ID: <201308271439.r7REdbmu024875@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Tue Aug 27 14:39:37 2013 New Revision: 254957 URL: http://svnweb.freebsd.org/changeset/base/254957 Log: Use the new ieee80211_tx_complete() function. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Tue Aug 27 14:37:13 2013 (r254956) +++ head/sys/dev/ath/if_ath.c Tue Aug 27 14:39:37 2013 (r254957) @@ -4581,17 +4581,8 @@ ath_tx_freebuf(struct ath_softc *sc, str /* Free the buffer, it's not needed any longer */ ath_freebuf(sc, bf); - if (ni != NULL) { - /* - * Do any callback and reclaim the node reference. - */ - if (m0->m_flags & M_TXCB) - ieee80211_process_callback(ni, m0, status); - ieee80211_free_node(ni); - } - - /* Finally, we don't need this mbuf any longer */ - m_freem(m0); + /* Pass the buffer back to net80211 - completing it */ + ieee80211_tx_complete(ni, m0, status); } static struct ath_buf *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308271439.r7REdbmu024875>