OSDN Git Service

ath10k: add cycle/rx_clear counters frequency to hw_params
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Wed, 12 Aug 2015 10:54:05 +0000 (16:24 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 17 Aug 2015 13:46:21 +0000 (16:46 +0300)
commit9c8fb548fb242b462657151eb9c5dd6b6def5b62
tree478792ec5c546f0c9228461546dd29a2e6393bac
parent3d2a2e293e9578f59b182c8e5ad7b54ec4e28318
ath10k: add cycle/rx_clear counters frequency to hw_params

The frequency at which cycle/rx_clear counters are running might
change from one target type to another. QCA99X0 is running the
counters at 150Mhz while QCA9888X and QCA6174 are running at 88Mhz.
Add a new entry to hw_params to store the target specific frequency
and use it in msecs conversion. This change fixes inconsistent
channel active/busy time.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/hw.c
drivers/net/wireless/ath/ath10k/hw.h