ath9k: Fix airtime calculation for quarter/half channels
authorWojciech Dubowik <Wojciech.Dubowik@neratec.com>
Tue, 20 Feb 2018 14:41:43 +0000 (15:41 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:47:23 +0000 (18:47 +0200)
commit91f1ee65d999a36241cb43bc820b1b59050bc79e
treeb66fda2b865f80a0d10f590aed02462eab84b8ef
parent2571c081cb43c156f63b735dfb952119775324f4
ath9k: Fix airtime calculation for quarter/half channels

The bitrate value for airtime calculation is specified for
full rates. We need to divide it for 5 and 10MHz channels to
get correct result.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/hw.c