From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 00/12] cfg80211/mac80211: fixes/enhancements for reg_notifier()
Date: Tue, 13 Jan 2009 15:17:41 -0800 [thread overview]
Message-ID: <20090113231741.GU4416@tesla> (raw)
In-Reply-To: <1231887621.3728.12.camel@johannes>
On Tue, Jan 13, 2009 at 03:00:21PM -0800, Johannes Berg wrote:
> On Tue, 2009-01-13 at 11:57 -0800, Luis R. Rodriguez wrote:
> > This series contains a few fixes for cfg80211 such as another
> > fix for parsing country IEs, but mostly contains work to help
> > drivers build a more useful reg_notifier(). While at it we remove
> > the CONFIG_WIRELESS_OLD_REGULATORY as we are now on road to 2.6.30.
> >
> > Luis R. Rodriguez (12):
> > cfg80211: print correct intersected regulatory domain
> > cfg80211: add helper to indicate when to follow the driver regd
> > cfg80211: add option for wiphys to disregard country IEs
> > cfg80211: split wiphy_update_regulatory() in two
> > cfg80211: add regulatory_set_custom_rd()
> > cfg80211: add regdom_intersect_wiphy_regd()
> > cfg80211: allow driver read access to cfg80211_regdomain
> > cfg80211: export freq_reg_info()
> > cfg80211: Fix sanity check on 5 GHz when processing country IE
> > cfg80211: process user requests only after previous user/driver/core
> > requests
> > mac80211: allow mac80211 drivers to get to driver priv from wiphy
> > cfg80211: Remove CONFIG_WIRELESS_OLD_REGULATORY
>
> I think this series is pretty much overkill. While I'd like you to
> finish work on this (you know why), I think you should go back and
> describe what you're trying to achieve.
>
> It seems to me that you're trying to achieve two things:
> 1) have ath9k have its own world regdomain
> 2) restrict ath9k to the channels it has calibration data for
>
> Am I totally off base?
Well its more of trusting CRDA for country regulatory data on ath9k, and of
allowing ath9k to use its own custom regulatory domains. The calibration data
just follows the regulatory domains and varies through time as updates go into
the wireless-regdb.
> For point (1), I'm not sure how you're doing that right now, but
It is done via add regulatory_set_custom_rd() which copies the static
regdomain into wiphy->regd (handled then by cfg80211).
> (2) you
> should not do via the regulatory code and the notifier but rather by not
> registering those channels to start with
I did a lot of this work because you had opposed to allow drivers dynamically register
their channels. The size of the code also increases considerably by using static set of
channels for each custom regulatory domain, its possible though.
>, or setting the disabled flag
> before registration if that's easier.
You'll still need some sort of table. Either way -- all these are options of how to
accomplish the same task. I did this as part of cfg80211 as I figured it could be
used by other drivers.
Luis
next prev parent reply other threads:[~2009-01-13 23:18 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 19:57 [PATCH 00/12] cfg80211/mac80211: fixes/enhancements for reg_notifier() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 01/12] cfg80211: print correct intersected regulatory domain Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 02/12] cfg80211: add helper to indicate when to follow the driver regd Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 03/12] cfg80211: add option for wiphys to disregard country IEs Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 04/12] cfg80211: split wiphy_update_regulatory() in two Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 05/12] cfg80211: add regulatory_set_custom_rd() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 06/12] cfg80211: add regdom_intersect_wiphy_regd() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 07/12] cfg80211: allow driver read access to cfg80211_regdomain Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 08/12] cfg80211: export freq_reg_info() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 09/12] cfg80211: Fix sanity check on 5 GHz when processing country IE Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 10/12] cfg80211: process user requests only after previous user/driver/core requests Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 11/12] mac80211: allow mac80211 drivers to get to driver priv from wiphy Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 12/12] cfg80211: Remove CONFIG_WIRELESS_OLD_REGULATORY Luis R. Rodriguez
2009-01-13 22:50 ` Johannes Berg
2009-01-13 23:00 ` Luis R. Rodriguez
2009-01-13 23:02 ` Johannes Berg
2009-01-13 22:50 ` [PATCH 11/12] mac80211: allow mac80211 drivers to get to driver priv from wiphy Johannes Berg
2009-01-13 22:46 ` [PATCH 07/12] cfg80211: allow driver read access to cfg80211_regdomain Johannes Berg
2009-01-13 22:51 ` Luis R. Rodriguez
2009-01-13 22:53 ` Johannes Berg
2009-01-13 23:02 ` Luis R. Rodriguez
2009-01-13 23:00 ` [PATCH 00/12] cfg80211/mac80211: fixes/enhancements for reg_notifier() Johannes Berg
2009-01-13 23:17 ` Luis R. Rodriguez [this message]
2009-01-13 23:23 ` Johannes Berg
2009-01-13 23:59 ` 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=20090113231741.GU4416@tesla \
--to=lrodriguez@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.