From: Felix Fietkau <nbd@openwrt.org>
To: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
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 12:31:07 +0200 [thread overview]
Message-ID: <4E5B6A6B.7070801@openwrt.org> (raw)
In-Reply-To: <20110829102809.GA331@vmraj-lnx.users.atheros.com>
On 2011-08-29 12:28 PM, Rajkumar Manoharan wrote:
> 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?
Must have overlooked it, will send a v5.
prev parent reply other threads:[~2011-08-29 10:31 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 ` [PATCH v4 2/3] ath9k: merge reset related functions Rajkumar Manoharan
2011-08-29 10:31 ` Felix Fietkau [this message]
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=4E5B6A6B.7070801@openwrt.org \
--to=nbd@openwrt.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rmanohar@qca.qualcomm.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.