ath9k: Make sure to zero status.tx_time before reporting TX status
authorToke Høiland-Jørgensen <toke@redhat.com>
Fri, 15 Feb 2019 16:48:55 +0000 (17:48 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:07:28 +0000 (15:07 +0200)
commitcc591d77aba12ee69fedd12140b3dfa0816c178a
tree659781a1a821039510dc3b95deb8d8631b5fe134
parent15493239eacf4487f5744bf88a2f95b09d2a2453
ath9k: Make sure to zero status.tx_time before reporting TX status

Since ath9k reports airtime usage directly using the
ieee80211_report_airtime() callback, it shouldn't also report it using the
tx_time in status. Make sure the field is zeroed before TX status is
reported to avoid spurious airtime being accounted by bits being left over
from earlier uses of the cb.

Fixes: 89cea7493a34 ("ath9k: Switch to mac80211 TXQ scheduling and airtime APIs")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/xmit.c