linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <holtmann@linux.intel.com>
To: Zhu Yi <yi.zhu@intel.com>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Luis Rodriguez <Luis.Rodriguez@atheros.com>,
	Tomas Winkler <tomasw@gmail.com>,
	"John W. Linville" <linville@tuxdriver.com>,
	"Kolekar, Abhijeet" <abhijeet.kolekar@intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: New Regulatory Domain Api.
Date: Mon, 20 Oct 2008 18:43:19 +0200	[thread overview]
Message-ID: <1224520999.9386.72.camel@californication> (raw)
In-Reply-To: <1224487340.24677.192.camel@debian.sh.intel.com>

Hi Yi,

> > > Ack on both points, which is why I said "If we're going to [...]". I
> > > don't think I've seen a convincing use case for this other than test
> > > environments, in which you can very well just use crda.
> > 
> > Ah, ok :)
> 
> OK, my point is here:
> http://marc.info/?l=linux-wireless&m=122403515521098&w=2
> 
> Maybe Marcel has more to say when he wakes up...

I do wanna keep it as simple as possible, but on the other hand we
should do a pretty decent job with picking a regulatory domain when no
userspace is present (old or CRDA missing).

So my current thinking is that the regulatory hint for a card is limited
to the frequencies the card actually registers with mac80211. If the
internal card is 2.4 GHz, then we limit the hint to this. So the 5 GHz
band is still a virgin. If a 5 GHz card comes along and it is the first
in its band, then we take its regulatory hint for that band, but for the
2.4 GHz band it has to follow the first cards hint.

As I mentioned before, first card wins is a perfect solution from my
point of view, but we should not punish a second card in a different
band if the first card is not touching this band at all. And I can see
these user scenarios happening and in some cases they might be done on
purpose to serve every band with a different piece of hardware.

And for the cases where new bands might be used in the future. In that
case we do have to do this right since userspace might be outdated. Lets
face it, we should always support a new kernel with an old userspace.
That is how the Linux kernel is suppose to work. That is probably the
only reason why wireless extensions are still around ;)

The idea of having a 2.4 GHz only card provide a hint for 5 GHz is just
plain wrong. If the hardware is designed for 2.4 GHz it should not mess
with other frequencies.

So my solution would be first regulatory hint in each band wins.

Also we should have printk that shows up in dmesg in cases where neither
crda or iw modified the regulatory domain and we have clash with the
hints provided by two or more cards.

Regards

Marcel



  reply	other threads:[~2008-10-20 16:42 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 22:17 New Regulatory Domain Api Kolekar, Abhijeet
2008-10-09 15:45 ` Luis R. Rodriguez
2008-10-10  3:22   ` Zhu Yi
2008-10-10 16:49     ` Luis R. Rodriguez
2008-10-14  6:59       ` Zhu Yi
2008-10-14  7:04         ` Luis R. Rodriguez
2008-10-14  7:36           ` Zhu Yi
2008-10-14  9:04             ` Luis R. Rodriguez
2008-10-14  9:13               ` Luis R. Rodriguez
2008-10-14  9:23                 ` Zhu Yi
2008-10-14  9:27                   ` Zhu Yi
2008-10-14  9:32                     ` Johannes Berg
2008-10-14  9:30                   ` Luis R. Rodriguez
2008-10-14 20:35               ` John W. Linville
2008-10-14 21:15                 ` Johannes Berg
2008-10-14 21:19                   ` John W. Linville
2008-10-14 21:27                     ` Johannes Berg
2008-10-14 21:50                       ` John W. Linville
2008-10-14 21:57                         ` Johannes Berg
2008-10-15 15:46                       ` Marcel Holtmann
2008-10-15 15:59                         ` Johannes Berg
2008-10-15 17:26                           ` Marcel Holtmann
2008-10-15 17:39                             ` Luis R. Rodriguez
2008-10-15 17:45                               ` Johannes Berg
2008-10-15 18:11                                 ` Luis R. Rodriguez
2008-10-15 17:47                               ` Marcel Holtmann
2008-10-15 11:25                                 ` Luis R. Rodriguez
2008-10-15 19:25                                   ` Marcel Holtmann
2008-10-15 13:16                                     ` Luis R. Rodriguez
2008-10-15 23:31                                       ` Tomas Winkler
2008-10-15 17:08                                         ` Luis R. Rodriguez
2008-10-16  0:35                                           ` Tomas Winkler
2008-10-15 17:44                                             ` Luis R. Rodriguez
2008-10-16  0:57                                               ` Tomas Winkler
2008-10-15 18:56                                                 ` Luis R. Rodriguez
2008-10-16  3:00                                                   ` Zhu Yi
2008-10-16 11:38                                                     ` Luis R. Rodriguez
2008-10-20  2:51                                                       ` Zhu Yi
2008-10-20  3:40                                                         ` Luis R. Rodriguez
2008-10-20  5:18                                                           ` Zhu Yi
2008-10-20  6:33                                                             ` Luis R. Rodriguez
2008-10-20  6:38                                                               ` Johannes Berg
2008-10-20  6:46                                                                 ` Luis R. Rodriguez
2008-10-20  6:50                                                                   ` Johannes Berg
2008-10-20  6:59                                                                     ` Luis R. Rodriguez
2008-10-20  7:22                                                                       ` Zhu Yi
2008-10-20 16:43                                                                         ` Marcel Holtmann [this message]
2008-10-21  1:34                                                                           ` Zhu Yi
2008-10-21  1:42                                                                             ` Luis R. Rodriguez
2008-10-21  1:58                                                                               ` Zhu Yi
2008-10-21  2:37                                                                                 ` Luis R. Rodriguez
2008-10-21  4:02                                                                                   ` Zhu Yi
2008-10-21  4:58                                                                                     ` Luis R. Rodriguez
2008-10-21  5:28                                                                                       ` Zhu Yi
2008-10-21  6:02                                                                                         ` Luis R. Rodriguez
2008-10-21  6:46                                                                                           ` Zhu Yi
2008-10-21  6:07                                                                                       ` Marcel Holtmann
2008-10-21  6:29                                                                                         ` Luis R. Rodriguez
2008-10-21  6:51                                                                                           ` Marcel Holtmann
2008-10-21 17:13                                                                                             ` John W. Linville
2008-10-21 17:43                                                                                               ` Marcel Holtmann
2008-10-21 17:48                                                                                                 ` John W. Linville
2008-10-21 11:02                                                                                                   ` Luis R. Rodriguez
2008-10-21 18:05                                                                                                     ` John W. Linville
2008-10-21 11:21                                                                                                       ` Luis R. Rodriguez
2008-10-22  9:20                                                                                                     ` Zhu Yi
2008-10-22 10:13                                                                                                       ` Luis R. Rodriguez
2008-10-23  2:29                                                                                                         ` Zhu Yi
2008-10-21  6:40                                                                                         ` Johannes Berg
2008-10-21  6:47                                                                                           ` Marcel Holtmann
2008-10-21  7:05                                                                                   ` Johannes Berg
     [not found]                                                                                     ` <79124FD53D2E084387D88C71BEB48F3EDD3625@CPEXBE-EML29.kpnsp.local>
2008-10-21  7:37                                                                                       ` Johannes Berg
2008-10-21 16:39                                                                                     ` Marcel Holtmann
2008-10-21 11:04                                                                                       ` Luis R. Rodriguez
2008-10-21 16:40                                                                                       ` Johannes Berg
2008-10-15 17:40                             ` Johannes Berg
2008-10-15  2:00                   ` Zhu Yi
2008-10-14  9:19     ` Johannes Berg
2008-10-15  1:40       ` Zhu Yi
2008-10-15 15:50         ` Marcel Holtmann
2008-10-15 16:01           ` Johannes Berg
2008-10-15 17:29             ` Marcel Holtmann
2008-10-15 17:36               ` 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=1224520999.9386.72.camel@californication \
    --to=holtmann@linux.intel.com \
    --cc=Luis.Rodriguez@atheros.com \
    --cc=abhijeet.kolekar@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.com \
    --cc=tomasw@gmail.com \
    --cc=yi.zhu@intel.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;
as well as URLs for NNTP newsgroup(s).