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 ieee80211_tx_complete() for error case...
details: https://anonhg.NetBSD.org/src-all/rev/7908e29446ee
branches: trunk
changeset: 952346:7908e29446ee
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Sat Feb 13 18:39:41 2021 +0100
description:
Use ieee80211_tx_complete() for error cases too.
diffstat:
sys/dev/usb/if_urtwn.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r e9bb855772b7 -r 7908e29446ee sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Fri Feb 12 20:13:04 2021 +0100
+++ b/sys/dev/usb/if_urtwn.c Sat Feb 13 18:39:41 2021 +0100
@@ -2999,7 +2999,8 @@
device_xname(sc->sc_dev), __func__, status));
if (data->m) {
- ieee80211_tx_complete(data->ni, data->m, 0);
+ ieee80211_tx_complete(data->ni, data->m,
+ status != USBD_NORMAL_COMPLETION);
data->m = NULL;
data->ni = NULL;
}
@@ -3322,8 +3323,7 @@
bpf_mtap(vap->iv_ifp, m, BPF_D_OUT);
if (urtwn_tx(sc, m, ni, data) != 0) {
- m_freem(m);
- ieee80211_free_node(ni);
+ ieee80211_tx_complete(ni, m, 1);
if (vap != NULL)
if_statinc(vap->iv_ifp, if_oerrors);
urtwn_put_tx_data(sc, data);
@@ -3632,9 +3632,8 @@
error = urtwn_tx(sc, m, ni, data);
if (error != 0) {
if_statinc(vap->iv_ifp, if_oerrors);
+ ieee80211_tx_complete(ni, m, 1);
urtwn_put_tx_data(sc, data);
- m_freem(m);
- ieee80211_free_node(ni);
} else {
sc->tx_timer = 5;
vap->iv_ifp->if_timer = 1;
Home |
Main Index |
Thread Index |
Old Index