ath9k: fix bug in tx power
authorMatteo Croce <technoboy85@gmail.com>
Fri, 3 Dec 2010 01:25:08 +0000 (02:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Dec 2010 19:57:05 +0000 (14:57 -0500)
commit841051602e3fa18ea468fe5a177aa92b6eb44b56
tree0bedad5cdcfbb819fe284ddb408cac7e44c980ab
parentd89197c7f34934fbb0f96d938a0d6cfe0b8bcb1c
ath9k: fix bug in tx power

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.

Cc: stable@kernel.org
Signed-off-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom_def.c