From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QI6ll-0004Dw-7V for garchives@archives.gentoo.org; Thu, 05 May 2011 22:11:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D54D81C0A5; Thu, 5 May 2011 22:07:43 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 6E9B01C09D for ; Thu, 5 May 2011 22:07:43 +0000 (UTC) Received: by wyi11 with SMTP id 11so2656840wyi.40 for ; Thu, 05 May 2011 15:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:reply-to:to:subject:date:user-agent :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=utmgMcDtnO0keqOhR7H4pROlxPeV0AuAvvIshmD3p24=; b=Oi2y7hhjmzaX/55yz7qpyNEtUgn56BoWY4dBG6Rvn7mwZ9WKNBHv4+aFZqI9LymsjD DPl2VFiI8mxgxPzsPKjiQvHPDwXed/QAUtwBejH0flt8k2Tg8RjBCePGQCLBHdU16SiJ e5i6kEKf9CbZZ64SR+Xc2gvKUHsm2muxPXOiw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=KTsXNkRZ6IZQ8YtvGRosglnZnoIT6j5Z4RpFPTEBg5hFSvYXSk603Q+flxrFD9UXr3 K91W1c3otocjQgcQ3Hmm5qYF3OfNMpAT8agrg0xnh+tCjV5LZA0kX4S8JYvnbERXObiW 2ZB8f+fCOc9YXR2HOyR6vSAkqs1CqoZ0GWyLE= Received: by 10.216.237.96 with SMTP id x74mr1685286weq.53.1304633262211; Thu, 05 May 2011 15:07:42 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa [217.169.3.230]) by mx.google.com with ESMTPS id h11sm1624445wbc.9.2011.05.05.15.07.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 May 2011 15:07:41 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Unable to set wireless regulatory domain Date: Thu, 5 May 2011 23:08:12 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-gentoo-r4; KDE/4.4.5; x86_64; ; ) References: <921BCC7A-7941-42B1-86E9-EADFBCB8B3BD@jnielsen.net> In-Reply-To: <921BCC7A-7941-42B1-86E9-EADFBCB8B3BD@jnielsen.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1908171.T8QN6CsEfs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201105052308.13416.michaelkintzios@gmail.com> X-Archives-Salt: X-Archives-Hash: 8c5ca42b7783ce034f612507177e4a57 --nextPart1908171.T8QN6CsEfs Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Thursday 05 May 2011 18:40:30 John Nielsen wrote: > I am trying to set up a 5GHz wireless access point on an Alix 3d2 board > with an AR9220 (ath9k "Merlin") PCI card. I have done so successfully > using Fedora 14 on identical hardware but I would greatly prefer to use > Gentoo so I can use a more recent kernel and customize things > appropriately for the platform. >=20 > I have an up-to-date ~x86 Gentoo build working and I am able to run hosta= pd > as a 2.4GHz access point, but trying to run it on a 5 GHz channel in "a" > mode fails complaining it is unable to set the channel. After some poking > around I realized that this was due to the regulatory domain not being set > correctly--the default ("world"?) regdomain doesn't allow IBSS on any 5GHz > channels. >=20 > I made sure I had crda emerged and tried several different kernel settings > but none of them resulted in any different behavior. I even tried > statically compiling the regdb ("CONFIG_CFG80211_INTERNAL_REGDB=3Dy") but > didn't see any difference. I can run "iw reg set US" all day long but > whenever I run "iw reg get" it always comes back with "country 00" on the > Gentoo system. >=20 > Since I'm a relative newbie to both Gentoo and custom Linux kernel buildi= ng > I wanted to make sure I wasn't just missing a setting or kernel config > flag somewhere before I started looking for things like driver > regressions. Can anyone suggest different things to try to fix the problem > or at least pinpoint it better? >=20 > Below is some info from both the Gentoo system (regdomain not working) and > the Fedora system (regdomain working). Let me know what additional > information would be helpful. Thanks! >=20 > JN >=20 >=20 > ### Gentoo ~x86 ### > # uname -a > Linux alix2 2.6.38-gentoo-r3 #7 Mon May 2 12:51:18 EDT 2011 i586 Geode(TM) > Integrated Processor by AMD PCS AuthenticAMD GNU/Linux >=20 > # relevant dmesg output > [ 0.107215] cfg80211: Calling CRDA to update world regulatory domain > [ 2.228041] ath: EEPROM regdomain: 0x0 > [ 2.228056] ath: EEPROM indicates default country code should be used > [ 2.228072] ath: doing EEPROM country->regdmn map search > [ 2.228093] ath: country maps to regdmn code: 0x3a > [ 2.228108] ath: Country alpha2 being used: US > [ 2.228122] ath: Regpair used: 0x3a >=20 > # iw reg set US > # iw reg get > country 00: > (2402 - 2472 @ 40), (6, 20) > (2457 - 2482 @ 20), (6, 20), PASSIVE-SCAN, NO-IBSS > (2474 - 2494 @ 20), (6, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS > (5170 - 5250 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS > (5735 - 5835 @ 40), (6, 20), PASSIVE-SCAN, NO-IBSS >=20 > # iw list > ... > Frequencies: > * 5180 MHz [36] (18.0 dBm) (passive scanning, no IBSS) > * 5200 MHz [40] (18.0 dBm) (passive scanning, no IBSS) > * 5220 MHz [44] (18.0 dBm) (passive scanning, no IBSS) > * 5240 MHz [48] (18.0 dBm) (passive scanning, no IBSS) > ... >=20 > # relevant packages > net-wireless/crda-1.1.1 > net-wireless/iw-0.9.22 > net-wireless/wireless-regdb-20101124 > net-wireless/wireless-tools-30_pre9 > sys-kernel/gentoo-sources-2.6.38-r3 >=20 >=20 > ### Fedora 14 ### > $ uname -a > Linux alix.jnielsen.net 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 > UTC 2010 i586 i586 i386 GNU/Linux >=20 > # relevant dmesg output > [ 13.191924] cfg80211: Calling CRDA to update world regulatory domain > [ 13.433288] cfg80211: World regulatory domain updated: > [ 17.134923] ath: EEPROM regdomain: 0x0 > [ 17.134943] ath: EEPROM indicates default country code should be used > [ 17.134961] ath: doing EEPROM country->regdmn map search > [ 17.134984] ath: country maps to regdmn code: 0x3a > [ 17.135001] ath: Country alpha2 being used: US > [ 17.135018] ath: Regpair used: 0x3a > [ 17.248674] cfg80211: Calling CRDA for country: US > [ 18.848206] cfg80211: Regulatory domain changed to country: US >=20 > $ iw reg get > country US: > (2402 - 2472 @ 40), (3, 27) > (5170 - 5250 @ 40), (3, 17) > (5250 - 5330 @ 40), (3, 20), DFS > (5490 - 5600 @ 40), (3, 20), DFS > (5650 - 5710 @ 40), (3, 20), DFS > (5735 - 5835 @ 40), (3, 30) >=20 > $ iw list > ... > Frequencies: > * 5180 MHz [36] (17.0 dBm) > * 5200 MHz [40] (17.0 dBm) > * 5220 MHz [44] (17.0 dBm) > * 5240 MHz [48] (17.0 dBm) > ... >=20 > # relevant packages > iw-0.9.22-1.fc14.1.i686 > crda-1.1.1_2010.11.22-1.fc14.i686 > wireless-tools-29-5.1.fc12.i686 > kernel-2.6.35.6-45.fc14.i686 Last time I had a problem like this (some time ago now) I discovered that i= t=20 was because of the driver - the version or the firmware was not developed=20 enough. A few weeks/months later the version was updated and the=20 functionality was suddenly there. BTW, did you try wpa_supplicant in case it makes a difference? =2D-=20 Regards, Mick --nextPart1908171.T8QN6CsEfs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk3DH80ACgkQVTDTR3kpaLZ1sACcCatV6aTUpXQ5pHVrsUwhPGQ7 wHEAniqrBA/jbCMOEU4329unmlS8Y+E5 =2Djs -----END PGP SIGNATURE----- --nextPart1908171.T8QN6CsEfs--