From: Larry Finger <Larry.Finger@lwfinger.net>
To: Christian Lamparter <chunkeey@web.de>
Cc: Bob Copeland <me@bobcopeland.com>,
Johannes Berg <johannes@sipsolutions.net>,
wireless <linux-wireless@vger.kernel.org>
Subject: Re: WARN_ON at minstrel_get_rate (include/net/mac80211.h:2111) with p54usb
Date: Sun, 19 Jul 2009 09:37:16 -0500 [thread overview]
Message-ID: <4A632F9C.8080207@lwfinger.net> (raw)
In-Reply-To: <200907190032.58156.chunkeey@web.de>
Christian Lamparter wrote:
> well, ieee80211_sta_monitor_work - which probes the AP every now and then -
> didn't check if we're scanning.
> The attached diff survives a non-stop scanning without throwing the WARN in
> rate_lowest_index once.
>
> However, I'm not so sure about the locking for hw_scanning and sw_scanning.
> It looks like only scan.c manipulates them under the scan mutex.
> But then, do we need locking for a single threaded workqueue? guess not.
> ---
> Larry,
>
> here's another _fix_ which might even fix the problem after all ;-)
>
> Regards,
> Chr
> ---
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index 18dad22..4833e7c 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -2210,6 +2210,9 @@ static void ieee80211_sta_monitor_work(struct work_struct *work)
> container_of(work, struct ieee80211_sub_if_data,
> u.mgd.monitor_work);
>
> + if (sdata->local->sw_scanning || sdata->local->hw_scanning)
> + return;
> +
> ieee80211_mgd_probe_ap(sdata, false);
> }
Yes - this patch gets rid of the warnings.
Thanks,
Larry
next prev parent reply other threads:[~2009-07-19 14:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A611FC0.9040507@lwfinger.net>
[not found] ` <200907181433.47985.chunkeey@web.de>
2009-07-18 15:03 ` WARN_ON at minstrel_get_rate (include/net/mac80211.h:2111) with p54usb Larry Finger
2009-07-18 16:08 ` WARN_ON at minstrel_get_rate (include/net/mac80211.h:2111) Christian Lamparter
2009-07-18 17:48 ` Christian Lamparter
2009-07-20 16:17 ` Luis R. Rodriguez
2009-07-18 21:19 ` WARN_ON at minstrel_get_rate (include/net/mac80211.h:2111) with p54usb Bob Copeland
2009-07-18 22:32 ` Christian Lamparter
2009-07-19 14:37 ` Larry Finger [this message]
2009-07-19 20:09 ` [PATCH] mac80211: do not monitor the connection while scanning Christian Lamparter
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=4A632F9C.8080207@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=chunkeey@web.de \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=me@bobcopeland.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).