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/c354ee0badc6
branches:  trunk
changeset: 950556:c354ee0badc6
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 f39c34d1b677 -r c354ee0badc6 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
@@ -2156,7 +2156,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;
@@ -2247,11 +2247,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;
@@ -2259,7 +2259,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