From: Luis R. Rodriguez Date: Wed, 4 Feb 2009 14:12:30 -0800 Subject: [ath9k-devel] Probelm with iw reg set In-Reply-To: <767807.41708.qm@web95014.mail.in2.yahoo.com> References: <767807.41708.qm@web95014.mail.in2.yahoo.com> Message-ID: <20090204221230.GH5581@tesla> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, Feb 04, 2009 at 12:31:05AM -0800, Amit Sood wrote: > Hi, > > With the latest compat-wireless driver (ath9k), define "latest compat-wireless". I get: mcgrof at tesla ~/devel/compat-wireless-2.6 (git::master)$ cat compat-release master-2009-01-28-2-g0308fb9 mcgrof at tesla ~/devel/compat-wireless-2.6 (git::master)$ cat master-tag master-2009-02-03 > i'm getting this error: > > command failed: Resource temporarily unavailable (-11) > > Also how i can set the country code during the boot. You edit your /etc/rc.local but remember you just need to ensure cfg80211 is loaded first. You can add something like: iw reg set US Mind you, you won't need this for ath9k as ath9k has proper regulatory support and if a country is found CRDA will be called with it. You can still call crda manually but what I'm saying is its not necessary unless you want to further restrict the device to help compliance further. Say you have a JP device and move to the US and want to disable channel 14 calling crda for US will disable it. > In dmesg I can see country code change when one driver is loaded and changed again when another dirver is loaded. Driver can hint to the wireless core their regulatory domain. If they do they get their own regulatory domain. So you can technically have a device from JP and one from US. You can still help compliance futher of course but each device specific regulatory domain is respected. Luis