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 Restore flushing the tx queue when the dev...



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

description:
Restore flushing the tx queue when the device is initialized.

diffstat:

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

diffs (33 lines):

diff -r 03f2427c234e -r 343595045392 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Wed Jul 01 12:25:26 2020 +1000
+++ b/sys/dev/pci/if_iwn.c      Wed Jul 01 12:26:13 2020 +1000
@@ -2229,7 +2229,7 @@
 {
        struct ieee80211com *ic = vap->iv_ic;
        struct iwn_softc *sc = ic->ic_softc;
-       //struct ifnet *ifp = vap->iv_ifp;
+       struct ifnet *ifp = vap->iv_ifp;
        int error;
 
        enum ieee80211_state ostate = vap->iv_state;
@@ -2320,11 +2320,11 @@
                sc->sc_flags &= ~IWN_FLAG_SCANNING;
                sc->calib.state = IWN_CALIB_STATE_INIT;
                break;
-#if 0
                /*
                 * Purge the xmit queue so we don't have old frames
                 * during a new association attempt.
                 */
+               iwn_stop(ifp, 0);
                error = iwn_init(ifp);
                if (error)
                        return error;
@@ -2332,7 +2332,6 @@
                ifp->if_flags &= ~IFF_OACTIVE;
                iwn_start(ifp);
                break;
-#endif
        }
 
        error = (*sc->sc_newstate)(vap, nstate, arg);



Home | Main Index | Thread Index | Old Index