diff options
author | Kevin Lo <kevlo@kevlo.org> | 2013-10-13 22:05:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-14 13:39:59 -0400 |
commit | b6b561c31d51db3dec0cb55412a5d7a1a2397521 (patch) | |
tree | 7e6628fc0740d32acbd57d80694dd076deaabe87 /drivers | |
parent | 7122e660027f806c2d01b3db6e322aff98183e75 (diff) |
rt2x00: rt2800lib: remove duplicate rf_vals for RF3053
lready have rf_vals_3x with same values. Hence rf_vals_3053 is removed
in this patch.
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 75 |
1 files changed, 3 insertions, 72 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index cd99b1560810..aa8789423937 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -7246,7 +7246,7 @@ static const struct rf_channel rf_vals[] = { | |||
7246 | 7246 | ||
7247 | /* | 7247 | /* |
7248 | * RF value list for rt3xxx | 7248 | * RF value list for rt3xxx |
7249 | * Supports: 2.4 GHz (all) & 5.2 GHz (RF3052) | 7249 | * Supports: 2.4 GHz (all) & 5.2 GHz (RF3052 & RF3053) |
7250 | */ | 7250 | */ |
7251 | static const struct rf_channel rf_vals_3x[] = { | 7251 | static const struct rf_channel rf_vals_3x[] = { |
7252 | {1, 241, 2, 2 }, | 7252 | {1, 241, 2, 2 }, |
@@ -7442,72 +7442,6 @@ static const struct rf_channel rf_vals_5592_xtal40[] = { | |||
7442 | {196, 83, 0, 12, 1}, | 7442 | {196, 83, 0, 12, 1}, |
7443 | }; | 7443 | }; |
7444 | 7444 | ||
7445 | static const struct rf_channel rf_vals_3053[] = { | ||
7446 | /* Channel, N, R, K */ | ||
7447 | {1, 241, 2, 2}, | ||
7448 | {2, 241, 2, 7}, | ||
7449 | {3, 242, 2, 2}, | ||
7450 | {4, 242, 2, 7}, | ||
7451 | {5, 243, 2, 2}, | ||
7452 | {6, 243, 2, 7}, | ||
7453 | {7, 244, 2, 2}, | ||
7454 | {8, 244, 2, 7}, | ||
7455 | {9, 245, 2, 2}, | ||
7456 | {10, 245, 2, 7}, | ||
7457 | {11, 246, 2, 2}, | ||
7458 | {12, 246, 2, 7}, | ||
7459 | {13, 247, 2, 2}, | ||
7460 | {14, 248, 2, 4}, | ||
7461 | |||
7462 | {36, 0x56, 0, 4}, | ||
7463 | {38, 0x56, 0, 6}, | ||
7464 | {40, 0x56, 0, 8}, | ||
7465 | {44, 0x57, 0, 0}, | ||
7466 | {46, 0x57, 0, 2}, | ||
7467 | {48, 0x57, 0, 4}, | ||
7468 | {52, 0x57, 0, 8}, | ||
7469 | {54, 0x57, 0, 10}, | ||
7470 | {56, 0x58, 0, 0}, | ||
7471 | {60, 0x58, 0, 4}, | ||
7472 | {62, 0x58, 0, 6}, | ||
7473 | {64, 0x58, 0, 8}, | ||
7474 | |||
7475 | {100, 0x5B, 0, 8}, | ||
7476 | {102, 0x5B, 0, 10}, | ||
7477 | {104, 0x5C, 0, 0}, | ||
7478 | {108, 0x5C, 0, 4}, | ||
7479 | {110, 0x5C, 0, 6}, | ||
7480 | {112, 0x5C, 0, 8}, | ||
7481 | |||
7482 | /* NOTE: Channel 114 has been removed intentionally. | ||
7483 | * The EEPROM contains no TX power values for that, | ||
7484 | * and it is disabled in the vendor driver as well. | ||
7485 | */ | ||
7486 | |||
7487 | {116, 0x5D, 0, 0}, | ||
7488 | {118, 0x5D, 0, 2}, | ||
7489 | {120, 0x5D, 0, 4}, | ||
7490 | {124, 0x5D, 0, 8}, | ||
7491 | {126, 0x5D, 0, 10}, | ||
7492 | {128, 0x5E, 0, 0}, | ||
7493 | {132, 0x5E, 0, 4}, | ||
7494 | {134, 0x5E, 0, 6}, | ||
7495 | {136, 0x5E, 0, 8}, | ||
7496 | {140, 0x5F, 0, 0}, | ||
7497 | |||
7498 | {149, 0x5F, 0, 9}, | ||
7499 | {151, 0x5F, 0, 11}, | ||
7500 | {153, 0x60, 0, 1}, | ||
7501 | {157, 0x60, 0, 5}, | ||
7502 | {159, 0x60, 0, 7}, | ||
7503 | {161, 0x60, 0, 9}, | ||
7504 | {165, 0x61, 0, 1}, | ||
7505 | {167, 0x61, 0, 3}, | ||
7506 | {169, 0x61, 0, 5}, | ||
7507 | {171, 0x61, 0, 7}, | ||
7508 | {173, 0x61, 0, 9}, | ||
7509 | }; | ||
7510 | |||
7511 | static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | 7445 | static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) |
7512 | { | 7446 | { |
7513 | struct hw_mode_spec *spec = &rt2x00dev->spec; | 7447 | struct hw_mode_spec *spec = &rt2x00dev->spec; |
@@ -7597,14 +7531,11 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) | |||
7597 | rt2x00_rf(rt2x00dev, RF5392)) { | 7531 | rt2x00_rf(rt2x00dev, RF5392)) { |
7598 | spec->num_channels = 14; | 7532 | spec->num_channels = 14; |
7599 | spec->channels = rf_vals_3x; | 7533 | spec->channels = rf_vals_3x; |
7600 | } else if (rt2x00_rf(rt2x00dev, RF3052)) { | 7534 | } else if (rt2x00_rf(rt2x00dev, RF3052) || |
7535 | rt2x00_rf(rt2x00dev, RF3053)) { | ||
7601 | spec->supported_bands |= SUPPORT_BAND_5GHZ; | 7536 | spec->supported_bands |= SUPPORT_BAND_5GHZ; |
7602 | spec->num_channels = ARRAY_SIZE(rf_vals_3x); | 7537 | spec->num_channels = ARRAY_SIZE(rf_vals_3x); |
7603 | spec->channels = rf_vals_3x; | 7538 | spec->channels = rf_vals_3x; |
7604 | } else if (rt2x00_rf(rt2x00dev, RF3053)) { | ||
7605 | spec->supported_bands |= SUPPORT_BAND_5GHZ; | ||
7606 | spec->num_channels = ARRAY_SIZE(rf_vals_3053); | ||
7607 | spec->channels = rf_vals_3053; | ||
7608 | } else if (rt2x00_rf(rt2x00dev, RF5592)) { | 7539 | } else if (rt2x00_rf(rt2x00dev, RF5592)) { |
7609 | spec->supported_bands |= SUPPORT_BAND_5GHZ; | 7540 | spec->supported_bands |= SUPPORT_BAND_5GHZ; |
7610 | 7541 | ||