ath10k: Fix the tx stats bytes & packets parsing
authorBrandon Huang <yanghuan@codeaurora.org>
Tue, 12 Mar 2019 04:33:39 +0000 (12:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 May 2019 13:42:44 +0000 (16:42 +0300)
commit9e0b341a3d664eb95df2f56d180ee9d96786f860
treeb76086d1cef76f81efe7d44ea7d5a5b4a176021f
parent889ab61d9dc1042c6707582da1c95b6dae5632ee
ath10k: Fix the tx stats bytes & packets parsing

In tx_stats debugfs, txrate->flags may contain multiple bits. For
example, RATE_INFO_FLAGS_SHORT_GI could be set, and tx stats bytes
and packets will be not updated correctly.

Fix this issue by using bit operation to check txrate->flags.

Tested HW: QCA9984
Tested Firmware: 10.4-3.9.0.1-00007

Signed-off-by: Brandon Huang <yanghuan@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/htt_rx.c