Return-path: Received: from mga01.intel.com ([192.55.52.88]:55188 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752284AbYF2JLZ (ORCPT ); Sun, 29 Jun 2008 05:11:25 -0400 From: Tomas Winkler To: linville@tuxdriver.com, johannes@sipsolutions.net, yi.zhu@intel.com Cc: linux-wireless@vger.kernel.org, Ester Kummer Subject: [PATCH 1/1] cfg80211: adding NONE regdomain Date: Sun, 29 Jun 2008 12:11:21 +0300 Message-Id: <1214730681-4475-1-git-send-email-tomas.winkler@intel.com> (sfid-20080629_111135_835813_DD31A8E3) Content-Type: text/plain; charset="us-ascii" Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Ester Kummer 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: Esti Kummer Signed-off-by: Tomas Winkler --- 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.