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/60ee10522d95
branches:  trunk
changeset: 949557:60ee10522d95
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 938616b74836 -r 60ee10522d95 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
@@ -3263,10 +3263,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
@@ -3636,10 +3636,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