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 Ensure tx functions operate at the require...



details:   https://anonhg.NetBSD.org/src-all/rev/ec4934c696c5
branches:  trunk
changeset: 375512:ec4934c696c5
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Wed Jul 01 12:28:56 2020 +1000

description:
Ensure tx functions operate at the required stages of the state machine.

diffstat:

 sys/dev/pci/if_iwn.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f502f9aba7f0 -r ec4934c696c5 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Wed Jul 01 12:27:58 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Wed Jul 01 12:28:56 2020 +1000
@@ -3336,10 +3336,10 @@ 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 0
        if (vap->iv_state != IEEE80211_S_RUN)
                return ENXIO;
 #endif
@@ -3709,10 +3709,8 @@ 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