ath9k: fix resetting the hw during channel change when the MAC fails to go idle

SVN-Revision: 26665
This commit is contained in:
Felix Fietkau 2011-04-14 22:46:12 +00:00
parent 79ecac89e6
commit e0aa62e3c2

View file

@ -258,7 +258,7 @@
ATH_DBG_WARN_ON_ONCE(!stopped); ATH_DBG_WARN_ON_ONCE(!stopped);
} }
- return stopped; - return stopped;
+ return stopped || reset; + return stopped && !reset;
} }
void ath_flushrecv(struct ath_softc *sc) void ath_flushrecv(struct ath_softc *sc)