mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 10:52:50 +00:00
MFC r343604:
bwn(4): reuse ieee80211_tx_complete function
This commit is contained in:
parent
a11b7e786b
commit
75988fabe0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=343910
@ -9473,17 +9473,8 @@ bwn_pio_handle_txeof(struct bwn_mac *mac,
|
||||
tq->tq_used -= roundup(tp->tp_m->m_pkthdr.len + BWN_HDRSIZE(mac), 4);
|
||||
tq->tq_free++;
|
||||
|
||||
if (tp->tp_ni != NULL) {
|
||||
/*
|
||||
* Do any tx complete callback. Note this must
|
||||
* be done before releasing the node reference.
|
||||
*/
|
||||
if (tp->tp_m->m_flags & M_TXCB)
|
||||
ieee80211_process_callback(tp->tp_ni, tp->tp_m, 0);
|
||||
ieee80211_free_node(tp->tp_ni);
|
||||
tp->tp_ni = NULL;
|
||||
}
|
||||
m_freem(tp->tp_m);
|
||||
ieee80211_tx_complete(tp->tp_ni, tp->tp_m, 0);
|
||||
tp->tp_ni = NULL;
|
||||
tp->tp_m = NULL;
|
||||
TAILQ_INSERT_TAIL(&tq->tq_pktlist, tp, tp_list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user