mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Use the new ieee80211_tx_complete() function.
This commit is contained in:
parent
36ee7775f4
commit
e95f34242c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254957
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user