ath9k_hw: fix an off-by-one error in the PDADC boundaries calculation
commit8e0e0465a8bb89e31cc5c3b8e68b65639ba84221
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Jul 2010 10:48:41 +0000 (11 12:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:54:10 +0000 (10 10:54 -0700)
tree5f5c088519f6f103e9d032a47d092df6399b73a2
parentdd6f960af291ac95a788afa13a4b919f0b8151b9
ath9k_hw: fix an off-by-one error in the PDADC boundaries calculation

commit 03b4776c408d2f4bf3a5d204e223724d154716d1 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/eeprom_def.c