rt2800: validate step value for temperature compensation
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 25 Oct 2012 07:51:39 +0000 (09:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Oct 2012 19:58:54 +0000 (15:58 -0400)
commitbf7e1abe434ba9e22e8dc04a4cba4ab504b788b8
tree4d982297534533c44b659dfffcfba147d854b0df
parent8c6e30936a7893a85f6222084f0f26aceb81137a
rt2800: validate step value for temperature compensation

Some hardware has correct (!= 0xff) value of tssi_bounds[4] in the
EEPROM, but step is equal to 0xff. This results on ridiculous delta
calculations and completely broke TX power settings.

Reported-and-tested-by: Pavel Lucik <pavel.lucik@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c