netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@suse.cz>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	"Johannes Berg" <johannes@sipsolutions.net>,
	netdev@vger.kernel.org, "Jean Tourrilhes" <jt@hpl.hp.com>
Subject: Re: [RFC] [PATCH 0/3] Add Regulatory Domain support to d80211
Date: Wed, 25 Oct 2006 10:24:43 +0200	[thread overview]
Message-ID: <20061025102443.3997dbad@griffin.suse.cz> (raw)
In-Reply-To: <43e72e890610241041l5d442753xd6cef0bca789db33@mail.gmail.com>

On Tue, 24 Oct 2006 13:41:12 -0400, Luis R. Rodriguez wrote:
> Sure -- we can have on the ieee80211_conf struct an array of all
> regulatory domains stack values that the device supports
> (REGDOMAIN_FCC or 0x10 for FCC for example) if the developer agrees
> the device has been certified to match the regulatory domain
> restrictions as the stack defines it. I believe most modern devices
> adhere to the PtMP restrictions pretty loosely and the magic is left
> to the driver when the device is being certified so ultimately I see
> devices sharing regulatory domains restrictions rather than defining
> their own though. I'd consider defining your own device-specific
> regulatory domain would be more of an exception we'd have to deal with
> but that remains to be seen yet huh.

It sounds overcomplicated to me. I'd rather like to see something like
this:
1. As part of the initialization of the hardware, the driver detects
   that the device is certified for (say) channels 2 to 10 (that's not
   a real-life example, fortunately :-)).
2. The driver reports this somewhere (softmac drivers would report this
   to the stack).
3. Based on outside conditions (userspace - or something - tells us
   about actual regdomain), the stack (or whatever) calls the driver and
   passes allowed channels etc. to it (if the driver wants that
   information). There is already previously reported driver's
   limitation taken in the account in that information.
4. If the outside conditions change (802.11d or user emigrates or
   something) that callback is called again with a new data.

I.e.:
- I see no point in building a list of regdomains suported by the
  hardware.
- It's pretty common that the device has some limitation stated in the
  EPROM and the stack/something should deal with it in a way that is easy
  to use in a driver.

Thanks,

 Jiri

-- 
Jiri Benc
SUSE Labs

  reply	other threads:[~2006-10-25  8:24 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23 22:41 [RFC] [PATCH 0/3] Add Regulatory Domain support to d80211 Luis R. Rodriguez
2006-10-23 23:32 ` Johannes Berg
2006-10-24  5:33   ` Luis R. Rodriguez
2006-10-24 12:03     ` John W. Linville
2006-10-24 17:41       ` Luis R. Rodriguez
2006-10-25  8:24         ` Jiri Benc [this message]
2006-10-25 16:18           ` Luis R. Rodriguez
2006-10-24  8:25 ` Johannes Berg
2006-10-24 17:31   ` Luis R. Rodriguez
2006-10-24 14:02 ` David Kimdon
2006-10-24 17:47   ` Luis R. Rodriguez
2006-10-24 20:03   ` Simon Barber
2006-10-24 22:03     ` Luis R. Rodriguez
2006-10-24 22:52       ` Michael Wu
2006-10-25 17:43         ` Luis R. Rodriguez
2006-10-25 22:00           ` Johannes Berg
2006-10-26 14:35             ` Dan Williams
2006-10-26 14:43               ` Johannes Berg
2006-10-26 15:04               ` Luis R. Rodriguez
2006-10-26 15:33                 ` Dan Williams
2006-10-26 21:41                   ` Simon Barber
2006-10-26 21:47                     ` Johannes Berg
2006-10-26 21:48                   ` Johannes Berg
2006-10-24 22:56       ` Simon Barber
2006-10-25  5:03         ` Dan Williams

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=20061025102443.3997dbad@griffin.suse.cz \
    --to=jbenc@suse.cz \
    --cc=johannes@sipsolutions.net \
    --cc=jt@hpl.hp.com \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@gmail.com \
    --cc=netdev@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).