* [PATCH 1/1 V2] cfg80211: adding NONE regdomain
@ 2008-06-29 9:43 Tomas Winkler
2008-06-30 8:18 ` Luis R. Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Tomas Winkler @ 2008-06-29 9:43 UTC (permalink / raw)
To: linville, johannes, yi.zhu; +Cc: linux-wireless, Ester Kummer
From: Ester Kummer <ester.kummer@intel.com>
This patch adds an option to enable all the channels by adding a
value of "NONE" to ieee80211_regdom module param. This is useful
for NICs that rely on EEPROM regulatory enforcement and for testing
Signed-off-by: Ester Kummer <ester.kummer@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
net/wireless/reg.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 855bff4..140b931 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -97,6 +97,14 @@ static const struct ieee80211_channel_range ieee80211_EU_channels[] = {
IEEE80211_CHAN_RADAR),
};
+static const struct ieee80211_channel_range ieee80211_NONE_channels[] = {
+ /* IEEE 802.11b/g, channels 1..14 */
+ RANGE_PWR(2412, 2484, 0xFF, 0xFF, 0),
+ /* IEEE 802.11a, channels 36..165 */
+ RANGE_PWR(5180, 6000, 0xFF, 0xFF, 0),
+};
+
+
#define REGDOM(_code) \
{ \
.code = __stringify(_code), \
@@ -108,6 +116,7 @@ static const struct ieee80211_regdomain ieee80211_regdoms[] = {
REGDOM(US),
REGDOM(JP),
REGDOM(EU),
+ REGDOM(NONE),
};
--
1.5.4.1
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-29 9:43 [PATCH 1/1 V2] cfg80211: adding NONE regdomain Tomas Winkler
@ 2008-06-30 8:18 ` Luis R. Rodriguez
2008-06-30 8:52 ` Tomas Winkler
0 siblings, 1 reply; 11+ messages in thread
From: Luis R. Rodriguez @ 2008-06-30 8:18 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linville, johannes, yi.zhu, linux-wireless, Ester Kummer
On Sun, Jun 29, 2008 at 2:43 AM, Tomas Winkler <tomas.winkler@intel.com> wrote:
> From: Ester Kummer <ester.kummer@intel.com>
>
> This patch adds an option to enable all the channels by adding a
> value of "NONE" to ieee80211_regdom module param. This is useful
> for NICs that rely on EEPROM regulatory enforcement and for testing
For the EEPROM we should not rely on "none" but on a callback notifier
chain to let the driver do 'the right thing'. I'll post patches
hopefully tonight.
Luis
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 8:18 ` Luis R. Rodriguez
@ 2008-06-30 8:52 ` Tomas Winkler
2008-06-30 8:59 ` Luis R. Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Tomas Winkler @ 2008-06-30 8:52 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: linville, johannes, yi.zhu, linux-wireless, Ester Kummer
On Mon, Jun 30, 2008 at 11:18 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Sun, Jun 29, 2008 at 2:43 AM, Tomas Winkler <tomas.winkler@intel.com> wrote:
>> From: Ester Kummer <ester.kummer@intel.com>
>>
>> This patch adds an option to enable all the channels by adding a
>> value of "NONE" to ieee80211_regdom module param. This is useful
>> for NICs that rely on EEPROM regulatory enforcement and for testing
>
> For the EEPROM we should not rely on "none" but on a callback notifier
> chain to let the driver do 'the right thing'. I'll post patches
> hopefully tonight.
Still can be useful for testing,
Tomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 8:52 ` Tomas Winkler
@ 2008-06-30 8:59 ` Luis R. Rodriguez
2008-06-30 9:16 ` Tomas Winkler
2008-06-30 9:22 ` Johannes Berg
0 siblings, 2 replies; 11+ messages in thread
From: Luis R. Rodriguez @ 2008-06-30 8:59 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linville, johannes, yi.zhu, linux-wireless, Ester Kummer
On Mon, Jun 30, 2008 at 1:52 AM, Tomas Winkler <tomasw@gmail.com> wrote:
> On Mon, Jun 30, 2008 at 11:18 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>> On Sun, Jun 29, 2008 at 2:43 AM, Tomas Winkler <tomas.winkler@intel.com> wrote:
>>> From: Ester Kummer <ester.kummer@intel.com>
>>>
>>> This patch adds an option to enable all the channels by adding a
>>> value of "NONE" to ieee80211_regdom module param. This is useful
>>> for NICs that rely on EEPROM regulatory enforcement and for testing
>>
>> For the EEPROM we should not rely on "none" but on a callback notifier
>> chain to let the driver do 'the right thing'. I'll post patches
>> hopefully tonight.
>
> Still can be useful for testing,
Testing can be done separately but not merged. The idea is to keep
mac80211 and mac80211 drivers as compliant as possible. This steers in
the other direction.
Luis
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 8:59 ` Luis R. Rodriguez
@ 2008-06-30 9:16 ` Tomas Winkler
2008-06-30 9:22 ` Johannes Berg
1 sibling, 0 replies; 11+ messages in thread
From: Tomas Winkler @ 2008-06-30 9:16 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: linville, johannes, yi.zhu, linux-wireless, Ester Kummer
On Mon, Jun 30, 2008 at 11:59 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Mon, Jun 30, 2008 at 1:52 AM, Tomas Winkler <tomasw@gmail.com> wrote:
>> On Mon, Jun 30, 2008 at 11:18 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>>> On Sun, Jun 29, 2008 at 2:43 AM, Tomas Winkler <tomas.winkler@intel.com> wrote:
>>>> From: Ester Kummer <ester.kummer@intel.com>
>>>>
>>>> This patch adds an option to enable all the channels by adding a
>>>> value of "NONE" to ieee80211_regdom module param. This is useful
>>>> for NICs that rely on EEPROM regulatory enforcement and for testing
>>>
>>> For the EEPROM we should not rely on "none" but on a callback notifier
>>> chain to let the driver do 'the right thing'. I'll post patches
>>> hopefully tonight.
>>
>> Still can be useful for testing,
>
> Testing can be done separately but not merged. The idea is to keep
> mac80211 and mac80211 drivers as compliant as possible. This steers in
> the other direction.
Currently EEPROM and reg domains creates strange intersections. We are
hitting this complains every other day.
What we are missing is the clear indication for end users (not on this
mailing list) what and why channels are restricted.
Thanks
Tomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 8:59 ` Luis R. Rodriguez
2008-06-30 9:16 ` Tomas Winkler
@ 2008-06-30 9:22 ` Johannes Berg
2008-06-30 11:25 ` Tomas Winkler
1 sibling, 1 reply; 11+ messages in thread
From: Johannes Berg @ 2008-06-30 9:22 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: Tomas Winkler, linville, yi.zhu, linux-wireless, Ester Kummer
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
On Mon, 2008-06-30 at 01:59 -0700, Luis R. Rodriguez wrote:
> >>> This patch adds an option to enable all the channels by adding a
> >>> value of "NONE" to ieee80211_regdom module param. This is useful
> >>> for NICs that rely on EEPROM regulatory enforcement and for testing
> > Still can be useful for testing,
>
> Testing can be done separately but not merged. The idea is to keep
> mac80211 and mac80211 drivers as compliant as possible. This steers in
> the other direction.
I agree, testing is no reason to merge a patch if it's intrusive and not
useful outside testing.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 9:22 ` Johannes Berg
@ 2008-06-30 11:25 ` Tomas Winkler
2008-06-30 11:35 ` Johannes Berg
0 siblings, 1 reply; 11+ messages in thread
From: Tomas Winkler @ 2008-06-30 11:25 UTC (permalink / raw)
To: Johannes Berg
Cc: Luis R. Rodriguez, linville, yi.zhu, linux-wireless, Ester Kummer
On Mon, Jun 30, 2008 at 12:22 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Mon, 2008-06-30 at 01:59 -0700, Luis R. Rodriguez wrote:
>
>> >>> This patch adds an option to enable all the channels by adding a
>> >>> value of "NONE" to ieee80211_regdom module param. This is useful
>> >>> for NICs that rely on EEPROM regulatory enforcement and for testing
>
>> > Still can be useful for testing,
>>
>> Testing can be done separately but not merged. The idea is to keep
>> mac80211 and mac80211 drivers as compliant as possible. This steers in
>> the other direction.
>
> I agree, testing is no reason to merge a patch if it's intrusive and not
> useful outside testing.
The idea was ask troubled user to make change in modprobe.conf and not
changing the code.
Thanks
Tomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 11:25 ` Tomas Winkler
@ 2008-06-30 11:35 ` Johannes Berg
2008-06-30 13:31 ` Tomas Winkler
2008-06-30 13:55 ` John W. Linville
0 siblings, 2 replies; 11+ messages in thread
From: Johannes Berg @ 2008-06-30 11:35 UTC (permalink / raw)
To: Tomas Winkler
Cc: Luis R. Rodriguez, linville, yi.zhu, linux-wireless, Ester Kummer
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Mon, 2008-06-30 at 14:25 +0300, Tomas Winkler wrote:
> The idea was ask troubled user to make change in modprobe.conf and not
> changing the code.
Yeah but IMHO you're solving the wrong problem. If we want any
credibility we shouldn't allow users to ignore any regdom that easily,
and this is system-wide. Also, iwlwifi partly caused this problem in the
first place by printing out eeprom channels rather than having users use
"iwlist wlan0 channel" to see which channels are usable. Or even iw,
which shows you which are disabled.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 11:35 ` Johannes Berg
@ 2008-06-30 13:31 ` Tomas Winkler
2008-06-30 13:55 ` John W. Linville
1 sibling, 0 replies; 11+ messages in thread
From: Tomas Winkler @ 2008-06-30 13:31 UTC (permalink / raw)
To: Johannes Berg
Cc: Luis R. Rodriguez, linville, yi.zhu, linux-wireless, Ester Kummer
On Mon, Jun 30, 2008 at 2:35 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Mon, 2008-06-30 at 14:25 +0300, Tomas Winkler wrote:
>
>> The idea was ask troubled user to make change in modprobe.conf and not
>> changing the code.
>
> Yeah but IMHO you're solving the wrong problem. If we want any
> credibility we shouldn't allow users to ignore any regdom that easily,
> and this is system-wide. Also, iwlwifi partly caused this problem in the
> first place by printing out eeprom channels rather than having users use
> "iwlist wlan0 channel" to see which channels are usable. Or even iw,
> which shows you which are disabled.
Unfortunately iwlist channel gives very little information about
channels and iw is not distributed by any distro as far as I know.
Here is little patch to help iw be more useful.
--- a/iw.c
+++ b/iw.c
@@ -95,7 +95,7 @@ static void usage(char *argv0)
fprintf(stderr, "Usage: %1$s dev <phydev> <OBJECT> <COMMAND> [OPTIONS]"
"\n %1$s dev <phydev> info\n"
"\n"
- "where OBJECT := { interface | station | mpath }\n"
+ "where OBJECT := { interface | station | mpath
| info }\n"
"and COMMAND := { add | del | set | get | dump }\n",
argv0);
}
Tomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 11:35 ` Johannes Berg
2008-06-30 13:31 ` Tomas Winkler
@ 2008-06-30 13:55 ` John W. Linville
2008-06-30 14:27 ` Tomas Winkler
1 sibling, 1 reply; 11+ messages in thread
From: John W. Linville @ 2008-06-30 13:55 UTC (permalink / raw)
To: Johannes Berg
Cc: Tomas Winkler, Luis R. Rodriguez, yi.zhu, linux-wireless,
Ester Kummer
On Mon, Jun 30, 2008 at 01:35:47PM +0200, Johannes Berg wrote:
> On Mon, 2008-06-30 at 14:25 +0300, Tomas Winkler wrote:
>
> > The idea was ask troubled user to make change in modprobe.conf and not
> > changing the code.
>
> Yeah but IMHO you're solving the wrong problem. If we want any
> credibility we shouldn't allow users to ignore any regdom that easily,
> and this is system-wide.
I share this opinion. I'm not inclined to merge this patch.
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
2008-06-30 13:55 ` John W. Linville
@ 2008-06-30 14:27 ` Tomas Winkler
0 siblings, 0 replies; 11+ messages in thread
From: Tomas Winkler @ 2008-06-30 14:27 UTC (permalink / raw)
To: John W. Linville
Cc: Johannes Berg, Luis R. Rodriguez, yi.zhu, linux-wireless,
Ester Kummer
On Mon, Jun 30, 2008 at 4:55 PM, John W. Linville
<linville@tuxdriver.com> wrote:
> On Mon, Jun 30, 2008 at 01:35:47PM +0200, Johannes Berg wrote:
>> On Mon, 2008-06-30 at 14:25 +0300, Tomas Winkler wrote:
>>
>> > The idea was ask troubled user to make change in modprobe.conf and not
>> > changing the code.
>>
>> Yeah but IMHO you're solving the wrong problem. If we want any
>> credibility we shouldn't allow users to ignore any regdom that easily,
>> and this is system-wide.
>
> I share this opinion. I'm not inclined to merge this patch.
That's okay. I hope Luis will provide better solution for this. And
mostly I hope that everybody agrees with me that we have a problem
here from the user perspective.
Tomas
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-06-30 14:27 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-29 9:43 [PATCH 1/1 V2] cfg80211: adding NONE regdomain Tomas Winkler
2008-06-30 8:18 ` Luis R. Rodriguez
2008-06-30 8:52 ` Tomas Winkler
2008-06-30 8:59 ` Luis R. Rodriguez
2008-06-30 9:16 ` Tomas Winkler
2008-06-30 9:22 ` Johannes Berg
2008-06-30 11:25 ` Tomas Winkler
2008-06-30 11:35 ` Johannes Berg
2008-06-30 13:31 ` Tomas Winkler
2008-06-30 13:55 ` John W. Linville
2008-06-30 14:27 ` Tomas Winkler
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.