* [PATCH] cfg80211: fix static regdomains
@ 2008-09-15 8:30 Johannes Berg
2008-09-15 17:01 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2008-09-15 8:30 UTC (permalink / raw)
To: John Linville; +Cc: Luis R. Rodriguez, linux-wireless
When Luis added the static regdomains back he used +/-20
of the centre frequencies to account for 40MHz bandwidth
neglecting the fact that 40MHz bandwidth cannot be used
on the channels close to the allowed band edges.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
Maybe this bandwidth vs. centre frequency and band use is
just too complicated?
net/wireless/core.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
--- everything.orig/net/wireless/core.c 2008-09-15 10:23:47.000000000 +0200
+++ everything/net/wireless/core.c 2008-09-15 10:24:27.000000000 +0200
@@ -41,7 +41,7 @@ const struct ieee80211_regdomain world_r
.n_reg_rules = 1,
.alpha2 = "00",
.reg_rules = {
- REG_RULE(2402, 2472, 40, 6, 20,
+ REG_RULE(2412-10, 2462+10, 40, 6, 20,
NL80211_RRF_PASSIVE_SCAN |
NL80211_RRF_NO_IBSS),
}
@@ -64,17 +64,17 @@ const struct ieee80211_regdomain us_regd
.alpha2 = "US",
.reg_rules = {
/* IEEE 802.11b/g, channels 1..11 */
- REG_RULE(2412-20, 2462+20, 40, 6, 27, 0),
+ REG_RULE(2412-10, 2462+10, 40, 6, 27, 0),
/* IEEE 802.11a, channel 36 */
- REG_RULE(5180-20, 5180+20, 40, 6, 23, 0),
+ REG_RULE(5180-10, 5180+10, 40, 6, 23, 0),
/* IEEE 802.11a, channel 40 */
- REG_RULE(5200-20, 5200+20, 40, 6, 23, 0),
+ REG_RULE(5200-10, 5200+10, 40, 6, 23, 0),
/* IEEE 802.11a, channel 44 */
- REG_RULE(5220-20, 5220+20, 40, 6, 23, 0),
+ REG_RULE(5220-10, 5220+10, 40, 6, 23, 0),
/* IEEE 802.11a, channels 48..64 */
- REG_RULE(5240-20, 5320+20, 40, 6, 23, 0),
+ REG_RULE(5240-10, 5320+10, 40, 6, 23, 0),
/* IEEE 802.11a, channels 149..165, outdoor */
- REG_RULE(5745-20, 5825+20, 40, 6, 30, 0),
+ REG_RULE(5745-10, 5825+10, 40, 6, 30, 0),
}
};
@@ -83,12 +83,12 @@ const struct ieee80211_regdomain jp_regd
.alpha2 = "JP",
.reg_rules = {
/* IEEE 802.11b/g, channels 1..14 */
- REG_RULE(2412-20, 2484+20, 40, 6, 20, 0),
+ REG_RULE(2412-10, 2484+10, 40, 6, 20, 0),
/* IEEE 802.11a, channels 34..48 */
- REG_RULE(5170-20, 5240+20, 40, 6, 20,
+ REG_RULE(5170-10, 5240+10, 40, 6, 20,
NL80211_RRF_PASSIVE_SCAN),
/* IEEE 802.11a, channels 52..64 */
- REG_RULE(5260-20, 5320+20, 40, 6, 20,
+ REG_RULE(5260-10, 5320+10, 40, 6, 20,
NL80211_RRF_NO_IBSS |
NL80211_RRF_DFS),
}
@@ -101,22 +101,22 @@ const struct ieee80211_regdomain eu_regd
.alpha2 = "EU",
.reg_rules = {
/* IEEE 802.11b/g, channels 1..13 */
- REG_RULE(2412-20, 2472+20, 40, 6, 20, 0),
+ REG_RULE(2412-10, 2472+10, 40, 6, 20, 0),
/* IEEE 802.11a, channel 36 */
- REG_RULE(5180-20, 5180+20, 40, 6, 23,
+ REG_RULE(5180-10, 5180+10, 40, 6, 23,
NL80211_RRF_PASSIVE_SCAN),
/* IEEE 802.11a, channel 40 */
- REG_RULE(5200-20, 5200+20, 40, 6, 23,
+ REG_RULE(5200-10, 5200+10, 40, 6, 23,
NL80211_RRF_PASSIVE_SCAN),
/* IEEE 802.11a, channel 44 */
- REG_RULE(5220-20, 5220+20, 40, 6, 23,
+ REG_RULE(5220-10, 5220+10, 40, 6, 23,
NL80211_RRF_PASSIVE_SCAN),
/* IEEE 802.11a, channels 48..64 */
- REG_RULE(5240-20, 5320+20, 40, 6, 20,
+ REG_RULE(5240-10, 5320+10, 40, 6, 20,
NL80211_RRF_NO_IBSS |
NL80211_RRF_DFS),
/* IEEE 802.11a, channels 100..140 */
- REG_RULE(5500-20, 5700+20, 40, 6, 30,
+ REG_RULE(5500-10, 5700+10, 40, 6, 30,
NL80211_RRF_NO_IBSS |
NL80211_RRF_DFS),
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] cfg80211: fix static regdomains
2008-09-15 8:30 [PATCH] cfg80211: fix static regdomains Johannes Berg
@ 2008-09-15 17:01 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2008-09-15 17:01 UTC (permalink / raw)
To: Johannes Berg; +Cc: John Linville, Luis R. Rodriguez, linux-wireless
On Mon, Sep 15, 2008 at 01:30:34AM -0700, Johannes Berg wrote:
> When Luis added the static regdomains back he used +/-20
> of the centre frequencies to account for 40MHz bandwidth
> neglecting the fact that 40MHz bandwidth cannot be used
> on the channels close to the allowed band edges.
Good catch, not sure exactly where this applies but since
the static stuff will die soon sure, its better to be safe.
Luis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-15 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-15 8:30 [PATCH] cfg80211: fix static regdomains Johannes Berg
2008-09-15 17:01 ` Luis R. Rodriguez
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).