From: Zhu Yi <yi.zhu@intel.com>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: Marcel Holtmann <holtmann@linux.intel.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: Tue, 21 Oct 2008 12:02:28 +0800 [thread overview]
Message-ID: <1224561748.24677.274.camel@debian.sh.intel.com> (raw)
In-Reply-To: <43e72e890810201937l3be24156t2172590138fda132@mail.gmail.com>
On Mon, 2008-10-20 at 19:37 -0700, Luis R. Rodriguez wrote:
> As I mentioned in my previous e-mail, the real problem is what you are
> asking for changes the entire regulatory design from: "disable
> everything and enable only this" to "enable everything except for
> elements I don't define in the band I tell you to". There are many
> design flaws with this; an obvious problem to this is what is a band?
> In my patch I took the liberty to define that a frequency is part of a
> band if a rule was present within 2 GHz of itself. This works but it
> is trying to make a definition out of something that doesn't exist --
> its trying to solve the wrong problem. Since regulatory database is in
> KHz it is designed to allow us to grow regardless of band notions or
> associations. In the regulatory database we allow for 2 GHz, 5 GHz,
> etc KH definitions for any country and this was designed to account
> for misinformation on drivers to help the user be more compliant. By
> changing the design to what you are suggesting you'd have to add a
> dummy rule for every frequency "band" if you really want to disable
> all other bands.
I agree you on the band and KHz.
> The real problem here is you are not providing 5 GHz regulatory rules
> on a 2 GHz capable built-in card because you currently handle
> regulatory definitions by intersecting with hardware capabilities
> *and* the issue is what happens when a user plugs in a 5 GHz capable
> card. For >= iwlagn you have only a few SKUs so if you want you can
> put these definitions in the driver. As Tomas points out for iwl3945
> and iwl4965 your SKUs are more complicated. Regulatory *is*
> complicated, and that is the current outsourcing of db.txt to
> userspace tries to accomplish. So the solution isn't to try to "fix"
> the regulatory infrastructure to handle your particular issue when a
> single Intel 2 GHz band card is present and you connect a dual band
> card by changing its overall design, because we already provide a
> mechanism to deal with overriding regulatory rules to help the user be
> more compliant.
The real problem is you are forcing a device to provide a SKU even it is
not capable of. An SKU is not always necessary as long as the hardware
provides other ways to comply with regulatory. To solve the problem, I'd
suggest a special regdomain named EVERYTHING. In the case the driver or
firmware enforces reg_rules, the core wireless reg_rules are safe to be
bypassed. EVERYTHING can always be overwritten by other regdomains. For
example, when the user inserts a second card with regdomain of EU, EU
becomes the global regdomain. A driver should only claim to use
EVERYTHING when it has its own way to enforce regulatory. Now the
concept changes to "the first non-EVERYTHING regdomain wins". Thoughts?
> The proper solution is to either add 5 GHz regulatory rules to your
> regulatory_hint() and/or rely on crda to enable the 5 GHz channels
> required for the country the user is in. It is true that you need
> manual intervention and the way I am trying to resolve that is not by
> changing the design of the current regulatory infrastructure, instead
> I want to add country selection support to say wpa_supplicant or
> Network Manager. That, IMO, is how to address the problem correctly. I
> also suggested a temporary solution which a distribution can use which
> requires absolutely no manual user intervention, that of determining
> the country through whatever means the distribution deems more fit and
> calling iw reg set on $COUNTRY.
See Marcel's comment on supporting new kernels with old applications.
Thanks,
-yi
next prev parent reply other threads:[~2008-10-21 4:02 UTC|newest]
Thread overview: 84+ 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
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 [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2008-10-15 13:16 Joerg Pommnitz
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=1224561748.24677.274.camel@debian.sh.intel.com \
--to=yi.zhu@intel.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=lrodriguez@atheros.com \
--cc=tomasw@gmail.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.