]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/net/wireless/b43/main.h
b43: Rewrite LO calibration algorithm
authorMichael Buesch <mb@bu3sch.de>
Sun, 20 Apr 2008 14:03:32 +0000 (16:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 May 2008 19:02:12 +0000 (15:02 -0400)
commitf5eda47f45e90dfa38e25d569b9ac84ba94f8301
tree5f806ae4729696cebef0bef0c261c6353b18045a
parent2afc49015db927fea7bc6ca33c0a60bf5d7c2c5f
b43: Rewrite LO calibration algorithm

This patch distributes the Local Oscillator calibration bursts over time,
so that calibration only happens when it's actually needed.
Currently we periodically perform a recalibration of the whole table.
The table is huge and this takes lots of time. Additionally only small bits
of the table are actually needed at a given time. So instead of maintaining
a huge table with all possible calibration values, we create dynamic calibration
settings that
a) We only calibrate when they are actually needed.
b) Are cached for some time until they expire.
So a recalibration might happen if we need a calibration setting that's not
cached, or if the active calibration setting expires.
Currently the expire timeout is set to 30 seconds. We may raise that in future.

This patch reduces overall memory consumption by nuking the
huge static calibration tables.

This patch has been tested on several 4306, 4311 and 4318 flavours.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/debugfs.c
drivers/net/wireless/b43/debugfs.h
drivers/net/wireless/b43/lo.c
drivers/net/wireless/b43/lo.h
drivers/net/wireless/b43/main.c
drivers/net/wireless/b43/main.h
drivers/net/wireless/b43/phy.c
drivers/net/wireless/b43/phy.h