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/65ef6a55d437
branches: trunk
changeset: 377948:65ef6a55d437
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 d4b8a0aa276b -r 65ef6a55d437 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 @@ usbwifi_tx_prio_start(struct usbwifi *uw
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 @@ usbwifi_tx_prio_start(struct usbwifi *uw
if (vap != NULL)
if_statinc(vap->iv_ifp, if_oerrors);
break;
+ ieee80211_tx_complete(ni, m, 1);
}
done_transmit = true;
@@ -861,10 +863,10 @@ usbwifi_tx_prio_start(struct usbwifi *uw
*/
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