]> git.baikalelectronics.ru Git - kernel.git/commit
b43: N-PHY: increase initial value of "mind" in RSSI calibration
authorRafał Miłecki <zajec5@gmail.com>
Tue, 19 Mar 2013 06:52:48 +0000 (07:52 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Mar 2013 15:07:04 +0000 (11:07 -0400)
commit091aeb8fda9c2fae4a3d8b34f29ac08726e8d326
tree0b3e74c7265f19956c8274e34c71307e5f2b8380
parentb88288661ee24fff07fdee68b772b46cb77b00ba
b43: N-PHY: increase initial value of "mind" in RSSI calibration

We're using "mind" variable to find the VCM that got the best polling
results. For each VCM we calculte "currd" which is compared to the
"mind". For PHY rev3+ "currd" gets values around 14k-40k. Looking for a
value smaller than 40 makes no sense, so increase the initial value.

This fixes a regression introduced in 3.4 by commit:
bcb70b4f182ba599c64bb611dab7dc12261c842a
(my BCM4322 performance dropped from 18,4Mb/s to 9,26Mb/s)

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_n.c