Return-path: Received: from mail.atheros.com ([12.36.123.2]:61995 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbYLWMOm (ORCPT ); Tue, 23 Dec 2008 07:14:42 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Tue, 23 Dec 2008 04:14:42 -0800 Date: Tue, 23 Dec 2008 04:14:34 -0800 From: "Luis R. Rodriguez" To: Davide Pesavento CC: Pavel Roskin , "Luis R. Rodriguez" , "linux-wireless@vger.kernel.org" , John W Linville Subject: Re: [PATCH] crda: use strerror() to report error code verbosely Message-ID: <20081223121434.GA27316@tesla> (sfid-20081223_131449_052187_54E64DB2) References: <20081223050006.3710.98311.stgit@ct.roinet.com> <43e72e890812222127k60ade0f1u21263800f9374f52@mail.gmail.com> <20081223004945.3437vudqtc0ogcsk-cebfxv@webmail.spamcop.net> <43e72e890812222157s5d410d39ye9ac0840eef5331a@mail.gmail.com> <20081223012037.otw1xe4tc084coc8-cebfxv@webmail.spamcop.net> <2da21fe50812230041q1d844215o589c79c351966e50@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <2da21fe50812230041q1d844215o589c79c351966e50@mail.gmail.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Dec 23, 2008 at 12:41:21AM -0800, Davide Pesavento wrote: > On Tue, Dec 23, 2008 at 07:20, Pavel Roskin wrote: > > Quoting "Luis R. Rodriguez" : > > > >> You don't need to build this unless you want to define your own rules. > > > > I see. > > > >> And if you do and want to use the signature stuff you need to copy the > >> RSA public key into pubkeys/ directory of CRDA. Did you try that? > > > > No, I just wanted to install the most current regulatory database. Perhaps > > the error message should be more clear. > > > > With both CONFIG_CFG80211_REG_DEBUG, CONFIG_WIRELESS_OLD_REGULATORY enabled > > and modular mac80211 and cfg80211, regdomain is set correctly from udev: > > > > [ 7.642548] cfg80211: Using static regulatory domain info > > [ 7.642551] cfg80211: Regulatory domain: US > > [ 8.697261] cfg80211: Regulatory domain changed to country: US > > > > However, changing it to anything doesn't work: > > > > [root@ct proski]# COUNTRY=00 crda > > Failed to set regulatory domain: -22 > > [root@ct proski]# COUNTRY=US crda > > Failed to set regulatory domain: -22 > > [root@ct proski]# COUNTRY=DE crda > > Failed to set regulatory domain: -22 > > [root@ct proski]# > > > > Maybe it can only be set once? But then -EBUSY would be more reasonable. > > > > AFAIK, you have to use `iw reg set ` to manually change it. Affirmative, or you can use wpa_supplicant from the git tree and add to your conf: COUNTRY=US Luis