Skip to contentSkip to conversation

cfg80211: adding NONE regdomain

PATCH In review Tomas Winkler 5 participants 11 messages Jun 29, 2008 – Jun 30, 2008 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cfg80211: adding NONE regdomain

From: Ester Kummer <[email protected]>

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

---
 net/wireless/reg.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
net/wireless/reg.c +9 -0
index 855bff4..140b931 100644
@@ -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),
 };
 
 
Signature · 9 lines
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.
#1 lore raw
Quoted 5 lines · Tomas Winkler

From: Ester Kummer <[email protected]>

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

#2 lore raw
Quoted 10 lines · Luis R. Rodriguez
Quoted 5 lines · Tomas Winkler

From: Ester Kummer <[email protected]>

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

#3 lore raw
Quoted 8 lines · Tomas Winkler
Quoted 7 lines · Luis R. Rodriguez
Quoted 5 lines · Tomas Winkler

From: Ester Kummer <[email protected]>

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

Quoted 5 lines
Quoted 3 lines

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

#4 lore raw
Quoted 13 lines · Luis R. Rodriguez
Quoted 12 lines · Tomas Winkler
Quoted 10 lines · Luis R. Rodriguez
Quoted 5 lines · Tomas Winkler

From: Ester Kummer <[email protected]>

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.

Quoted 5 lines
Quoted 1 line

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

maintainer
#5 lore raw
In reply to Luis R. Rodriguez
Quoted 9 lines · Luis R. Rodriguez
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

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

#6 lore raw
Quoted 6 lines · Johannes Berg
Quoted 3 lines · Luis R. Rodriguez
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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

maintainer
#7 lore raw
Quoted 2 lines · Tomas Winkler

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

#8 lore raw
Quoted 11 lines · Johannes Berg
Quoted 2 lines · Tomas Winkler

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.

iw.c +1 -1
@@ -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

#9 lore raw
In reply to Johannes Berg
Quoted 8 lines · Johannes Berg
Quoted 2 lines · Tomas Winkler

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.

Signature · 2 lines
John W. Linville
[email protected]
#10 lore raw
Quoted 11 lines · John W. Linville
Quoted 8 lines · Johannes Berg
Quoted 2 lines · Tomas Winkler

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