From: Gabor Juhos Date: Wed, 18 Apr 2012 20:23:38 +0000 (+0200) Subject: ath9k: fix TX power reporting on AR9003 chips X-Git-Tag: v3.5-rc1~109^2~267^2^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75acd5a82afda30fb615335ff6c8e5f3a1ca5e83;p=pandora-kernel.git ath9k: fix TX power reporting on AR9003 chips The current code unconditionally reads the target power values for all modes from the EEPROM. However In 'ar9003_hw_set_power_per_rate_table' the regulatory caps are applied only on a mode specific subset of the power values. The reported TX power level is calculated from the maximum of the power values. Because some of these values are uncapped in certain cases, the reported TX power will be wrong. On the older chipset, we don't have such problems because only the mode specific subset of the power levels are retrieved from the EEPROM on those. Do the same for the AR9003 chips to fix the issue. Signed-off-by: Gabor Juhos Acked-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed