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/e91ac9b7eac5
branches: trunk
changeset: 935800:e91ac9b7eac5
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 51a3705c3c3c -r e91ac9b7eac5 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
@@ -3257,13 +3257,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) {
@@ -3271,7 +3269,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);
@@ -3279,7 +3276,6 @@
if_statinc(ifp, if_oerrors);
return ENOBUFS;
}
-#endif
/* No QoS encapsulation for EAPOL frames. */
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
@@ -3287,13 +3283,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