Tested-by: Sedat Dilek <sedat.dilek@xxxxxxxxx> On Fri, Dec 3, 2010 at 5:07 AM, Nick Kossifidis <mickflemm@xxxxxxxxx> wrote: > Â* Stop ANI durring reset to prevent false PHY error reports > > ÂSigned-off-by: Nick Kossifidis <mickflemm@xxxxxxxxx> > > --- > Âdrivers/net/wireless/ath/ath5k/base.c | Â 10 ++++++++-- > Â1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c > index 047b2a0..6edfa9f 100644 > --- a/drivers/net/wireless/ath/ath5k/base.c > +++ b/drivers/net/wireless/ath/ath5k/base.c > @@ -2504,7 +2504,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan, > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âbool skip_pcu) > Â{ > Â Â Â Âstruct ath5k_hw *ah = sc->ah; > - Â Â Â int ret; > + Â Â Â int ret, ani_mode; > > Â Â Â ÂATH5K_DBG(sc, ATH5K_DEBUG_RESET, "resetting\n"); > > @@ -2512,6 +2512,12 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan, > Â Â Â Âsynchronize_irq(sc->pdev->irq); > Â Â Â Âstop_tasklets(sc); > > + Â Â Â /* Save ani mode and disable ANI durring > + Â Â Â Â* reset. If we don't we might get false > + Â Â Â Â* PHY error interrupts. */ > + Â Â Â ani_mode = ah->ah_sc->ani_state.ani_mode; > + Â Â Â ath5k_ani_init(ah, ATH5K_ANI_MODE_OFF); > + > Â Â Â Â/* We are going to empty hw queues > Â Â Â Â * so we should also free any remaining > Â Â Â Â * tx buffers */ > @@ -2533,7 +2539,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan, > Â Â Â Â Â Â Â Âgoto err; > Â Â Â Â} > > - Â Â Â ath5k_ani_init(ah, ah->ah_sc->ani_state.ani_mode); > + Â Â Â ath5k_ani_init(ah, ani_mode); > > Â Â Â Âah->ah_cal_next_full = jiffies; > Â Â Â Âah->ah_cal_next_ani = jiffies; > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html