linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Marcel Holtmann <holtmann@linux.intel.com>
Cc: Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	"John W. Linville" <linville@tuxdriver.com>,
	Zhu Yi <yi.zhu@intel.com>,
	"Kolekar, Abhijeet" <abhijeet.kolekar@intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: New Regulatory Domain Api.
Date: Wed, 15 Oct 2008 04:25:17 -0700	[thread overview]
Message-ID: <20081015112517.GF6509@tesla> (raw)
In-Reply-To: <1224092868.28173.21.camel@californication>

On Wed, Oct 15, 2008 at 10:47:48AM -0700, Marcel Holtmann wrote:
> Hi Luis,
> 
> > > I can see it useful when companies actually start building products with
> > > two or more cards in the system and have different cards for different
> > > tasks in it. So if you stick one card for one band and another one for
> > > the other band in there, then it would make sense to do a per-band
> > > regulatory hinting.
> >
> > Sure, but custom solutions can require custom regulatory dbs and
> > people can do any crazy thing they want here, just as when they need
> > custom regulatory domains not allowed by the FCC in the USA for
> > example. Remember that by default the design is trying to cover the
> > usual scenario of users with 1 wireless card or 2 with one built in.
> > We decided on our discussions to respect the built-in card first. For
> > more cards we can take the intersection if we want to keep being more
> > restrictive. Its what makes sense if you think about it.
> 
> I must admit that I never thought about the implications of multiple
> bands with multiple hardware. I am not against keeping it simple and
> forcing to have userspace in place to change it. However we do wanna
> have support for old laptops that are currently working fine with no
> extra userspace, but newer kernels where they just add the second card
> to access an A-network. Also remember that internal cards can't really
> be disabled most of the times.

So you mean you worry about cases where people are using kernels >=
2.6.28 without crda and iw? If so then they can use for 2.6.28 the
OLD_REGULATORY but the idea is for sure to push crda and iw for
distributions definitley as of 2.6.29 for when OLD_REGULATORY is
scheduled for removal.

The problem here is not this though the problem here is the case
where people are using 2.6.28 without no iw or crda *and* have more
than two cards :)

> > > Not sure if this really ever ends up in a product. However I can see the
> > > case where you have a laptop with a BG-card and then attach an A-card to
> > > it do access an A-network and then it doesn't work. It would be nice to
> > > just have this working. Currently this would not work.
> >
> > Yes it does, it just doesn't work for your hardware as Intel put into
> > regulatory hardware capability and these are two *very* different
> > things. That is the problem.
> >
> > My suggestion is to add a default minimal 5 GHz regulatory domain
> > definition to your driver on single band cards to deal with this. When
> > a dual band card is present then all of the full card's capabilities
> > will be used.
> 
> That would be one option, but it sounds really strange to me that a
> BG-card has to "think" about A-bands.

Don't think about it that way -- instead think of it this way: Intel
EEPROM is used for capability stuff but its now also being used for
regulatory and that is what is limitting you. So you *can* think about
5 GHz band for a single 2.4 GHz band card, its just that your regulatory
stuff right now is focused more on capabilities and not real regulatory.

> Let not try to put this down into the drivers if we can solve this
> nicely with a per-band regulatory hints inside the core.

Good point. This is reasonable as well, perhaps if the regulatory hint
has no 5 Ghz band channels it should not imply policy on it at all?
Should be simple enough to fix too I think instead of having two
regulatory_hint() calls per band.

> > > Also the case when we unplug the first card, does the regulatory hint
> > > gets reset and the next card could bring in a new one? I can see use
> > > cases where you don't wanna use the built-in card, because it is just
> > > too limited.
> >
> > For now nl80211 supports changing regulatory domains.
> 
> Please keep in mind the case where we do have a new kernel with old
> userspace or an userspace without CRDA.

Sure, what do you think of the above?

  Luis

  reply	other threads:[~2008-10-15 18:25 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 [this message]
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
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=20081015112517.GF6509@tesla \
    --to=lrodriguez@atheros.com \
    --cc=Luis.Rodriguez@Atheros.com \
    --cc=abhijeet.kolekar@intel.com \
    --cc=holtmann@linux.intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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).