From: Christian Lamparter <chunkeey@web.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH 6/6] ar9170: stop data queues on channel switch
Date: Tue, 12 May 2009 17:15:39 +0200 [thread overview]
Message-ID: <200905121715.39702.chunkeey@web.de> (raw)
In-Reply-To: <1242110389.3873.53.camel@johannes.local>
On Tuesday 12 May 2009 08:39:49 Johannes Berg wrote:
> On Tue, 2009-05-12 at 01:09 +0200, Christian Lamparter wrote:
>
> > + if ((ar->tx_stats[i].len < ar->tx_stats[i].limit) &&
> > + (ieee80211_queue_stopped(ar->hw, i)))
> > + ieee80211_wake_queue(ar->hw, i);
>
> There's no reason to test _stopped first, and doing so is racy.
uhh, agreed _stopped is not necessary, but where's the race condition?
>
> > if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
> > + err = ar9170_stop_and_flush_queues(ar);
> > + if (err)
> > + goto out;
>
> Why don't you do that in the pre-scan method?
dunno, will pre_scan cb code end up in 2.6.30 as well?
Regards,
Chr
next prev parent reply other threads:[~2009-05-12 15:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 23:09 [PATCH 6/6] ar9170: stop data queues on channel switch Christian Lamparter
2009-05-12 6:39 ` Johannes Berg
2009-05-12 15:15 ` Christian Lamparter [this message]
2009-05-12 16:45 ` Johannes Berg
2009-05-12 15:29 ` Bob Copeland
2009-05-12 15:30 ` Johannes Berg
2009-05-12 15:56 ` Bob Copeland
2009-05-12 16:56 ` Christian Lamparter
2009-05-12 17:51 ` Johannes Berg
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=200905121715.39702.chunkeey@web.de \
--to=chunkeey@web.de \
--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 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.