commit | 755051993bfcdf07acd84a7ffd08d463b85bfd69 | [log] [tgz] |
---|---|---|
author | Nick Kossifidis <mickflemm@gmail.com> | Sun Aug 05 22:35:34 2012 +0300 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Aug 10 15:26:55 2012 -0400 |
tree | bb8a60d17d317516b8f266947ac9494c9c0ad1ee | |
parent | d12c5c53ce4c8c65c694d1103673182ef5afdc65 [diff] |
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 <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>