ath5k: Linear PCDAC code fixes
authorNick Kossifidis <mick@madwifi-project.org>
Mon, 10 Aug 2009 00:27:59 +0000 (03:27 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:56 +0000 (09:13 -0400)
commitd1cb0bdac180a4afdd3c001acb2618d2a62d9abe
treec27715544627c038bbf5f032a46a864342ab8394
parentc38e7a9348f725be0ea2493454db9e6d44fb7e0c
ath5k: Linear PCDAC code fixes

* Set correct xpd curve indices for high/low gain curves during
   rfbuffer setup on RF5112B with both calibration curves available.

 * Don't return zero min power when we have the same pcdac value
   twice because it breaks interpolation. Instead return the right
   x barrier as we do when we have equal power levels for 2 different
   pcdac values.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c