linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Jan Schneider <jan@horde.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Automatic/manual regulatory settings
Date: Thu, 12 Feb 2009 09:39:23 -0800	[thread overview]
Message-ID: <20090212173923.GD4196@tesla> (raw)
In-Reply-To: <20090212181959.11876f8viq636hs0@neo.wg.de>

On Thu, Feb 12, 2009 at 09:19:59AM -0800, Jan Schneider wrote:
> While looking at logs collected for my microcode crash problem I
> noticed that cfg80211 loads US regulatory settings.

That is because of the CONFIG_WIRELESS_OLD_REGULATORY=y which I keep
insisting should die already. This is still present because CRDA is
starting to be embraced by distributions.

> If I understand the documentation correctly the actual country should
> be set either by the AP or the device using cfg80211.

Correct. With OLD_REG it also means you'll get a static default "US"
regulatory domain. The only other two static options are "JP" and "EU".
This is why this is OLD_REG -- its using static definitions and the
information is present inside the kernel.

Because you _may_ still have CRDA installed we also call CRDA if your
ieee80211_regdomain module parameter is either "US" or "JP" because
there are actual valid ISO / IEC 3166 alpha2 country codes and if
CRDA is present you will get to reap the benefits of an updated
regulatory domain.

> Neither seems to
> happen

On what device? Keep in mind iwlfifi driver ignores the first regulatory
setting by the regulatory code. If users later want to enhance regulatory
further they will have to call it manually using iw:

iw reg set FR

> so is it the "correct" way to do this through the
> ieee80211_regdom module parameter?

No, that should be used only for "US", "JP" and "EU", but technically
you can also try "FR" and CRDA will be called as well if present. But
the correct way to do this from userspace is to do it through iw or
wpa_supplicant, which as the capability of setting it too. If you are
writing your own application you can use the same nl80211 command as
iw and wpa_supplicant, NL80211_CMD_REQ_SET_REG.

> And I wonder how this is supposed
> to happen "idiot-proof" in the future?

Hm?

  LuisT

  reply	other threads:[~2009-02-12 17:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 17:19 Automatic/manual regulatory settings Jan Schneider
2009-02-12 17:39 ` Luis R. Rodriguez [this message]
2009-02-12 20:51 ` Dan Williams
2009-02-12 22:43   ` Luis R. Rodriguez
2009-02-13 15:44     ` Dan Williams
2009-02-13 19:29       ` Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090212173923.GD4196@tesla \
    --to=lrodriguez@atheros.com \
    --cc=jan@horde.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).