From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Fietkau Date: Mon, 01 Apr 2013 19:40:39 +0200 Subject: [ath9k-devel] [PATCH] ath9k: Re-enable interrupts after a channel change failure In-Reply-To: References: Message-ID: <5159C697.4040609@openwrt.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On 2013-04-01 4:22 PM, Robert Shade wrote: > Re-enable interrupts after a channel change failure, since > ath_complete_reset will not be called. Also schedule a reset as a > best effort method to recover the chip from whatever state caused the > channel change failure. > > Signed-off-by: Robert Shade Your patch is badly whitespace damaged. > --- > drivers/net/wireless/ath/ath9k/main.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath9k/main.c > b/drivers/net/wireless/ath/ath9k/main.c > index 24650fd..0567ac9 100644 > --- a/drivers/net/wireless/ath/ath9k/main.c > +++ b/drivers/net/wireless/ath/ath9k/main.c > @@ -280,6 +280,12 @@ static int ath_reset_internal(struct ath_softc > *sc, struct ath9k_channel *hchan) > if (r) { > ath_err(common, > "Unable to reset channel, reset status %d\n", r); > + > + ath9k_hw_set_interrupts(ah); Why the call to ath9k_hw_set_interrupts here? > + ath9k_hw_enable_interrupts(ah); > + > + ath9k_queue_reset(sc, RESET_TYPE_BB_HANG); > + > goto out; > }