diff options
author | Michael Buesch <mbuesch@freenet.de> | 2006-03-19 18:01:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:19:42 -0500 |
commit | 6ecb26904c9db15ca964d60b9483f19dc51bda5b (patch) | |
tree | 933fd9814eac05e1975735517942dfd5c5b2e412 /drivers/net/wireless/bcm43xx/bcm43xx_main.c | |
parent | 0ac59daee5f7fbaab25784a643edede669b5419e (diff) |
[PATCH] bcm43xx: set default attenuation values.
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 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 12c93d274ae5..e680d2acc44b 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -560,12 +560,9 @@ static int bcm43xx_read_radioinfo(struct bcm43xx_private *bcm) | |||
560 | radio->revision = revision; | 560 | radio->revision = revision; |
561 | 561 | ||
562 | /* Set default attenuation values. */ | 562 | /* Set default attenuation values. */ |
563 | radio->txpower[0] = 2; | 563 | radio->baseband_atten = bcm43xx_default_baseband_attenuation(bcm); |
564 | radio->txpower[1] = 2; | 564 | radio->radio_atten = bcm43xx_default_radio_attenuation(bcm); |
565 | if (revision == 1) | 565 | radio->txctl1 = bcm43xx_default_txctl1(bcm); |
566 | radio->txpower[2] = 3; | ||
567 | else | ||
568 | radio->txpower[2] = 0; | ||
569 | if (phy->type == BCM43xx_PHYTYPE_A) | 566 | if (phy->type == BCM43xx_PHYTYPE_A) |
570 | radio->txpower_desired = bcm->sprom.maxpower_aphy; | 567 | radio->txpower_desired = bcm->sprom.maxpower_aphy; |
571 | else | 568 | else |