ath10k: fix duration calculation for quiet param
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Tue, 13 Jan 2015 09:22:14 +0000 (14:52 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 15 Jan 2015 10:33:42 +0000 (12:33 +0200)
commit8bdadac13f65c14d7b6df711793eb31ba9db296e
treecebd3a96f033bde25f6d62621517dfd317b9349f
parentfbb8f1b729b82f2b48350ffc096f107d1a6ea12d
ath10k: fix duration calculation for quiet param

The duty cycle (% of quiet duration) is used to put the device
in quiet mode for the given period. Currently the quiet duration
is wrongly calculated which results in not enabling quiet mode.
Fix the calculation as below

     duration = (period * duty cycle) / 100

Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/thermal.c