From: Erich Titl <erich.titl@think.ch>
To: linux-wireless@vger.kernel.org
Subject: regulatory domain settings overwritten
Date: Tue, 27 Nov 2012 08:50:38 +0100 [thread overview]
Message-ID: <50B470CE.8070402@think.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 2836 bytes --]
Hello
I am trying to set up wireless support on an embedded X86 based device
(PCengines WRAP) using an atheros based CM-9 card manufactured by
Wistron Neweb.
I am using cfg80211 with the internal regulatory domain database. I am
observing the following with dmesg
[ 133.324451] cfg80211: Calling CRDA to update world regulatory domain
[ 133.344421] cfg80211: World regulatory domain updated:
[ 133.346021] (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 133.347622] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi,
2000 mBm)
[ 133.348902] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi,
2000 mBm)
[ 133.349842] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi,
2000 mBm)
[ 133.350455] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi,
2000 mBm)
[ 133.351736] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi,
2000 mBm)
[ 133.353431] cfg80211: Calling CRDA for country: CH
[ 133.443881] cfg80211: Regulatory domain changed to country: CH
[ 133.444568] (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 133.445486] (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 133.446397] (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 133.447630] (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 133.448863] (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
[ 141.971982] ath5k 0000:00:0d.0: registered as 'phy0'
[ 142.453824] ath: EEPROM regdomain: 0x0
[ 142.453881] ath: EEPROM indicates default country code should be used
[ 142.453940] ath: doing EEPROM country->regdmn map search
[ 142.454009] ath: country maps to regdmn code: 0x3a
[ 142.454062] ath: Country alpha2 being used: US
[ 142.454109] ath: Regpair used: 0x3a
[ 146.738786] phy0: Selected rate control algorithm 'minstrel'
[ 146.838666] ath5k phy0: Atheros AR5213A chip found (MAC: 0x59, PHY: 0x43)
[ 146.839284] ath5k phy0: RF5112B multiband radio found (0x36)
[ 146.842202] cfg80211: Calling CRDA for country: US
[ 146.936338] cfg80211: Current regulatory domain intersected:
[ 146.937470] (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[ 146.938415] (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 146.939290] (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 1700 mBm)
[ 146.940525] (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 146.941758] (5490000 KHz - 5600000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 146.942702] (5650000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Although I specify a country code CH at module loading, it appears that
the athk5 driver is calling cfg80211 with a default country code. Why is
US the default country code and why is it called at all.
Thanks
Erich Titl
[-- Attachment #2: S/MIME Kryptografische Unterschrift --]
[-- Type: application/pkcs7-signature, Size: 1877 bytes --]
next reply other threads:[~2012-11-27 7:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 7:50 Erich Titl [this message]
2012-11-27 9:55 ` regulatory domain settings overwritten Julian Calaby
2012-11-27 10:27 ` Christian Lamparter
2012-11-27 10:30 ` Julian Calaby
2012-11-27 12:53 ` Erich Titl
2012-11-27 22:55 ` Julian Calaby
2012-11-28 7:11 ` Erich Titl
2012-11-28 8:18 ` Julian Calaby
2012-11-28 14:43 ` Erich Titl
2012-11-28 22:01 ` Julian Calaby
2012-11-28 22:11 ` Erich Titl
2012-11-28 14:31 ` Bob Copeland
2012-11-28 14:47 ` Erich Titl
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=50B470CE.8070402@think.ch \
--to=erich.titl@think.ch \
--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).