]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: implement offset_tsf ieee80211_op
authorPedersen, Thomas <twp@qca.qualcomm.com>
Wed, 28 Sep 2016 23:56:29 +0000 (16:56 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 23 Nov 2016 13:54:12 +0000 (15:54 +0200)
commit2f91b639eb4f9408b82bd835d36cbd7541740072
treebdce64652075a50c7f5cd071a52c61ac5e6d985c
parentcb0296b2754a7958176ec0d0460606f6c9c493be
ath10k: implement offset_tsf ieee80211_op

Current set_tsf is implemented in terms of TSF_INCREMENT
only. Instead support new WMI command TSF_DECREMENT and
export these through offset_tsf. Advantage is we get
more accurate TSF adjustments, and don't calculate wrong
offset in case absolute TSF was calculated from rx_mactime
(actual TSF).

The new WMI command is available in firmware
10.4-3.2.1-00033 for QCA4019 chips. Old drivers on new
firmware or vice versa shouldn't  be a problem since
get/set tsf logic was already broken.

Signed-off-by: Thomas Pedersen <twp@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c
drivers/net/wireless/ath/ath10k/wmi.h