ath9k: fix two more bugs in tx power
authorDaniel Halperin <dhalperi@cs.washington.edu>
Tue, 31 May 2011 18:59:30 +0000 (11:59 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Jun 2011 18:35:54 +0000 (14:35 -0400)
commit21fdc87248d1d28492c775e05fa92b3c8c7bc8db
treecd0f69b7a496b866d2a67cfcf12305b1e5060abc
parent333ba7325213f0a09dfa5ceeddb056d6ad74b3b5
ath9k: fix two more bugs in tx power

This is the same fix as

   commit 841051602e3fa18ea468fe5a177aa92b6eb44b56
   Author: Matteo Croce <technoboy85@gmail.com>
   Date:   Fri Dec 3 02:25:08 2010 +0100

   The ath9k driver subtracts 3 dBm to the txpower as with two radios the
   signal power is doubled.
   The resulting value is assigned in an u16 which overflows and makes
   the card work at full power.

in two more places. I grepped the ath tree and didn't find any others.

Cc: stable@kernel.org
Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c