OSDN Git Service

ath9k: Use tsf offset helper in ath9k_hw_reset
authorBenjamin Berg <benjamin.berg@open-mesh.com>
Mon, 4 Jul 2016 12:37:22 +0000 (14:37 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 8 Jul 2016 14:03:28 +0000 (17:03 +0300)
commitbec9a94bc4e267a7d9be6f255cd90fe87a2259f6
tree70de4a442300b9bf6f520a56f04d29ab14fc80ce
parent9580cb889f35c1ce98fcfec85ebc50b7979f0ecd
ath9k: Use tsf offset helper in ath9k_hw_reset

These changes make ath9k_hw_reset more consistent with other places that
handle the TSF value by using the same helper routine.

A slight improvement is to not assume that a fixed time of 1.5ms has
passed for the initval writes when compared to the first write attempt.
Instead the TSF value is re-calculated which will yield a higher accuracy
of the restored TSF timer.

Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/hw.c