From: Tomas Winkler <tomas.winkler@intel.com>
To: linville@tuxdriver.com, johannes@sipsolutions.net, yi.zhu@intel.com
Cc: linux-wireless@vger.kernel.org, Ester Kummer <ester.kummer@intel.com>
Subject: [PATCH 1/1 V2] cfg80211: adding NONE regdomain
Date: Sun, 29 Jun 2008 12:43:24 +0300 [thread overview]
Message-ID: <1214732604-4573-1-git-send-email-tomas.winkler@intel.com> (raw)
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.
next reply other threads:[~2008-06-29 9:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 9:43 Tomas Winkler [this message]
2008-06-30 8:18 ` [PATCH 1/1 V2] cfg80211: adding NONE regdomain 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
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=1214732604-4573-1-git-send-email-tomas.winkler@intel.com \
--to=tomas.winkler@intel.com \
--cc=ester.kummer@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