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/bdbb5ed8ab04
branches: trunk
changeset: 369107:bdbb5ed8ab04
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 6d91bde80e77 -r bdbb5ed8ab04 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