2012-11-10 10:00:39

by Felix Braun

[permalink] [raw]
Subject: Unable to set regulatory domain

Hi there,

I'm having the following problem that I have so far failed to root
cause: my kernel spams the logfiles with calls to CRDA every three
seconds. This is caused by spurious (?) udev events:

# udevdam monitor --property

KERNEL[1469.840484] change /devices/platform/regulatory.0 (platform)
ACTION=change
COUNTRY=00
DEVPATH=/devices/platform/regulatory.0
MODALIAS=platform:regulatory
SEQNUM=2472
SUBSYSTEM=platform

KERNEL[1469.848058] change /devices/platform/regulatory.0 (platform)
ACTION=change
COUNTRY=97
DEVPATH=/devices/platform/regulatory.0
MODALIAS=platform:regulatory
SEQNUM=2473
SUBSYSTEM=platform

and so on and so forth every three seconds always in pairs for country
00 and then country 97.

I have a corresponding udev rule in /lib/udev/rules.d/85-regulatory
which instructs udev to call /usr/bin/crda. However, calling crda also
fails:

# COUNTRY=00 crda
Failed to set regulatory domain: -7

I have the following questions:
- what does error code -7 stand for? How can I fix it?
- how does the kernel produce the illegal country code 97?

I think part of the problem is that my wireless card seems to be
calibrated for China, whereas I am currenty located in Germany (which is
reflected by my access point)

Any pointers how to solve this would be very welcome.

Thanks in advance!
Felix