diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2013-08-27 14:39:37 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2013-08-27 14:39:37 +0000 |
commit | e95f34242c7949d36b2477c311cdde6790e43a68 (patch) | |
tree | c73d869639c324115532bcd83c9acd7ce0f89e61 /sys/dev/ath/if_ath.c | |
parent | 36ee7775f49fd0be16ffa563e40c6cd5d19e03f6 (diff) | |
download | src-e95f34242c7949d36b2477c311cdde6790e43a68.tar.gz src-e95f34242c7949d36b2477c311cdde6790e43a68.zip |
Use the new ieee80211_tx_complete() function.
Notes
Notes:
svn path=/head/; revision=254957
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r-- | sys/dev/ath/if_ath.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 3c475857974f..b4df1d67fc2e 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -4581,17 +4581,8 @@ ath_tx_freebuf(struct ath_softc *sc, struct ath_buf *bf, int status) /* 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 * |