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/f0649ef1feaf
branches:  trunk
changeset: 367836:f0649ef1feaf
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 e1662d8708d9 -r f0649ef1feaf 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 @@
        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 @@
                        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