]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2707a9e1da604ebf19ffc0c964af42f1d8bb680
tree42683f5e869fbfecf00542df65f78aa2842bf666
parent1b57b47a6183c7493f4df1930df7c68d4dabd909
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