From: "Justin P. Mattock" <justinmattock@gmail.com>
To: Andreas Hartmann <andihartmann@01019freenet.de>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: spamm of cfg80211: Calling CRDA to update world regulatory domain
Date: Fri, 25 Nov 2011 09:00:02 -0800 [thread overview]
Message-ID: <4ECFC992.6020706@gmail.com> (raw)
In-Reply-To: <4ECFAAC2.9070005@01019freenet.de>
On 11/25/2011 06:48 AM, Andreas Hartmann wrote:
> Hi,
>
> Justin P. Mattock schrieb:
>> is there a way to get rid of this annoying spamming of the regulatory?
>>
>>
>> [ 338.519037] cfg80211: Calling CRDA to update world regulatory domain
>> [ 338.523266] cfg80211: World regulatory domain updated:
>> [ 338.523269] cfg80211: (start_freq - end_freq @ bandwidth),
>> (max_antenna_gain, max_eirp)
>> [ 338.523272] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
>> (300 mBi, 2000 mBm)
>> [ 338.523276] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz),
>> (300 mBi, 2000 mBm)
>> [ 338.523279] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
>> (300 mBi, 2000 mBm)
>> [ 338.523281] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz),
>> (300 mBi, 2000 mBm)
>> [ 338.523284] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz),
>> (300 mBi, 2000 mBm)
>
> I can see these messages with compat-wireless-2011-11-22, two. They are
> sent out every 3 or 4 seconds. compat-wireless-2011-10-31 doesn't show
> the problem.
>
>
> Andreas
>
yep! usually if I go to starbucks to do things this message shows
up(think most public areas I get this a lot).
if I connect to a home router this does not spamm the syslog that
much(still does, just not as easily).
attached is dmesg of syslog at starbucks, within 10mins I already have
like 3/4 of this..
http://fpaste.org/xzaz/
looking through the kernel I see mixed areas in of which this is
triggered..:
net/wireless/reg.c:381
static int call_crda(const char *alpha2)
{
if (!is_world_regdom((char *) alpha2))
pr_info("Calling CRDA for country: %c%c\n",
alpha2[0], alpha2[1]);
else
pr_info("Calling CRDA to update world regulatory domain\n");
/* query internal regulatory database (if it exists) */
reg_regdb_query(alpha2);
return kobject_uevent(®_pdev->dev.kobj, KOBJ_CHANGE);
}
net/mac80211/work.c:498:
static enum work_action __must_check
ieee80211_authenticate(struct ieee80211_work *wk)
{
<----- lots of code --------->
printk(KERN_DEBUG "%s: authenticate with %pM (try %d)\n",
sdata->name, wk->filter_ta, wk->probe_auth.tries);
now not sure how this mechanism works, but there are _two_ approaches
for the regulatory domain:
1) have the kernel use something like alpha2 that automatically
finds/search _query's_ for the country or something.
or
2) manually add your country to net/wireless/db.txt with the country
causing alpha1 to be used, which I think causes the kernel to not query
for CRDA.
NOTE: I only spent a little time reading up on this, and trying it out
so I might have got this wrong. all of this is on
http://linuxwireless.org/en/developers/Regulatory
Justin P. Mattock
prev parent reply other threads:[~2011-11-25 17:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 15:18 spamm of cfg80211: Calling CRDA to update world regulatory domain Justin P. Mattock
2011-11-01 18:44 ` Thomas Backlund
2011-11-25 14:48 ` Andreas Hartmann
2011-11-25 17:00 ` Justin P. Mattock [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=4ECFC992.6020706@gmail.com \
--to=justinmattock@gmail.com \
--cc=andihartmann@01019freenet.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/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).