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 Allow transmit functions to be used before...
details: https://anonhg.NetBSD.org/src-all/rev/01d0ebd2a9a0
branches: trunk
changeset: 364077:01d0ebd2a9a0
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Sat Jun 20 08:27:22 2020 +1000
description:
Allow transmit functions to be used before entering the run state.
diffstat:
sys/dev/pci/if_iwn.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 47e032129b1f -r 01d0ebd2a9a0 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c Sat Jun 20 08:25:56 2020 +1000
+++ b/sys/dev/pci/if_iwn.c Sat Jun 20 08:27:22 2020 +1000
@@ -3328,11 +3328,13 @@
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) {
@@ -3703,8 +3705,10 @@
ac = 0;
goto sendit;
}
+#if 0
if (vap->iv_state != IEEE80211_S_RUN)
break;
+#endif
/* Encapsulate and send data frames. */
IFQ_DEQUEUE(&ifp->if_snd, m);
Home |
Main Index |
Thread Index |
Old Index