ath9k: fix a tx rate duration calculation bug
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jun 2012 01:04:52 +0000 (03:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Jun 2012 18:56:24 +0000 (14:56 -0400)
commit76591bea9714a58d8924154068c78d702eb2cb17
treea86298c07fb07dd53aaf4147a282cc2b06495c1a
parentbcb7ad7bcbef030e6ba71ede1f9866368aca7c99
ath9k: fix a tx rate duration calculation bug

The rate pointer variable for a rate series is used in a loop before it is
initialized. This went unnoticed because it was used earlier for the RTS/CTS
rate. This bug can lead to the wrong PHY type being passed to the
duration calculation function.

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/xmit.c