Prechádzať zdrojové kódy

qcacld-3.0: Adjust the intervel of tsf sync timer

Because it has clock drift between Qtimer and target timer, so host
driver need to get two timer offset periodically, then transform the
tsf time from each RX packet to qtime according to this offset value.
If the intervel is too large, the result will not very accurate.
Modify the value from 9 seconds to 3 seconds for STA mode.
Modify the SAP tsf sync intervel to be the same as STA mode.

Change-Id: Id915cbf386059df8233246e196279cb376e2a25b
CRs-Fixed: 2531940
guangde 5 rokov pred
rodič
commit
87e1720b75
1 zmenil súbory, kde vykonal 1 pridanie a 5 odobranie
  1. 1 5
      core/hdd/src/wlan_hdd_tsf.c

+ 1 - 5
core/hdd/src/wlan_hdd_tsf.c

@@ -577,7 +577,7 @@ static enum hdd_tsf_op_result hdd_indicate_tsf_internal(
 	defined(WLAN_FEATURE_TSF_PLUS_EXT_GPIO_SYNC)
 #define WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC 2
 #else
-#define WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC 10
+#define WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC 4
 #endif
 #define OVERFLOW_INDICATOR32 (((int64_t)0x1) << 32)
 #define CAP_TSF_TIMER_FIX_SEC 1
@@ -1064,10 +1064,6 @@ static void hdd_update_timestamp(struct hdd_adapter *adapter)
 		 */
 		interval = (WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC -
 			    CAP_TSF_TIMER_FIX_SEC) * MSEC_PER_SEC;
-		if (adapter->device_mode == QDF_SAP_MODE ||
-		    adapter->device_mode == QDF_P2P_GO_MODE) {
-			interval *= WLAN_HDD_SOFTAP_INTERVAL_TIMES;
-		}
 
 		adapter->continuous_error_count = 0;
 		hdd_debug("ts-pair updated: interval: %d",