aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2019-01-31 11:12:31 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2019-01-31 11:12:31 +0000
commit838b61c1f0029564d6bafbef2a1259144614622e (patch)
tree0155b524d35204efb573b2c6d1170a0210b00969 /sys/dev/bwn
parent9b1a29716a1a32d1a03b295fa037ffdf97435e61 (diff)
Notes
Diffstat (limited to 'sys/dev/bwn')
-rw-r--r--sys/dev/bwn/if_bwn.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 6f8bac67bc72..d6a1926282ef 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -6211,20 +6211,15 @@ 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++;
- /* XXX ieee80211_tx_complete()? */
if (tp->tp_ni != NULL) {
/*
* Do any tx complete callback. Note this must
* be done before releasing the node reference.
*/
-
bwn_ratectl_tx_complete(tp->tp_ni, status);
- 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);