Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Use ieee80211_tx_complete() for error case...
details: https://anonhg.NetBSD.org/src-all/rev/80df4c8fbd65
branches: trunk
changeset: 952348:80df4c8fbd65
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Sat Feb 13 18:46:46 2021 +0100
description:
Use ieee80211_tx_complete() for error cases too.
diffstat:
sys/dev/pci/if_iwn.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (35 lines):
diff -r 0291bfcdb01c -r 80df4c8fbd65 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Sat Feb 13 18:40:55 2021 +0100
+++ b/sys/dev/pci/if_iwn.c Sat Feb 13 18:46:46 2021 +0100
@@ -3315,19 +3315,14 @@
bpf_mtap3(vap->iv_rawbpf, m, BPF_D_OUT);
if (iwn_tx(vap, m, ni, ac) != 0) {
- ieee80211_free_node(ni);
+ ieee80211_tx_complete(ni, m, 1);
if_statinc(ifp, if_oerrors);
- return ENXIO;
+ return ENXIO;
}
sc->sc_tx_timer = 5;
ifp->if_timer = 1;
-#if 0
-
- m_freem(m);
- ieee80211_free_node(ni);
-
-#endif
+
return 0;
}
@@ -3691,7 +3686,7 @@
//bpf_mtap3(ic->ic_rawbpf, m, BPF_D_OUT);
if (iwn_tx(vap, m, ni, ac) != 0) {
- ieee80211_free_node(ni);
+ ieee80211_tx_complete(ni, m, 1);
if_statinc(ifp, if_oerrors);
continue;
}
Home |
Main Index |
Thread Index |
Old Index