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/f2148e00bc20
branches:  trunk
changeset: 952468:f2148e00bc20
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 e8efbc94570b -r f2148e00bc20 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
@@ -3255,11 +3255,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) {
@@ -3630,8 +3632,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