Incorrect regulatory domain set during boot [BCM43225]

Bug #1246488 reported by Ken Sharp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wireless-regdb (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

During boot my system incorrectly sets the regulatory domain to JP when it should be GB. Everything else is set to GB on my system so surely my regdom should be too.

$ dmesg | grep JP
[73859.812652] cfg80211: Calling CRDA for country: JP
[73859.828648] cfg80211: Regulatory domain changed to country: JP
[74756.832747] cfg80211: Calling CRDA for country: JP
[74756.843150] cfg80211: Regulatory domain changed to country: JP
[428318.241056] cfg80211: Calling CRDA for country: JP
[428318.252774] cfg80211: Regulatory domain changed to country: JP
[428330.297067] cfg80211: Calling CRDA for country: JP
[428330.309337] cfg80211: Regulatory domain changed to country: JP
[560155.396673] cfg80211: Calling CRDA for country: JP
[560155.417193] cfg80211: Regulatory domain changed to country: JP
[606494.132715] cfg80211: Calling CRDA for country: JP
[606494.144135] cfg80211: Regulatory domain changed to country: JP
[612762.789917] cfg80211: Calling CRDA for country: JP
[612762.801467] cfg80211: Regulatory domain changed to country: JP

$ iw reg get
country JP:
 (2402 - 2472 @ 40), (N/A, 20)
 (2457 - 2482 @ 20), (N/A, 20)
 (2474 - 2494 @ 20), (N/A, 20), NO-OFDM
 (4910 - 4930 @ 10), (N/A, 23)
 (4910 - 4990 @ 40), (N/A, 23)
 (4930 - 4950 @ 10), (N/A, 23)
 (5030 - 5045 @ 10), (N/A, 23)
 (5030 - 5090 @ 40), (N/A, 23)
 (5050 - 5060 @ 10), (N/A, 23)
 (5170 - 5250 @ 40), (N/A, 20)
 (5250 - 5330 @ 40), (N/A, 20), DFS
 (5490 - 5710 @ 40), (N/A, 23), DFS
$ sudo iw reg set GB
$ iw reg get
country 98:
 (2402 - 2472 @ 40), (N/A, 20)
 (2457 - 2482 @ 20), (N/A, 20)
 (2474 - 2482 @ 8), (N/A, 20), NO-OFDM
 (5170 - 5250 @ 40), (N/A, 20)
 (5250 - 5330 @ 40), (N/A, 20), DFS
 (5490 - 5710 @ 40), (N/A, 23), DFS

As you can see there is a significant difference in the settings.

There is a discussion for Arch Linux here:
https://bbs.archlinux.org/viewtopic.php?id=124574

I'm not sure if this is the correct package or not, and I'm not sure if this is affected directly by the kernel or not, so I apologise if this is incorrect.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: wireless-regdb 2011.04.28-1ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-54.82-generic 3.2.50
Uname: Linux 3.2.0-54-generic x86_64
NonfreeKernelModules: wl fglrx
ApportVersion: 2.0.1-0ubuntu17.5
Architecture: amd64
Date: Wed Oct 30 21:33:43 2013
Dependencies:

InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: wireless-regdb
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ken Sharp (kennybobs) wrote :

Windows 7 nicely deleted a bunch of partitions from my hard disk during boot for no reason, which is nice. The result being I had to reinstall fresh with 12.04.

The regulatory domain now appears to default to 00 (Worldwide). After correcting this again with iw reg set GB the output seems different to the last time I went through all of this. I'm guessing I had old config files left over.

$ dmesg | grep cfg
[ 15.611826] cfg80211: Calling CRDA to update world regulatory domain
[ 16.684414] INFO @wl_cfg80211_attach : Registered CFG80211 phy
[ 17.168198] cfg80211: World regulatory domain updated:
[ 17.168204] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 17.168207] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 17.168209] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 17.168211] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 17.168213] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 17.168215] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 85.592996] cfg80211: Calling CRDA for country: GB
[ 85.597602] cfg80211: Regulatory domain changed to country: GB
[ 85.597607] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 85.597610] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 85.597612] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 85.597614] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 85.597615] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)

$ iw reg get
country GB:
 (2402 - 2482 @ 40), (N/A, 20)
 (5170 - 5250 @ 40), (N/A, 20)
 (5250 - 5330 @ 40), (N/A, 20), DFS
 (5490 - 5710 @ 40), (N/A, 27), DFS

This varies from the comment #0.

Revision history for this message
Ken Sharp (kennybobs) wrote :

And that is reset on reboot anyway.

Revision history for this message
Nate Carlson (natecarlson) wrote :

From recent experience working on https://bugzilla.kernel.org/show_bug.cgi?id=70881, it appears that the kernels default is to:

- On module load, default to global region
- When associating to an AP, reset the local region to match the APs

It seems like unless you are going to run in AP mode, or your local region is more permissive than global, there shouldn't a need override locally?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wireless-regdb (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.