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 Add back in checks in iwn_start.
details: https://anonhg.NetBSD.org/src-all/rev/70070def193b
branches: trunk
changeset: 987979:70070def193b
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Wed Jun 10 22:44:29 2020 +1000
description:
Add back in checks in iwn_start.
diffstat:
sys/dev/pci/if_iwn.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 894b5d26e5b2 -r 70070def193b sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Mon Jun 08 05:49:03 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Wed Jun 10 22:44:29 2020 +1000
@@ -3330,13 +3330,11 @@
KASSERT(sc != NULL);
KASSERT(m != NULL);
-#if 0
if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING)
return 0;
if (vap->iv_state != IEEE80211_S_RUN)
return ENXIO;
-#endif
if (m->m_len < sizeof (*eh) &&
(m = m_pullup(m, sizeof (*eh))) == NULL) {
@@ -3344,7 +3342,6 @@
return EIO;
}
eh = mtod(m, struct ether_header *);
-#if 0
/* classify mbuf so we can find which tx ring to use */
if (ieee80211_classify(ni, m) != 0) {
m_freem(m);
@@ -3352,7 +3349,6 @@
if_statinc(ifp, if_oerrors);
return ENOBUFS;
}
-#endif
/* No QoS encapsulation for EAPOL frames. */
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
@@ -3360,13 +3356,11 @@
bpf_mtap3(vap->iv_rawbpf, m, BPF_D_OUT);
-#if 0
if ((m = ieee80211_encap(vap, ni, m)) == NULL) {
ieee80211_free_node(ni);
if_statinc(ifp, if_oerrors);
return ENOMEM;
}
-#endif
if (iwn_tx(sc, m, ni, ac) != 0) {
Home |
Main Index |
Thread Index |
Old Index