Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Unable to set wireless regulatory domain
Date: Fri, 06 May 2011 20:16:23
Message-Id: 201105062115.09283.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Unable to set wireless regulatory domain by John Nielsen
1 On Friday 06 May 2011 18:04:31 John Nielsen wrote:
2 > Doesn't look like this went through the first time; re-sending without
3 > attachment.
4 >
5 > On May 5, 2011, at 6:52 PM, Paul Hartman wrote:
6 > > On Thu, May 5, 2011 at 12:40 PM, John Nielsen <lists@××××××××.net> wrote:
7 > >> I am trying to set up a 5GHz wireless access point on an Alix 3d2 board
8 > >> with an AR9220 (ath9k "Merlin") PCI card. I have done so successfully
9 > >> using Fedora 14 on identical hardware but I would greatly prefer to use
10 > >> Gentoo so I can use a more recent kernel and customize things
11 > >> appropriately for the platform.
12 > >
13 > > It seems like everything is pretty much the same, other than the
14 > > kernel (and presumably the ath9k driver). But I would look at the udev
15 > > rules for CRDA to be sure they match and are being applied the same on
16 > > both systems. You shouldn't ever need to "iw reg set" on a system with
17 > > CRDA, it should do it for you. So I wonder if you're setting it, and
18 > > then CRDA is immediately setting it back to 00...
19 >
20 > The udev rule for CRDA is the same on both systems, and matches what is
21 > shown on http://wireless.kernel.org/en/developers/Regulatory/CRDA. The
22 > Fedora box also has a magic rule to call /sbin/setregdomain when an 80211
23 > interface is added, which is a shell script that infers the regdomain from
24 > the currently set timezone. The punch line of the script is simply a call
25 > to "iw reg set $COUNTRY"
26 >
27 > However, I'm not sure crda is being called appropriately on the Gentoo box.
28 On the Fedora machine I see this in dmesg:
29 > >> [ 17.248674] cfg80211: Calling CRDA for country: US
30 > >> [ 18.848206] cfg80211: Regulatory domain changed to country: US
31 >
32 > and I don't ever see anything similar on the Gentoo machine, even when
33 > running "iw reg set" by hand. Further, I don't see anything in the output
34 > of "udevadm monitor --environment kernel".
35 >
36 > I just dropped the kernel from the Fedora machine on to the Gentoo box and
37 > (somewhat surprisingly) it works just fine. The reg domain gets set no
38 > problem, hostapd starts, life is good--except that now I feel like I've
39 > sinned against nature and I'd like to get my own, smaller kernel back.
40 >
41 > While it's possible the new kernel version is broken I rather suspect that
42 > I have configured it badly. I set out to configure a minimal kernel with
43 > just the features and drivers I want on this hardware and no need for
44 > modules or an initramfs. Does cfg80211 need to be a module to work
45 > properly? I wouldn't think so.
46 >
47 > I'll do some more experimenting but in the mean time here's my kernel
48 > config in case anyone has ideas on what could be wrong. Thanks!
49 >
50 > Config file here: http://pastebin.com/S68ye6Pz
51
52 I suggest that you run a diff --suppress-common-lines -y between the Fedora
53 and your own kernel to find out what's different between the two as far as
54 your driver is concerned.
55
56 The Fedora kernel may have kernel patches that the vanilla or gentoo kernels
57 don't.
58
59 --
60 Regards,
61 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Unable to set wireless regulatory domain John Nielsen <lists@××××××××.net>