clear pending callbacks when the driver try to change the state

Pointed by:	sam
This commit is contained in:
Weongyo Jeong 2008-09-19 05:10:33 +00:00
parent 5d99d99ff4
commit e6be242b0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183175

View File

@ -763,7 +763,9 @@ zyd_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
struct ieee80211com *ic = vap->iv_ic;
struct zyd_softc *sc = ic->ic_ifp->if_softc;
usb_rem_task(sc->sc_udev, &sc->sc_scantask);
usb_rem_task(sc->sc_udev, &sc->sc_task);
callout_stop(&sc->sc_watchdog_ch);
/* do it in a process context */
sc->sc_state = nstate;