diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-08-28 13:33:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:24:13 -0400 |
commit | 18c8adeb0244f823ba78a51e23f813fe68bc3c54 (patch) | |
tree | 1b294669d04c207d8e90b5807780fe4eb81778d9 /drivers/net/wireless/b43/xmit.c | |
parent | ef1a628d83fc0423c36e773281162be790503168 (diff) |
b43: Rewrite TX power adjustment
This patch rewrites the TX power recalculation algorithms to scale better
with changed enviromnent. If there's low
TX traffic, the power will be checked against the desired values
every 60 seconds.
If there is high TX traffic, the check is redone every 2 seconds. This improves
the reaction times a lot and confuses the rate control less.
It will also reduce the time it initially takes to tune to a new TX power
value. With the old algorithm it could take about 30 to 45 seconds to settle to
a new power value. This will happen in about two to four seconds now.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/xmit.c')
-rw-r--r-- | drivers/net/wireless/b43/xmit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c index c8a831234e4a..5e0b71c3ad02 100644 --- a/drivers/net/wireless/b43/xmit.c +++ b/drivers/net/wireless/b43/xmit.c | |||
@@ -680,6 +680,8 @@ void b43_handle_txstatus(struct b43_wldev *dev, | |||
680 | b43_pio_handle_txstatus(dev, status); | 680 | b43_pio_handle_txstatus(dev, status); |
681 | else | 681 | else |
682 | b43_dma_handle_txstatus(dev, status); | 682 | b43_dma_handle_txstatus(dev, status); |
683 | |||
684 | b43_phy_txpower_check(dev, 0); | ||
683 | } | 685 | } |
684 | 686 | ||
685 | /* Fill out the mac80211 TXstatus report based on the b43-specific | 687 | /* Fill out the mac80211 TXstatus report based on the b43-specific |