summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravos <avos@FreeBSD.org>2015-10-23 17:35:03 +0000
committeravos <avos@FreeBSD.org>2015-10-23 17:35:03 +0000
commit495cadb99fd3b99f7ac1a08451c84940d3fb747a (patch)
tree9f91dd3f4753f952e642b0a6a4613477e42a7a73
parent9b481e0851f7fd5621869fe467c827823ffff38c (diff)
downloadFreeBSD-src-495cadb99fd3b99f7ac1a08451c84940d3fb747a.zip
FreeBSD-src-495cadb99fd3b99f7ac1a08451c84940d3fb747a.tar.gz
run(4): convert to ieee80211_tx_complete()
Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3992
-rw-r--r--sys/dev/usb/wlan/if_run.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c
index 5c4d755..d5b5288 100644
--- a/sys/dev/usb/wlan/if_run.c
+++ b/sys/dev/usb/wlan/if_run.c
@@ -3030,20 +3030,11 @@ static void
run_tx_free(struct run_endpoint_queue *pq,
struct run_tx_data *data, int txerr)
{
- if (data->m != NULL) {
- if (data->m->m_flags & M_TXCB)
- ieee80211_process_callback(data->ni, data->m,
- txerr ? ETIMEDOUT : 0);
- m_freem(data->m);
- data->m = NULL;
-
- if (data->ni == NULL) {
- DPRINTF("no node\n");
- } else {
- ieee80211_free_node(data->ni);
- data->ni = NULL;
- }
- }
+
+ ieee80211_tx_complete(data->ni, data->m, txerr);
+
+ data->m = NULL;
+ data->ni = NULL;
STAILQ_INSERT_TAIL(&pq->tx_fh, data, next);
pq->tx_nfree++;
OpenPOWER on IntegriCloud