]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix vdev stats for 10.4 firmware
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Wed, 28 Mar 2018 09:40:24 +0000 (12:40 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 29 Mar 2018 09:04:12 +0000 (12:04 +0300)
commit2d4ea1da1cc1a994a891267f99d05ef8ff6fe564
treedc54bae5829c94b714ae557162bcccc550db07c2
parentec9598ca381d39aa7f018da234790ef6c85af4e8
ath10k: fix vdev stats for 10.4 firmware

Currently vdev stats displayed in fw_stats are applicable
only for TLV based firmware and fix it for 10.4 firmware
as of now. The vdev stats in 10.4 firmware is split into two
parts (vdev_stats, vdev_stats_extended). The actual stats
are captured only in extended vdev stats. In order to enable
vdev stats, appropriate feature bit will be set on extended
resource config. As FTM related counters are available only on
newer 10.4 based firmware, these counters will be displayed
only on valid data.

Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/wmi.c
drivers/net/wireless/ath/ath10k/wmi.h