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)
commite67dd874e60529dbd2e8232babb1e23479ba2ffa
tree0b3e74c7265f19956c8274e34c71307e5f2b8380
parentc4ff9486c0474c3c26570ba6dbf9a34ae9aa380c
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:
e0c9a0219a8f542e3946fe972a68aacf8c3f906c
(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