Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2019 14:32:27 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r343910 - stable/10/sys/dev/bwn
Message-ID:  <201902081432.x18EWRkH025628@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Fri Feb  8 14:32:27 2019
New Revision: 343910
URL: https://svnweb.freebsd.org/changeset/base/343910

Log:
  MFC r343604:
  bwn(4): reuse ieee80211_tx_complete function

Modified:
  stable/10/sys/dev/bwn/if_bwn.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/bwn/if_bwn.c
==============================================================================
--- stable/10/sys/dev/bwn/if_bwn.c	Fri Feb  8 14:31:44 2019	(r343909)
+++ stable/10/sys/dev/bwn/if_bwn.c	Fri Feb  8 14:32:27 2019	(r343910)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902081432.x18EWRkH025628>