From: Nick Kossifidis Date: Sun, 5 Aug 2012 19:35:34 +0000 (+0300) Subject: ath5k: Fix range scaling when setting rate power table X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~319^2^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755051993bfcdf07acd84a7ffd08d463b85bfd69;p=pandora-kernel.git ath5k: Fix range scaling when setting rate power table rates[i] is unsigned but txp_offset can be negative for newer parts with PDADC table. We cover the case when rates[i] + txp_offset > 63 but we must also cover the case when its < 0 or else rates[i] will overflow. Signed-off-by: Nick Kossifidis Signed-off-by: John W. Linville --- Reading git-diff-tree failed