diff options
author | sam <sam@FreeBSD.org> | 2005-01-18 19:31:31 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-01-18 19:31:31 +0000 |
commit | c07a9877d0bc70dba930959c878522bbdae1b59b (patch) | |
tree | 015c7f79dbf264231f33cb80d10995a395231f71 | |
parent | ebc4d3408eb72c8a6dad3169f115b257c277a658 (diff) | |
download | FreeBSD-src-c07a9877d0bc70dba930959c878522bbdae1b59b.zip FreeBSD-src-c07a9877d0bc70dba930959c878522bbdae1b59b.tar.gz |
disable interrupts when transitioning to INIT state so we don't rx frames
-rw-r--r-- | sys/dev/ath/if_ath.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index d999db7..e215522 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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. */ |