Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Use tx_complete.



details:   https://anonhg.NetBSD.org/src-all/rev/21068603d9ae
branches:  trunk
changeset: 360717:21068603d9ae
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Jan 02 12:11:26 2022 +1100

description:
Use tx_complete.

diffstat:

 sys/dev/usb/usbwifi.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 6f5c18b37d6f -r 21068603d9ae sys/dev/usb/usbwifi.c
--- a/sys/dev/usb/usbwifi.c     Sun Jan 02 12:10:22 2022 +1100
+++ b/sys/dev/usb/usbwifi.c     Sun Jan 02 12:11:26 2022 +1100
@@ -833,6 +833,7 @@
                        DPRINTF("uwc_xfer is NULL", 0, 0, 0, 0);
                        if (vap != NULL)
                                if_statinc(vap->iv_ifp, if_oerrors);
+                       ieee80211_tx_complete(ni, m, 1);
                        c->uwc_ni = NULL;
                        c->uwc_mbuf = NULL;
                        break;
@@ -850,6 +851,7 @@
                        if (vap != NULL)
                                if_statinc(vap->iv_ifp, if_oerrors);
                        break;
+                       ieee80211_tx_complete(ni, m, 1);
                }
                done_transmit = true;
 
@@ -861,10 +863,10 @@
                 */
                if (vap != NULL)
                        bpf_mtap(vap->iv_ifp, m, BPF_D_OUT);
-               m_freem(m);
 
                idx = (idx + 1) % uw->uw_tx_list_cnt;
                s_chain->uwscd_tx_cnt++;
+               ieee80211_tx_complete(ni, m, 0);
        }
        s_chain->uwscd_tx_prod = idx;
 



Home | Main Index | Thread Index | Old Index