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/3332e74cf988
branches:  trunk
changeset: 376813:3332e74cf988
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 d885aaf51590 -r 3332e74cf988 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 @@ iwn_raw_xmit(struct ieee80211_node *ni ,
        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 @@ iwn_start(struct ifnet *ifp)
                        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