MFC r343604:

bwn(4): reuse ieee80211_tx_complete function
This commit is contained in:
Andriy Voskoboinyk 2019-02-08 14:32:27 +00:00
parent a11b7e786b
commit 75988fabe0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=343910

View File

@ -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);