diff options
author | Michael Buesch <mbuesch@freenet.de> | 2006-02-19 16:08:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:18:37 -0500 |
commit | 10d8dd88dcc2c8ebe8ac7dcf75a2da7c9f9ee0f3 (patch) | |
tree | 36a2d439a39f182ee80788fcec58ac3f7b6b7f55 /drivers/net/wireless/bcm43xx/bcm43xx_main.c | |
parent | ad3f086c49aa682e493c935cda76f3850ee4a80e (diff) |
[PATCH] bcm43xx: split the channel helper functions, so that they can be used without a valid running core.
Signed-off-by: Michael Buesch <mbuesch@freenet.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_main.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index b4767e42e8f4..6195c2a1516d 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -1169,7 +1169,7 @@ static void bcm43xx_geo_init(struct bcm43xx_private *bcm) | |||
1169 | if (have_a) { | 1169 | if (have_a) { |
1170 | for (i = 0, channel = 0; channel < 201; channel++) { | 1170 | for (i = 0, channel = 0; channel < 201; channel++) { |
1171 | chan = &geo.a[i++]; | 1171 | chan = &geo.a[i++]; |
1172 | chan->freq = bcm43xx_channel_to_freq(bcm, channel); | 1172 | chan->freq = bcm43xx_channel_to_freq_a(channel); |
1173 | chan->channel = channel; | 1173 | chan->channel = channel; |
1174 | } | 1174 | } |
1175 | geo.a_channels = i; | 1175 | geo.a_channels = i; |
@@ -1177,7 +1177,7 @@ static void bcm43xx_geo_init(struct bcm43xx_private *bcm) | |||
1177 | if (have_bg) { | 1177 | if (have_bg) { |
1178 | for (i = 0, channel = 1; channel < 15; channel++) { | 1178 | for (i = 0, channel = 1; channel < 15; channel++) { |
1179 | chan = &geo.bg[i++]; | 1179 | chan = &geo.bg[i++]; |
1180 | chan->freq = bcm43xx_channel_to_freq(bcm, channel); | 1180 | chan->freq = bcm43xx_channel_to_freq_bg(channel); |
1181 | chan->channel = channel; | 1181 | chan->channel = channel; |
1182 | } | 1182 | } |
1183 | geo.bg_channels = i; | 1183 | geo.bg_channels = i; |