Linux wireless drivers development
 help / color / mirror / Atom feed
From: Marcel Holtmann <holtmann@linux.intel.com>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: linville@tuxdriver.com, johannes@sipsolutions.net,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2 v6] cfg80211: Add new wireless regulatory infrastructure
Date: Wed, 10 Sep 2008 20:17:30 +0200	[thread overview]
Message-ID: <1221070650.13336.20.camel@californication> (raw)
In-Reply-To: <1221027589-19203-2-git-send-email-lrodriguez@atheros.com>

Hi Luis,

> This adds the new wireless regulatory infrastructure. The
> main motiviation behind this was to centralize regulatory
> code as each driver was implementing their own regulatory solution,
> and to replace the initial centralized code we have where:
> 
> * only 3 regulatory domains are supported: US, JP and EU
> * regulatory domains can only be changed through module parameter
> * all rules were built statically in the kernel
> 
> We now have support for regulatory domains for many countries
> and regulatory domains are now queried through a userspace agent
> through udev allowing distributions to update regulatory rules
> without updating the kernel.
> 
> Each driver can regulatory_hint() a regulatory domain
> based on either their EEPROM mapped regulatory domain value to a
> respective ISO/IEC 3166-1 country code or pass an internally built
> regulatory domain. We also add support to let the user set the
> regulatory domain through userspace in case of faulty EEPROMs to
> further help compliance.

thanks for the write-up and examples. I like it a lot and gives driver
maintainers a nice understanding what to do.

While reading through it, I came to think about regulatory_hint(). So is
there a use case where would give it the alpha2 code and the domain
itself at the same time? If not, then it would make more sense to split
this into two functions. Maybe something regulatory_alpha2_hint() and
regulatory_domain_hint(). Just a thought.

Regards

Marcel



  parent reply	other threads:[~2008-09-10 18:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-10  6:19 [PATCH 0/2 v6] New regulatory infrastructure for cfg80211 and drivers Luis R. Rodriguez
2008-09-10  6:19 ` [PATCH 1/2 v6] cfg80211: Add new wireless regulatory infrastructure Luis R. Rodriguez
2008-09-10  6:19   ` [PATCH 2/2 v6] zd1211rw: make use of new regulatory_hint() Luis R. Rodriguez
2008-09-10 18:17   ` Marcel Holtmann [this message]
2008-09-10 20:18     ` [PATCH 1/2 v6] cfg80211: Add new wireless regulatory infrastructure Luis R. Rodriguez
2008-09-10 22:07       ` Marcel Holtmann
2008-09-10 22:18         ` Luis R. Rodriguez
2008-09-10 22:25           ` Marcel Holtmann
2008-09-10 22:30             ` Johannes Berg

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=1221070650.13336.20.camel@californication \
    --to=holtmann@linux.intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.com \
    /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