ath9k: fix rate handling/reporting
authorFelix Fietkau <nbd@openwrt.org>
Fri, 17 May 2013 10:58:25 +0000 (12:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 May 2013 18:31:08 +0000 (14:31 -0400)
commit0c585dda3574e40f562c362eaa326a98b1e49d02
tree42683f5e869fbfecf00542df65f78aa2842bf666
parent16e23428024e4dc6b5ba5f6d36c57c49d33fe85b
ath9k: fix rate handling/reporting

This patch fixes some issues introduced in the rate control API rework.
When not running aggregation, copy bf->rates into info->control.rates
before applying the rate control status to it.
In ath_lookup_rate, the rates need to be pulled from bf->rates, not the
tx info.

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