linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mac80211] Implement EU regulatory domain
@ 2008-06-04 18:51 Tony Vroon
  2008-06-04 19:05 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Vroon @ 2008-06-04 18:51 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, Johannes Berg


[-- Attachment #1.1: Type: text/plain, Size: 181 bytes --]

Please consider the attached patch (inline sign-off & short description)
for inclusion in 2.6.27

Regards,
Tony V.
UNIX systems administrator
London Internet Exchange (LINX)

[-- Attachment #1.2: mac80211-eu-regdom.patch --]
[-- Type: text/x-patch, Size: 1364 bytes --]

Implement missing EU regulatory domain for mac80211. Based on the 
information in IEEE 802.11-2007 (specifically pages 1142, 1143 & 1148) 
and ETSI 301 893 (V1.4.1).
With thanks to Johannes Berg.

Signed-off-by: Tony Vroon <tony@linx.net>

--- net/wireless/reg.c.orig	2008-06-04 16:29:54.000000000 +0100
+++ net/wireless/reg.c	2008-06-04 19:25:34.000000000 +0100
@@ -80,6 +80,23 @@
 				     IEEE80211_CHAN_RADAR),
 };
 
+static const struct ieee80211_channel_range ieee80211_EU_channels[] = {
+	/* IEEE 802.11b/g, channels 1..13 */
+	RANGE_PWR(2412, 2472, 20, 6, 0),
+	/* IEEE 802.11a, channel 36*/
+	RANGE_PWR(5180, 5180, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
+	/* IEEE 802.11a, channel 40*/
+	RANGE_PWR(5200, 5200, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
+	/* IEEE 802.11a, channel 44*/
+	RANGE_PWR(5220, 5220, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
+	/* IEEE 802.11a, channels 48..64 */
+	RANGE_PWR(5240, 5320, 23, 6, IEEE80211_CHAN_NO_IBSS |
+				     IEEE80211_CHAN_RADAR),
+	/* IEEE 802.11a, channels 100..140 */
+	RANGE_PWR(5500, 5700, 30, 6, IEEE80211_CHAN_NO_IBSS |
+				     IEEE80211_CHAN_RADAR),
+};
+
 #define REGDOM(_code)							\
 	{								\
 		.code = __stringify(_code),				\
@@ -90,6 +107,7 @@
 static const struct ieee80211_regdomain ieee80211_regdoms[] = {
 	REGDOM(US),
 	REGDOM(JP),
+	REGDOM(EU),
 };
 
 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mac80211] Implement EU regulatory domain
  2008-06-04 18:51 [mac80211] Implement EU regulatory domain Tony Vroon
@ 2008-06-04 19:05 ` Johannes Berg
  2008-06-21 18:10   ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2008-06-04 19:05 UTC (permalink / raw)
  To: Tony Vroon; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1866 bytes --]


> Implement missing EU regulatory domain for mac80211. Based on the 
> information in IEEE 802.11-2007 (specifically pages 1142, 1143 &
> 1148) 
> and ETSI 301 893 (V1.4.1).
> With thanks to Johannes Berg.

Technically not mac80211 but cfg80211 ;)

> Signed-off-by: Tony Vroon <tony@linx.net>

Acked-by: Johannes Berg <johannes@sipsolutions.net>

> --- net/wireless/reg.c.orig     2008-06-04 16:29:54.000000000 +0100
> +++ net/wireless/reg.c  2008-06-04 19:25:34.000000000 +0100
> @@ -80,6 +80,23 @@
>                                      IEEE80211_CHAN_RADAR),
>  };
>  
> +static const struct ieee80211_channel_range ieee80211_EU_channels[] =
> {
> +       /* IEEE 802.11b/g, channels 1..13 */
> +       RANGE_PWR(2412, 2472, 20, 6, 0),
> +       /* IEEE 802.11a, channel 36*/
> +       RANGE_PWR(5180, 5180, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
> +       /* IEEE 802.11a, channel 40*/
> +       RANGE_PWR(5200, 5200, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
> +       /* IEEE 802.11a, channel 44*/
> +       RANGE_PWR(5220, 5220, 23, 6, IEEE80211_CHAN_PASSIVE_SCAN),
> +       /* IEEE 802.11a, channels 48..64 */
> +       RANGE_PWR(5240, 5320, 23, 6, IEEE80211_CHAN_NO_IBSS |
> +                                    IEEE80211_CHAN_RADAR),
> +       /* IEEE 802.11a, channels 100..140 */
> +       RANGE_PWR(5500, 5700, 30, 6, IEEE80211_CHAN_NO_IBSS |
> +                                    IEEE80211_CHAN_RADAR),
> +};
> +
>  #define
> REGDOM(_code)                                                  \
>         {                                                               \
>                 .code =
> __stringify(_code),                             \
> @@ -90,6 +107,7 @@
>  static const struct ieee80211_regdomain ieee80211_regdoms[] = {
>         REGDOM(US),
>         REGDOM(JP),
> +       REGDOM(EU),
>  };

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mac80211] Implement EU regulatory domain
  2008-06-04 19:05 ` Johannes Berg
@ 2008-06-21 18:10   ` Johannes Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2008-06-21 18:10 UTC (permalink / raw)
  To: Tony Vroon; +Cc: John W. Linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 599 bytes --]

On Wed, 2008-06-04 at 21:05 +0200, Johannes Berg wrote:
> > Implement missing EU regulatory domain for mac80211. Based on the 
> > information in IEEE 802.11-2007 (specifically pages 1142, 1143 &
> > 1148) 
> > and ETSI 301 893 (V1.4.1).
> > With thanks to Johannes Berg.
> 
> Technically not mac80211 but cfg80211 ;)
> 
> > Signed-off-by: Tony Vroon <tony@linx.net>
> 
> Acked-by: Johannes Berg <johannes@sipsolutions.net>

John, can we have that commit in 2.6.26? It fixes a problem that users
in the EU are not able to properly use the spectrum they are allowed to.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-21 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 18:51 [mac80211] Implement EU regulatory domain Tony Vroon
2008-06-04 19:05 ` Johannes Berg
2008-06-21 18:10   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).