qcacld-3.0: add support for target-host synchronization
To map target time to host time, implement a timer
to capture TSF and host time periodically.
The timer will be started when connection state of
sta/p2p_gc being changed from not associated to
associated; and stopped when from associated to
not associated.
Change-Id: I697080b95f01f173beddc038ab9ad89ee394354b
CRs-Fixed: 2057693
diff --git a/Kbuild b/Kbuild
index 0ed164d..faab588 100644
--- a/Kbuild
+++ b/Kbuild
@@ -58,6 +58,12 @@
CONFIG_MOBILE_ROUTER := y
endif
+ ifeq ($(CONFIG_ARCH_MSM8917), y)
+ ifeq ($(CONFIG_ROME_IF), sdio)
+ CONFIG_WLAN_SYNC_TSF_PLUS := y
+ endif
+ endif
+
#Flag to enable Legacy Fast Roaming2(LFR2)
CONFIG_QCACLD_WLAN_LFR2 := y
#Flag to enable Legacy Fast Roaming3(LFR3)
@@ -457,6 +463,10 @@
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tdls.o
endif
+ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
+CONFIG_WLAN_SYNC_TSF := y
+endif
+
ifeq ($(CONFIG_WLAN_SYNC_TSF),y)
HDD_OBJS += $(HDD_SRC_DIR)/wlan_hdd_tsf.o
endif
@@ -2013,6 +2023,10 @@
CDEFINES += -DWLAN_FEATURE_TSF
endif
+ifeq ($(CONFIG_WLAN_SYNC_TSF_PLUS), y)
+CDEFINES += -DWLAN_FEATURE_TSF_PLUS
+endif
+
# Enable full rx re-order offload for adrastea
ifeq (y, $(filter y, $(CONFIG_CNSS_ADRASTEA) $(CONFIG_ICNSS)))
CDEFINES += -DWLAN_FEATURE_RX_FULL_REORDER_OL