From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: linville@tuxdriver.com, johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org,
"Luis R. Rodriguez" <lrodriguez@atheros.com>
Subject: Re: [PATCH] ath9k: cancel xmit poll work at stop() callback
Date: Sun, 26 Jul 2009 02:48:13 -0700 [thread overview]
Message-ID: <43e72e890907260248l68e03097m184a9ca750c04b40@mail.gmail.com> (raw)
In-Reply-To: <1248482853-17032-4-git-send-email-lrodriguez@atheros.com>
On Fri, Jul 24, 2009 at 5:47 PM, Luis R.
Rodriguez<lrodriguez@atheros.com> wrote:
> We forgot to cancel this work at the stop() callback.
>
<-- snip -->
> diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
> index 3eb3032..fff89cc 100644
> --- a/drivers/net/wireless/ath/ath9k/main.c
> +++ b/drivers/net/wireless/ath/ath9k/main.c
> @@ -2100,6 +2100,8 @@ static void ath9k_stop(struct ieee80211_hw *hw)
>
> mutex_lock(&sc->mutex);
>
> + cancel_delayed_work_sync(&sc->tx_complete_work);
> +
> if (ath9k_wiphy_started(sc)) {
> mutex_unlock(&sc->mutex);
> return; /* another wiphy still in use */
This is in the right place but I see we call it upon detach. That is a
wrong place for this stuff... as well as the other cancels. Due to
virtual stuff this is more involved. We'll have to clean this better.
Luis
next prev parent reply other threads:[~2009-07-26 9:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-25 0:47 [PATCH] mac80211/drivers: add new mac80211 workqueue API Luis R. Rodriguez
2009-07-25 0:47 ` [PATCH] mac80211: redefine usage of the mac80211 workqueue Luis R. Rodriguez
2009-07-25 8:35 ` Johannes Berg
2009-07-26 8:06 ` Luis R. Rodriguez
2009-07-25 0:47 ` [PATCH] mac80211: do not queue work after suspend in the dynamic ps timer Luis R. Rodriguez
2009-07-27 15:37 ` Luis R. Rodriguez
2009-07-25 0:47 ` [PATCH] ath9k: cancel xmit poll work at stop() callback Luis R. Rodriguez
2009-07-26 9:48 ` Luis R. Rodriguez [this message]
2009-07-25 0:50 ` [PATCH] mac80211/drivers: add new mac80211 workqueue API Luis R. Rodriguez
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=43e72e890907260248l68e03097m184a9ca750c04b40@mail.gmail.com \
--to=lrodriguez@atheros.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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