* [PATCH] cfg80211: add EU regulatory domain
@ 2008-03-31 21:01 John W. Linville
2008-03-31 22:00 ` Brian Morrison
0 siblings, 1 reply; 3+ messages in thread
From: John W. Linville @ 2008-03-31 21:01 UTC (permalink / raw)
To: linux-wireless; +Cc: John W. Linville, Brian Morrison
Based on initial footwork from Brian Morrison.
Cc: Brian Morrison <bdm@fenrir.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
Is this worth having? I'm surprised no one has asked for it until
recently...
Are these values correct? Including the power and gain values? Does
anyone know have a link to an authoritative source?
net/wireless/reg.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 8cc6037..998ceb6 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -80,6 +80,21 @@ static const struct ieee80211_channel_range ieee80211_JP_channels[] = {
IEEE80211_CHAN_RADAR),
};
+static const struct ieee80211_channel_range ieee80211_EU_channels[] = {
+ /* IEEE 802.11b/g, channels 1..13 */
+ RANGE_PWR(2412, 2472, 27, 6, 0),
+ /* IEEE 802.11a, channel 36*/
+ RANGE_PWR(5180, 5180, 23, 6, 0),
+ /* IEEE 802.11a, channel 40*/
+ RANGE_PWR(5200, 5200, 23, 6, 0),
+ /* IEEE 802.11a, channel 44*/
+ RANGE_PWR(5220, 5220, 23, 6, 0),
+ /* IEEE 802.11a, channels 48..64 */
+ RANGE_PWR(5240, 5320, 23, 6, 0),
+ /* IEEE 802.11a, channels 100..140 */
+ RANGE_PWR(5500, 5700, 23, 6, 0),
+};
+
#define REGDOM(_code) \
{ \
.code = __stringify(_code), \
@@ -90,6 +105,7 @@ static const struct ieee80211_channel_range ieee80211_JP_channels[] = {
static const struct ieee80211_regdomain ieee80211_regdoms[] = {
REGDOM(US),
REGDOM(JP),
+ REGDOM(EU),
};
--
1.5.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] cfg80211: add EU regulatory domain
2008-03-31 21:01 [PATCH] cfg80211: add EU regulatory domain John W. Linville
@ 2008-03-31 22:00 ` Brian Morrison
2008-04-01 12:21 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Brian Morrison @ 2008-03-31 22:00 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless
On Mon, 31 Mar 2008 17:01:55 -0400
"John W. Linville" <linville@tuxdriver.com> wrote:
> Based on initial footwork from Brian Morrison.
>
> Cc: Brian Morrison <bdm@fenrir.org.uk>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
> Is this worth having? I'm surprised no one has asked for it until
> recently...
>
> Are these values correct? Including the power and gain values? Does
> anyone know have a link to an authoritative source?
>
> net/wireless/reg.c | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/net/wireless/reg.c b/net/wireless/reg.c
> index 8cc6037..998ceb6 100644
> --- a/net/wireless/reg.c
> +++ b/net/wireless/reg.c
> @@ -80,6 +80,21 @@ static const struct ieee80211_channel_range ieee80211_JP_channels[] = {
> IEEE80211_CHAN_RADAR),
> };
>
> +static const struct ieee80211_channel_range ieee80211_EU_channels[] = {
> + /* IEEE 802.11b/g, channels 1..13 */
> + RANGE_PWR(2412, 2472, 27, 6, 0),
This should read:
+ RANGE_PWR(2412, 2472, 20, 0, 0),
The power limit is supposed to be +20dBm in the EU, and it's EIRP so
that includes antenna gain which I've set to 0dB.
For an authoritative document you need http://www.etsi.org but their
site is down just now, so I can't find the document I want.
> + /* IEEE 802.11a, channel 36*/
> + RANGE_PWR(5180, 5180, 23, 6, 0),
> + /* IEEE 802.11a, channel 40*/
> + RANGE_PWR(5200, 5200, 23, 6, 0),
> + /* IEEE 802.11a, channel 44*/
> + RANGE_PWR(5220, 5220, 23, 6, 0),
> + /* IEEE 802.11a, channels 48..64 */
> + RANGE_PWR(5240, 5320, 23, 6, 0),
> + /* IEEE 802.11a, channels 100..140 */
> + RANGE_PWR(5500, 5700, 23, 6, 0),
> +};
> +
> #define REGDOM(_code) \
> { \
> .code = __stringify(_code), \
> @@ -90,6 +105,7 @@ static const struct ieee80211_channel_range ieee80211_JP_channels[] = {
> static const struct ieee80211_regdomain ieee80211_regdoms[] = {
> REGDOM(US),
> REGDOM(JP),
> + REGDOM(EU),
> };
>
>
--
Brian Morrison
bdm at fenrir dot org dot uk
"Arguing with an engineer is like wrestling with a pig in the mud;
after a while you realize you are muddy and the pig is enjoying it."
GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] cfg80211: add EU regulatory domain
2008-03-31 22:00 ` Brian Morrison
@ 2008-04-01 12:21 ` Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2008-04-01 12:21 UTC (permalink / raw)
To: Brian Morrison; +Cc: John W. Linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
> > Is this worth having? I'm surprised no one has asked for it until
> > recently...
> >
> > Are these values correct? Including the power and gain values?
> Does
> > anyone know have a link to an authoritative source?
> + RANGE_PWR(2412, 2472, 20, 0, 0),
>
> The power limit is supposed to be +20dBm in the EU, and it's EIRP so
> that includes antenna gain which I've set to 0dB.
>
> For an authoritative document you need http://www.etsi.org but their
> site is down just now, so I can't find the document I want.
Mind you, I think France and some other countries still have different
limits/restrictions, isn't ETSI just a sort of advisory body?
johannes
[-- 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
end of thread, other threads:[~2008-04-01 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-31 21:01 [PATCH] cfg80211: add EU regulatory domain John W. Linville
2008-03-31 22:00 ` Brian Morrison
2008-04-01 12:21 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox