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/72770ca2567f
branches:  trunk
changeset: 371089:72770ca2567f
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 e4dafedd50bf -r 72770ca2567f 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