]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k: fix bug in tx power
authorMatteo Croce <technoboy85@gmail.com>
Fri, 3 Dec 2010 01:25:08 +0000 (02:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:22 +0000 (13:58 -0800)
commitdf60374d301d5f31210de8342c32a13881d117c0
treecd955b1dcb766f73fdee9714fb3c462026b1fbf2
parent1be6baf90fee9d7c947af2a087faeb95924b99f6
ath9k: fix bug in tx power

commit 841051602e3fa18ea468fe5a177aa92b6eb44b56 upstream.

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.

Signed-off-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/eeprom_def.c