linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* WARNING at net/wireless/reg.c when wireless network is disconnected
@ 2010-08-04 11:36 Thomas Bächler
  2010-08-04 13:49 ` John W. Linville
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Bächler @ 2010-08-04 11:36 UTC (permalink / raw)
  To: linux-wireless; +Cc: linux-kernel, Johannes Berg, Luis R. Rodriguez

[-- Attachment #1: Type: text/plain, Size: 2288 bytes --]

Hello,

this warning has been around ever since I switched to 2.6.34, has
accompanied me through the 2.6.35-rc* phase and is still there with
2.6.35. I didn't bother to report it so far, as there seems to be no harm.

Whenever I disconnect/get disconnected from the wireless, I receive the
below warning:

------------[ cut here ]------------
WARNING: at net/wireless/reg.c:272
regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]()
Hardware name: TECRA A11
Unexpected user alpha2: de
Modules linked in: hidp rfcomm sco bnep l2cap bridge stp llc microcode
cpufreq_ondemand tun btusb bluetooth uvcvideo videodev tpm_infineon
v4l2_compat_ioctl32 arc4 snd_seq_dummy snd_seq_oss ecb
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss
snd_hda_codec_intelhdmi snd_mixer_oss snd_hda_codec_realtek
snd_hda_intel snd_hda_codec ath9k snd_hwdep kvm_intel ath9k_common kvm
snd_pcm ath9k_hw snd_timer snd tpm_tis ehci_hcd ath sdhci_pci
acpi_cpufreq sdhci soundcore mac80211 freq_table mmc_core tpm cfg80211
usbcore snd_page_alloc tpm_bios e1000e mperf led_class psmouse sr_mod
iTCO_wdt sg evdev toshiba_acpi toshiba_bluetooth cdrom battery ac
thermal processor rfkill nls_base rtc_cmos rtc_core rtc_lib fpu
aesni_intel cryptd aes_x86_64 aes_generic xts gf128mul dm_crypt dm_mod
sd_mod ahci libahci libata scsi_mod ext4 mbcache jbd2 crc16 i915
drm_kms_helper drm i2c_algo_bit cfbcopyarea video backlight output
cfbimgblt cfbfillrect intel_agp agpgart
Pid: 15, comm: events/0 Not tainted 2.6.35 #28
Call Trace:
 [<ffffffff8103e98b>] ? warn_slowpath_common+0x7b/0xc0
 [<ffffffffa0337760>] ? disconnect_work+0x0/0x30 [cfg80211]
 [<ffffffff8103ea85>] ? warn_slowpath_fmt+0x45/0x50
 [<ffffffffa0337760>] ? disconnect_work+0x0/0x30 [cfg80211]
 [<ffffffffa0325163>] ? regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]
 [<ffffffffa0337760>] ? disconnect_work+0x0/0x30 [cfg80211]
 [<ffffffff81052df8>] ? worker_thread+0x158/0x230
 [<ffffffff810574d0>] ? autoremove_wake_function+0x0/0x30
 [<ffffffff81052ca0>] ? worker_thread+0x0/0x230
 [<ffffffff8105703e>] ? kthread+0x8e/0xa0
 [<ffffffff810032d4>] ? kernel_thread_helper+0x4/0x10
 [<ffffffff81056fb0>] ? kthread+0x0/0xa0
 [<ffffffff810032d0>] ? kernel_thread_helper+0x0/0x10
---[ end trace cbb09501d5faaa20 ]---


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WARNING at net/wireless/reg.c when wireless network is disconnected
  2010-08-04 11:36 WARNING at net/wireless/reg.c when wireless network is disconnected Thomas Bächler
@ 2010-08-04 13:49 ` John W. Linville
  2010-08-04 14:28   ` Thomas Bächler
  0 siblings, 1 reply; 5+ messages in thread
From: John W. Linville @ 2010-08-04 13:49 UTC (permalink / raw)
  To: Thomas Bächler
  Cc: linux-wireless, linux-kernel, Johannes Berg, Luis R. Rodriguez

On Wed, Aug 04, 2010 at 01:36:23PM +0200, Thomas Bächler wrote:
> Hello,
> 
> this warning has been around ever since I switched to 2.6.34, has
> accompanied me through the 2.6.35-rc* phase and is still there with
> 2.6.35. I didn't bother to report it so far, as there seems to be no harm.
> 
> Whenever I disconnect/get disconnected from the wireless, I receive the
> below warning:
> 
> ------------[ cut here ]------------
> WARNING: at net/wireless/reg.c:272
> regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]()
> Hardware name: TECRA A11
> Unexpected user alpha2: de

Perhaps you need to set the regdomain as "DE" rather than "de"?

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WARNING at net/wireless/reg.c when wireless network is disconnected
  2010-08-04 13:49 ` John W. Linville
@ 2010-08-04 14:28   ` Thomas Bächler
  2010-08-04 14:52     ` John W. Linville
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Bächler @ 2010-08-04 14:28 UTC (permalink / raw)
  To: John W. Linville
  Cc: linux-wireless, linux-kernel, Johannes Berg, Luis R. Rodriguez

[-- Attachment #1: Type: text/plain, Size: 1873 bytes --]

Am 04.08.2010 15:49, schrieb John W. Linville:
> On Wed, Aug 04, 2010 at 01:36:23PM +0200, Thomas Bächler wrote:
>> Hello,
>>
>> this warning has been around ever since I switched to 2.6.34, has
>> accompanied me through the 2.6.35-rc* phase and is still there with
>> 2.6.35. I didn't bother to report it so far, as there seems to be no harm.
>>
>> Whenever I disconnect/get disconnected from the wireless, I receive the
>> below warning:
>>
>> ------------[ cut here ]------------
>> WARNING: at net/wireless/reg.c:272
>> regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]()
>> Hardware name: TECRA A11
>> Unexpected user alpha2: de
> 
> Perhaps you need to set the regdomain as "DE" rather than "de"?
> 
> John

You are actually right. I did set it to "DE" with iw, but wpa_supplicant
had a setting country="de". I just fixed that and will soon see if the
problem disappears.

Still, the warning shouldn't look like a bad kernel bug, but rather an
advisory to the user to set something sane. What confuses me even more
is that this has been set to DE afterwards:

$ dmesg | grep cfg80211:\ Calling\ CRDA
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: de
cfg80211: Calling CRDA for country: DE
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: DE
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: DE
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: DE
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: DE
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: DE

The AP has been playing with the regdom as well, I lost track of what
has been set where in this mess.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WARNING at net/wireless/reg.c when wireless network is disconnected
  2010-08-04 14:28   ` Thomas Bächler
@ 2010-08-04 14:52     ` John W. Linville
  2010-08-05 18:22       ` Luis R. Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: John W. Linville @ 2010-08-04 14:52 UTC (permalink / raw)
  To: Thomas Bächler
  Cc: linux-wireless, linux-kernel, Johannes Berg, Luis R. Rodriguez

On Wed, Aug 04, 2010 at 04:28:28PM +0200, Thomas Bächler wrote:
> Am 04.08.2010 15:49, schrieb John W. Linville:
> > On Wed, Aug 04, 2010 at 01:36:23PM +0200, Thomas Bächler wrote:
> >> Hello,
> >>
> >> this warning has been around ever since I switched to 2.6.34, has
> >> accompanied me through the 2.6.35-rc* phase and is still there with
> >> 2.6.35. I didn't bother to report it so far, as there seems to be no harm.
> >>
> >> Whenever I disconnect/get disconnected from the wireless, I receive the
> >> below warning:
> >>
> >> ------------[ cut here ]------------
> >> WARNING: at net/wireless/reg.c:272
> >> regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]()
> >> Hardware name: TECRA A11
> >> Unexpected user alpha2: de
> > 
> > Perhaps you need to set the regdomain as "DE" rather than "de"?
> > 
> > John
> 
> You are actually right. I did set it to "DE" with iw, but wpa_supplicant
> had a setting country="de". I just fixed that and will soon see if the
> problem disappears.
> 
> Still, the warning shouldn't look like a bad kernel bug, but rather an
> advisory to the user to set something sane. What confuses me even more
> is that this has been set to DE afterwards:

Perhaps we should just upcase the alpha2 value?  I'm not sure why we don't.

> $ dmesg | grep cfg80211:\ Calling\ CRDA
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: de
> cfg80211: Calling CRDA for country: DE
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: DE
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: DE
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: DE
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: DE
> cfg80211: Calling CRDA to update world regulatory domain
> cfg80211: Calling CRDA for country: DE
> 
> The AP has been playing with the regdom as well, I lost track of what
> has been set where in this mess.

The AP is probably sending a country IE that indicates "DE".

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: WARNING at net/wireless/reg.c when wireless network is disconnected
  2010-08-04 14:52     ` John W. Linville
@ 2010-08-05 18:22       ` Luis R. Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2010-08-05 18:22 UTC (permalink / raw)
  To: John W. Linville
  Cc: Thomas Bächler, linux-wireless, linux-kernel, Johannes Berg

On Wed, Aug 4, 2010 at 7:52 AM, John W. Linville <linville@tuxdriver.com> wrote:
> On Wed, Aug 04, 2010 at 04:28:28PM +0200, Thomas Bächler wrote:
>> Am 04.08.2010 15:49, schrieb John W. Linville:
>> > On Wed, Aug 04, 2010 at 01:36:23PM +0200, Thomas Bächler wrote:
>> >> Hello,
>> >>
>> >> this warning has been around ever since I switched to 2.6.34, has
>> >> accompanied me through the 2.6.35-rc* phase and is still there with
>> >> 2.6.35. I didn't bother to report it so far, as there seems to be no harm.
>> >>
>> >> Whenever I disconnect/get disconnected from the wireless, I receive the
>> >> below warning:
>> >>
>> >> ------------[ cut here ]------------
>> >> WARNING: at net/wireless/reg.c:272
>> >> regulatory_hint_disconnect+0x1b3/0x230 [cfg80211]()
>> >> Hardware name: TECRA A11
>> >> Unexpected user alpha2: de
>> >
>> > Perhaps you need to set the regdomain as "DE" rather than "de"?
>> >
>> > John
>>
>> You are actually right. I did set it to "DE" with iw, but wpa_supplicant
>> had a setting country="de". I just fixed that and will soon see if the
>> problem disappears.
>>
>> Still, the warning shouldn't look like a bad kernel bug, but rather an
>> advisory to the user to set something sane. What confuses me even more
>> is that this has been set to DE afterwards:
>
> Perhaps we should just upcase the alpha2 value?  I'm not sure why we don't.

It just needs to be implemented.

  Luis

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-05 18:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04 11:36 WARNING at net/wireless/reg.c when wireless network is disconnected Thomas Bächler
2010-08-04 13:49 ` John W. Linville
2010-08-04 14:28   ` Thomas Bächler
2010-08-04 14:52     ` John W. Linville
2010-08-05 18:22       ` Luis R. Rodriguez

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).