diff options
author | Michael Buesch <mbuesch@freenet.de> | 2006-02-05 09:28:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:18:30 -0500 |
commit | 393344f67b598aaed594b9006e9eaa44ab62caa0 (patch) | |
tree | 1662df544434f228eb2d728d2a0c43722a4bff11 /drivers/net/wireless/bcm43xx/bcm43xx_phy.c | |
parent | 67093a65c08dc45374f642b1ec1b86e7095a4dc8 (diff) |
[PATCH] bcm43xx: fix txpower reporting in WE.
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_phy.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c index d90f207b2473..d3c2fc1df375 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c | |||
@@ -1768,14 +1768,9 @@ void bcm43xx_phy_xmitpower(struct bcm43xx_private *bcm) | |||
1768 | where REG is the max power as per the regulatory domain | 1768 | where REG is the max power as per the regulatory domain |
1769 | */ | 1769 | */ |
1770 | 1770 | ||
1771 | /*TODO: Get desired_pwr from wx_handlers or the stack | 1771 | desired_pwr = limit_value(radio->txpower_desired, 0, max_pwr); |
1772 | limit_value(desired_pwr, 0, max_pwr); | 1772 | /* Check if we need to adjust the current power. */ |
1773 | */ | ||
1774 | |||
1775 | desired_pwr = max_pwr; /* remove this when we have a real desired_pwr */ | ||
1776 | |||
1777 | pwr_adjust = desired_pwr - estimated_pwr; | 1773 | pwr_adjust = desired_pwr - estimated_pwr; |
1778 | |||
1779 | radio_att_delta = -(pwr_adjust + 7) >> 3; | 1774 | radio_att_delta = -(pwr_adjust + 7) >> 3; |
1780 | baseband_att_delta = -(pwr_adjust >> 1) - (4 * radio_att_delta); | 1775 | baseband_att_delta = -(pwr_adjust >> 1) - (4 * radio_att_delta); |
1781 | if ((radio_att_delta == 0) && (baseband_att_delta == 0)) { | 1776 | if ((radio_att_delta == 0) && (baseband_att_delta == 0)) { |