ath9k: fix a tx rate duration calculation bug
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jun 2012 01:04:52 +0000 (03:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:03 +0000 (09:04 -0700)
commit7664af6e949f3facf0e8071053627a8fa4aaff5a
treea486e08166303c9a28d4a5a86f382de6287ba02c
parente0d1c1de5638a4fffbc9d5d9f141c434531dc3b9
ath9k: fix a tx rate duration calculation bug

commit 76591bea9714a58d8924154068c78d702eb2cb17 upstream.

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