]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita825712375442f01ca49a0167d06f04bfdffca71
treecd0f69b7a496b866d2a67cfcf12305b1e5060abc
parent58f84df41a79313a65f046821ea035435c4a9233
ath9k: fix two more bugs in tx power

This is the same fix as

   commit c40f67ee1a7f823ecc7fd43012f316b4f99335a6
   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