disable interrupts when transitioning to INIT state so we don't rx frames

This commit is contained in:
Sam Leffler 2005-01-18 19:31:31 +00:00
parent f6b8ec160d
commit 4c24deac20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140436

View File

@ -3885,7 +3885,10 @@ ath_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
if (nstate == IEEE80211_S_INIT) {
sc->sc_imask &= ~(HAL_INT_SWBA | HAL_INT_BMISS);
ath_hal_intrset(ah, sc->sc_imask);
/*
* NB: disable interrupts so we don't rx frames.
*/
ath_hal_intrset(ah, sc->sc_imask &~ ~HAL_INT_GLOBAL);
/*
* Notify the rate control algorithm.
*/