linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: <linux-wireless@vger.kernel.org>, <linville@tuxdriver.com>,
	<rodrigue@qca.qualcomm.com>
Subject: Re: [PATCH v4 2/3] ath9k: merge reset related functions
Date: Mon, 29 Aug 2011 15:58:09 +0530	[thread overview]
Message-ID: <20110829102809.GA331@vmraj-lnx.users.atheros.com> (raw)
In-Reply-To: <1314611896-97031-2-git-send-email-nbd@openwrt.org>

On Mon, Aug 29, 2011 at 11:58:15AM +0200, Felix Fietkau wrote:
> reduces unnecessary code duplication
> 
> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> ---
>  drivers/net/wireless/ath/ath9k/main.c |  258 +++++++++++++--------------------
>  1 files changed, 100 insertions(+), 158 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 085ec20..4c3671a 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -212,83 +212,45 @@ static int ath_update_survey_stats(struct ath_softc *sc)
>  	return ret;
>  }
>  
> -/*
> - * Set/change channels.  If the channel is really being changed, it's done
> - * by reseting the chip.  To accomplish this we must first cleanup any pending
> - * DMA, then restart stuff.
> -*/
> -static int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
> -		    struct ath9k_channel *hchan)
> +static bool ath_prepare_reset(struct ath_softc *sc, bool retry_tx, bool flush)
>  {
>  	struct ath_hw *ah = sc->sc_ah;
> -	struct ath_common *common = ath9k_hw_common(ah);
> -	struct ieee80211_conf *conf = &common->hw->conf;
> -	bool fastcc = true, stopped;
> -	struct ieee80211_channel *channel = hw->conf.channel;
> -	struct ath9k_hw_cal_data *caldata = NULL;
> -	int r;
> +	bool ret;
>  
> -	if (sc->sc_flags & SC_OP_INVALID)
> -		return -EIO;
> +	ieee80211_stop_queues(sc->hw);
>  
>  	sc->hw_busy_count = 0;
> -
> -	del_timer_sync(&common->ani.timer);

ani timer never be stopped. why did you remove from ath_prepare_reset?

--
Rajkumar

  parent reply	other threads:[~2011-08-29 10:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29  9:58 [PATCH v4 1/3] ath9k: eliminate common->{rx,tx}_chainmask Felix Fietkau
2011-08-29  9:58 ` [PATCH v4 2/3] ath9k: merge reset related functions Felix Fietkau
2011-08-29  9:58   ` [PATCH v4 3/3] ath9k: implement .get_antenna and .set_antenna Felix Fietkau
2011-08-29 10:28   ` Rajkumar Manoharan [this message]
2011-08-29 10:31     ` [PATCH v4 2/3] ath9k: merge reset related functions Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110829102809.GA331@vmraj-lnx.users.atheros.com \
    --to=rmanohar@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=nbd@openwrt.org \
    --cc=rodrigue@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).