OSDN Git Service

ath9k_hw: fix an off-by-one error in the PDADC boundaries calculation
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:41 +0000 (12:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jul 2010 20:05:38 +0000 (16:05 -0400)
commit03b4776c408d2f4bf3a5d204e223724d154716d1
tree6eeea11a36f4c094dea48c5f0cba651f14dafc30
parent23399016d9583d799ca98ce443a1410b13c3e96e
ath9k_hw: fix an off-by-one error in the PDADC boundaries calculation

PDADC values were only generated for values surrounding the target
index, however not for the target index itself, leading to a minor
error in the generated curve.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/eeprom_def.c