ath9k: fix retry chain initialization in tx99 code
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Sun, 24 Nov 2013 16:56:51 +0000 (17:56 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:56:28 +0000 (14:56 -0500)
commitfc70ff7207a42e3d1f3d76317fe5e3169391dc47
tree61a24f14f99dbfc6f0adfd896b67baa2c6952ad9
parent42bc702e76fc459dfb3f2fb50c99bd7f680eb2b4
ath9k: fix retry chain initialization in tx99 code

Initialize first chain attempt counter to 1 in ath9k_build_tx99_skb().
Otherwise multi-retry chain is initialized to {idx,count} = {-1, 0} in
rate_control_fill_sta_table() and tx99 transmission rate is not configured in
rate_control_apply_mask() since first chain idx is set to -1

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/tx99.c