aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/main.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-11-10 05:27:20 -0500
committerLuciano Coelho <luciano.coelho@nokia.com>2010-11-22 09:45:12 -0500
commitfa97f46b30357a50f3ee193e6f82864f95bc55ec (patch)
tree12ac76f119247d11ed7af3c805b998da37ae1080 /drivers/net/wireless/wl12xx/main.c
parentb7417d930afdc214daa24299912d984e7f4f390a (diff)
Revert "wl1271: Change supported channel order for a more optimal scan"
This reverts commit fa21c7a9e4be439e217fe72edbd39b643b643791. The reverted patch caused more harm than benefit. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Tested-by: Tuomas Katila <ext-tuomas.2.katila@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r--drivers/net/wireless/wl12xx/main.c86
1 files changed, 40 insertions, 46 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 07243282e50a..6af270d382bb 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -2215,24 +2215,21 @@ static struct ieee80211_rate wl1271_rates[] = {
2215 .hw_value_short = CONF_HW_BIT_RATE_54MBPS, }, 2215 .hw_value_short = CONF_HW_BIT_RATE_54MBPS, },
2216}; 2216};
2217 2217
2218/* 2218/* can't be const, mac80211 writes to this */
2219 * Can't be const, mac80211 writes to this. The order of the channels here
2220 * is designed to improve scanning.
2221 */
2222static struct ieee80211_channel wl1271_channels[] = { 2219static struct ieee80211_channel wl1271_channels[] = {
2223 { .hw_value = 1, .center_freq = 2412, .max_power = 25 }, 2220 { .hw_value = 1, .center_freq = 2412, .max_power = 25 },
2224 { .hw_value = 5, .center_freq = 2432, .max_power = 25 },
2225 { .hw_value = 9, .center_freq = 2452, .max_power = 25 },
2226 { .hw_value = 13, .center_freq = 2472, .max_power = 25 },
2227 { .hw_value = 4, .center_freq = 2427, .max_power = 25 },
2228 { .hw_value = 8, .center_freq = 2447, .max_power = 25 },
2229 { .hw_value = 12, .center_freq = 2467, .max_power = 25 },
2230 { .hw_value = 3, .center_freq = 2422, .max_power = 25 },
2231 { .hw_value = 7, .center_freq = 2442, .max_power = 25 },
2232 { .hw_value = 11, .center_freq = 2462, .max_power = 25 },
2233 { .hw_value = 2, .center_freq = 2417, .max_power = 25 }, 2221 { .hw_value = 2, .center_freq = 2417, .max_power = 25 },
2222 { .hw_value = 3, .center_freq = 2422, .max_power = 25 },
2223 { .hw_value = 4, .center_freq = 2427, .max_power = 25 },
2224 { .hw_value = 5, .center_freq = 2432, .max_power = 25 },
2234 { .hw_value = 6, .center_freq = 2437, .max_power = 25 }, 2225 { .hw_value = 6, .center_freq = 2437, .max_power = 25 },
2226 { .hw_value = 7, .center_freq = 2442, .max_power = 25 },
2227 { .hw_value = 8, .center_freq = 2447, .max_power = 25 },
2228 { .hw_value = 9, .center_freq = 2452, .max_power = 25 },
2235 { .hw_value = 10, .center_freq = 2457, .max_power = 25 }, 2229 { .hw_value = 10, .center_freq = 2457, .max_power = 25 },
2230 { .hw_value = 11, .center_freq = 2462, .max_power = 25 },
2231 { .hw_value = 12, .center_freq = 2467, .max_power = 25 },
2232 { .hw_value = 13, .center_freq = 2472, .max_power = 25 },
2236}; 2233};
2237 2234
2238/* mapping to indexes for wl1271_rates */ 2235/* mapping to indexes for wl1271_rates */
@@ -2323,52 +2320,49 @@ static struct ieee80211_rate wl1271_rates_5ghz[] = {
2323 .hw_value_short = CONF_HW_BIT_RATE_54MBPS, }, 2320 .hw_value_short = CONF_HW_BIT_RATE_54MBPS, },
2324}; 2321};
2325 2322
2326/* 2323/* 5 GHz band channels for WL1273 */
2327 * 5 GHz band channels for WL1273 - can't be const, mac80211 writes to this.
2328 * The order of the channels here is designed to improve scanning.
2329 */
2330static struct ieee80211_channel wl1271_channels_5ghz[] = { 2324static struct ieee80211_channel wl1271_channels_5ghz[] = {
2331 { .hw_value = 183, .center_freq = 4915}, 2325 { .hw_value = 183, .center_freq = 4915},
2332 { .hw_value = 188, .center_freq = 4940},
2333 { .hw_value = 8, .center_freq = 5040},
2334 { .hw_value = 34, .center_freq = 5170},
2335 { .hw_value = 44, .center_freq = 5220},
2336 { .hw_value = 60, .center_freq = 5300},
2337 { .hw_value = 112, .center_freq = 5560},
2338 { .hw_value = 132, .center_freq = 5660},
2339 { .hw_value = 157, .center_freq = 5785},
2340 { .hw_value = 184, .center_freq = 4920}, 2326 { .hw_value = 184, .center_freq = 4920},
2327 { .hw_value = 185, .center_freq = 4925},
2328 { .hw_value = 187, .center_freq = 4935},
2329 { .hw_value = 188, .center_freq = 4940},
2341 { .hw_value = 189, .center_freq = 4945}, 2330 { .hw_value = 189, .center_freq = 4945},
2342 { .hw_value = 9, .center_freq = 5045},
2343 { .hw_value = 36, .center_freq = 5180},
2344 { .hw_value = 46, .center_freq = 5230},
2345 { .hw_value = 64, .center_freq = 5320},
2346 { .hw_value = 116, .center_freq = 5580},
2347 { .hw_value = 136, .center_freq = 5680},
2348 { .hw_value = 192, .center_freq = 4960}, 2331 { .hw_value = 192, .center_freq = 4960},
2349 { .hw_value = 11, .center_freq = 5055},
2350 { .hw_value = 38, .center_freq = 5190},
2351 { .hw_value = 48, .center_freq = 5240},
2352 { .hw_value = 100, .center_freq = 5500},
2353 { .hw_value = 120, .center_freq = 5600},
2354 { .hw_value = 140, .center_freq = 5700},
2355 { .hw_value = 185, .center_freq = 4925},
2356 { .hw_value = 196, .center_freq = 4980}, 2332 { .hw_value = 196, .center_freq = 4980},
2357 { .hw_value = 12, .center_freq = 5060},
2358 { .hw_value = 40, .center_freq = 5200},
2359 { .hw_value = 52, .center_freq = 5260},
2360 { .hw_value = 104, .center_freq = 5520},
2361 { .hw_value = 124, .center_freq = 5620},
2362 { .hw_value = 149, .center_freq = 5745},
2363 { .hw_value = 161, .center_freq = 5805},
2364 { .hw_value = 187, .center_freq = 4935},
2365 { .hw_value = 7, .center_freq = 5035}, 2333 { .hw_value = 7, .center_freq = 5035},
2334 { .hw_value = 8, .center_freq = 5040},
2335 { .hw_value = 9, .center_freq = 5045},
2336 { .hw_value = 11, .center_freq = 5055},
2337 { .hw_value = 12, .center_freq = 5060},
2366 { .hw_value = 16, .center_freq = 5080}, 2338 { .hw_value = 16, .center_freq = 5080},
2339 { .hw_value = 34, .center_freq = 5170},
2340 { .hw_value = 36, .center_freq = 5180},
2341 { .hw_value = 38, .center_freq = 5190},
2342 { .hw_value = 40, .center_freq = 5200},
2367 { .hw_value = 42, .center_freq = 5210}, 2343 { .hw_value = 42, .center_freq = 5210},
2344 { .hw_value = 44, .center_freq = 5220},
2345 { .hw_value = 46, .center_freq = 5230},
2346 { .hw_value = 48, .center_freq = 5240},
2347 { .hw_value = 52, .center_freq = 5260},
2368 { .hw_value = 56, .center_freq = 5280}, 2348 { .hw_value = 56, .center_freq = 5280},
2349 { .hw_value = 60, .center_freq = 5300},
2350 { .hw_value = 64, .center_freq = 5320},
2351 { .hw_value = 100, .center_freq = 5500},
2352 { .hw_value = 104, .center_freq = 5520},
2369 { .hw_value = 108, .center_freq = 5540}, 2353 { .hw_value = 108, .center_freq = 5540},
2354 { .hw_value = 112, .center_freq = 5560},
2355 { .hw_value = 116, .center_freq = 5580},
2356 { .hw_value = 120, .center_freq = 5600},
2357 { .hw_value = 124, .center_freq = 5620},
2370 { .hw_value = 128, .center_freq = 5640}, 2358 { .hw_value = 128, .center_freq = 5640},
2359 { .hw_value = 132, .center_freq = 5660},
2360 { .hw_value = 136, .center_freq = 5680},
2361 { .hw_value = 140, .center_freq = 5700},
2362 { .hw_value = 149, .center_freq = 5745},
2371 { .hw_value = 153, .center_freq = 5765}, 2363 { .hw_value = 153, .center_freq = 5765},
2364 { .hw_value = 157, .center_freq = 5785},
2365 { .hw_value = 161, .center_freq = 5805},
2372 { .hw_value = 165, .center_freq = 5825}, 2366 { .hw_value = 165, .center_freq = 5825},
2373}; 2367};
2374 2368