]> git.karo-electronics.de Git - linux-beck.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)
commit973324fff154beb51711136d5d242df7f328f708
treebdce64652075a50c7f5cd071a52c61ac5e6d985c
parentff32eeb86aa18a3d11e32b279faaae4b2e4fef38
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