ath11k: Change masking and shifting in htt stats
authorSeevalamuthu Mariappan <seevalam@codeaurora.org>
Tue, 28 Sep 2021 11:00:45 +0000 (14:00 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 Sep 2021 13:53:14 +0000 (16:53 +0300)
commit6ed731829cf862dc1f73bbd063662d8a6c78a5b7
tree6e0fe93d755469e6b3c27d11c807de119a1248ab
parent74327bab6781a34d96ff4c0a7c59bb032fab1650
ath11k: Change masking and shifting in htt stats

In debugfs_htt_stats.c, masking and shifting is done to get
stats values. Instead use GENMASK and FIELD_GET to improve
code readability and maintenance.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01105-QCAHKSWPL_SILICONZ-1

Signed-off-by: Seevalamuthu Mariappan <seevalam@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210913223148.208026-5-jouni@codeaurora.org
drivers/net/wireless/ath/ath11k/debugfs_htt_stats.c
drivers/net/wireless/ath/ath11k/debugfs_htt_stats.h
drivers/net/wireless/ath/ath11k/dp.h