Sfoglia il codice sorgente

qcacld-3.0: DFS CAC duration fix for emulation platform

For emulation platform, timer value multiplied by  100,
Set the CAC value accordingly, to get timer expire after
intended duration.

Change-Id: Ia99ee6f36b88bca3c297fc06d1f3b777a2114d14
CRs-Fixed: 1114332
Arif Hussain 8 anni fa
parent
commit
4d43b9b9a6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      core/sap/src/sap_fsm.c

+ 4 - 0
core/sap/src/sap_fsm.c

@@ -5070,6 +5070,10 @@ int sap_start_dfs_cac_timer(ptSapContext sapContext)
 		(sap_is_channel_bonding_etsi_weather_channel(sapContext)))) {
 		cacTimeOut = ETSI_WEATHER_CH_CAC_TIMEOUT;
 	}
+
+#ifdef QCA_WIFI_NAPIER_EMULATION
+	cacTimeOut = cacTimeOut / 100;
+#endif
 	QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_MED,
 		  "sapdfs: SAP_DFS_CHANNEL_CAC_START on CH - %d, CAC TIMEOUT - %d sec",
 		  sapContext->channel, cacTimeOut / 1000);