diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-15 04:30:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-24 16:17:58 -0400 |
commit | 762af43bda3d8281a2738d3920ae5ded170aaf39 (patch) | |
tree | 0a3cc0e32dde2e64c47209a008afa4d2db5c7033 /net/wireless | |
parent | 9930ccee16addda9fa7d9af00cd03cd5a10c8965 (diff) |
cfg80211: fix static regdomains
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/core.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index a910cd2d0fd1..59e4d7debf02 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -41,7 +41,7 @@ const struct ieee80211_regdomain world_regdom = { | |||
41 | .n_reg_rules = 1, | 41 | .n_reg_rules = 1, |
42 | .alpha2 = "00", | 42 | .alpha2 = "00", |
43 | .reg_rules = { | 43 | .reg_rules = { |
44 | REG_RULE(2402, 2472, 40, 6, 20, | 44 | REG_RULE(2412-10, 2462+10, 40, 6, 20, |
45 | NL80211_RRF_PASSIVE_SCAN | | 45 | NL80211_RRF_PASSIVE_SCAN | |
46 | NL80211_RRF_NO_IBSS), | 46 | NL80211_RRF_NO_IBSS), |
47 | } | 47 | } |
@@ -64,17 +64,17 @@ const struct ieee80211_regdomain us_regdom = { | |||
64 | .alpha2 = "US", | 64 | .alpha2 = "US", |
65 | .reg_rules = { | 65 | .reg_rules = { |
66 | /* IEEE 802.11b/g, channels 1..11 */ | 66 | /* IEEE 802.11b/g, channels 1..11 */ |
67 | REG_RULE(2412-20, 2462+20, 40, 6, 27, 0), | 67 | REG_RULE(2412-10, 2462+10, 40, 6, 27, 0), |
68 | /* IEEE 802.11a, channel 36 */ | 68 | /* IEEE 802.11a, channel 36 */ |
69 | REG_RULE(5180-20, 5180+20, 40, 6, 23, 0), | 69 | REG_RULE(5180-10, 5180+10, 40, 6, 23, 0), |
70 | /* IEEE 802.11a, channel 40 */ | 70 | /* IEEE 802.11a, channel 40 */ |
71 | REG_RULE(5200-20, 5200+20, 40, 6, 23, 0), | 71 | REG_RULE(5200-10, 5200+10, 40, 6, 23, 0), |
72 | /* IEEE 802.11a, channel 44 */ | 72 | /* IEEE 802.11a, channel 44 */ |
73 | REG_RULE(5220-20, 5220+20, 40, 6, 23, 0), | 73 | REG_RULE(5220-10, 5220+10, 40, 6, 23, 0), |
74 | /* IEEE 802.11a, channels 48..64 */ | 74 | /* IEEE 802.11a, channels 48..64 */ |
75 | REG_RULE(5240-20, 5320+20, 40, 6, 23, 0), | 75 | REG_RULE(5240-10, 5320+10, 40, 6, 23, 0), |
76 | /* IEEE 802.11a, channels 149..165, outdoor */ | 76 | /* IEEE 802.11a, channels 149..165, outdoor */ |
77 | REG_RULE(5745-20, 5825+20, 40, 6, 30, 0), | 77 | REG_RULE(5745-10, 5825+10, 40, 6, 30, 0), |
78 | } | 78 | } |
79 | }; | 79 | }; |
80 | 80 | ||
@@ -83,12 +83,12 @@ const struct ieee80211_regdomain jp_regdom = { | |||
83 | .alpha2 = "JP", | 83 | .alpha2 = "JP", |
84 | .reg_rules = { | 84 | .reg_rules = { |
85 | /* IEEE 802.11b/g, channels 1..14 */ | 85 | /* IEEE 802.11b/g, channels 1..14 */ |
86 | REG_RULE(2412-20, 2484+20, 40, 6, 20, 0), | 86 | REG_RULE(2412-10, 2484+10, 40, 6, 20, 0), |
87 | /* IEEE 802.11a, channels 34..48 */ | 87 | /* IEEE 802.11a, channels 34..48 */ |
88 | REG_RULE(5170-20, 5240+20, 40, 6, 20, | 88 | REG_RULE(5170-10, 5240+10, 40, 6, 20, |
89 | NL80211_RRF_PASSIVE_SCAN), | 89 | NL80211_RRF_PASSIVE_SCAN), |
90 | /* IEEE 802.11a, channels 52..64 */ | 90 | /* IEEE 802.11a, channels 52..64 */ |
91 | REG_RULE(5260-20, 5320+20, 40, 6, 20, | 91 | REG_RULE(5260-10, 5320+10, 40, 6, 20, |
92 | NL80211_RRF_NO_IBSS | | 92 | NL80211_RRF_NO_IBSS | |
93 | NL80211_RRF_DFS), | 93 | NL80211_RRF_DFS), |
94 | } | 94 | } |
@@ -101,22 +101,22 @@ const struct ieee80211_regdomain eu_regdom = { | |||
101 | .alpha2 = "EU", | 101 | .alpha2 = "EU", |
102 | .reg_rules = { | 102 | .reg_rules = { |
103 | /* IEEE 802.11b/g, channels 1..13 */ | 103 | /* IEEE 802.11b/g, channels 1..13 */ |
104 | REG_RULE(2412-20, 2472+20, 40, 6, 20, 0), | 104 | REG_RULE(2412-10, 2472+10, 40, 6, 20, 0), |
105 | /* IEEE 802.11a, channel 36 */ | 105 | /* IEEE 802.11a, channel 36 */ |
106 | REG_RULE(5180-20, 5180+20, 40, 6, 23, | 106 | REG_RULE(5180-10, 5180+10, 40, 6, 23, |
107 | NL80211_RRF_PASSIVE_SCAN), | 107 | NL80211_RRF_PASSIVE_SCAN), |
108 | /* IEEE 802.11a, channel 40 */ | 108 | /* IEEE 802.11a, channel 40 */ |
109 | REG_RULE(5200-20, 5200+20, 40, 6, 23, | 109 | REG_RULE(5200-10, 5200+10, 40, 6, 23, |
110 | NL80211_RRF_PASSIVE_SCAN), | 110 | NL80211_RRF_PASSIVE_SCAN), |
111 | /* IEEE 802.11a, channel 44 */ | 111 | /* IEEE 802.11a, channel 44 */ |
112 | REG_RULE(5220-20, 5220+20, 40, 6, 23, | 112 | REG_RULE(5220-10, 5220+10, 40, 6, 23, |
113 | NL80211_RRF_PASSIVE_SCAN), | 113 | NL80211_RRF_PASSIVE_SCAN), |
114 | /* IEEE 802.11a, channels 48..64 */ | 114 | /* IEEE 802.11a, channels 48..64 */ |
115 | REG_RULE(5240-20, 5320+20, 40, 6, 20, | 115 | REG_RULE(5240-10, 5320+10, 40, 6, 20, |
116 | NL80211_RRF_NO_IBSS | | 116 | NL80211_RRF_NO_IBSS | |
117 | NL80211_RRF_DFS), | 117 | NL80211_RRF_DFS), |
118 | /* IEEE 802.11a, channels 100..140 */ | 118 | /* IEEE 802.11a, channels 100..140 */ |
119 | REG_RULE(5500-20, 5700+20, 40, 6, 30, | 119 | REG_RULE(5500-10, 5700+10, 40, 6, 30, |
120 | NL80211_RRF_NO_IBSS | | 120 | NL80211_RRF_NO_IBSS | |
121 | NL80211_RRF_DFS), | 121 | NL80211_RRF_DFS), |
122 | } | 122 | } |