diff options
author | Nick Kossifidis <[email protected]> | 2012-08-05 22:35:34 +0300 |
---|---|---|
committer | John W. Linville <[email protected]> | 2012-08-10 15:26:55 -0400 |
commit | 755051993bfcdf07acd84a7ffd08d463b85bfd69 (patch) | |
tree | bb8a60d17d317516b8f266947ac9494c9c0ad1ee /lib/string_helpers.c | |
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions