summaryrefslogtreecommitdiff
path: root/CORE/VOSS/src
diff options
context:
space:
mode:
authorChris Guo <kangxu@codeaurora.org>2017-06-15 17:46:12 +0800
committersnandini <snandini@codeaurora.org>2017-06-26 12:06:52 -0700
commitbab445b075f00a9e22c68d0439d3588e2ee54761 (patch)
treef09b2c6cac6fa21ee020d0b4c7fa219448dd7110 /CORE/VOSS/src
parent5d59b7353f470bfa0d52de7251a42f89d5a3c7a9 (diff)
qcacld-2.0: Disable credit flow control for HTT mapped HTC EP
When PTP is enabled, WLAN FW will disable HTC credit report to WLAN host to enhance performance. Thus, WLAN host need to disable credit flow control to align this change accordingly. Change-Id: I243a5fb9ce006e4c4cd46d7777a38431118fadf7 CRs-Fixed: 2061837
Diffstat (limited to 'CORE/VOSS/src')
-rw-r--r--CORE/VOSS/src/vos_api.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/CORE/VOSS/src/vos_api.c b/CORE/VOSS/src/vos_api.c
index c030168c75ab..c80a62559618 100644
--- a/CORE/VOSS/src/vos_api.c
+++ b/CORE/VOSS/src/vos_api.c
@@ -255,6 +255,27 @@ static inline void vos_fw_hash_check_config(struct ol_softc *scn,
hdd_context_t *pHddCtx) { }
#endif
+#ifdef WLAN_FEATURE_TSF_PLUS
+/**
+ * vos_set_ptp_enable() - set ptp enable flag in mac open param
+ * @wma_handle: Pointer to mac open param
+ * @hdd_ctx: Pointer to hdd context
+ *
+ * Return: none
+ */
+static void vos_set_ptp_enable(tMacOpenParameters *param,
+ hdd_context_t *hdd_ctx)
+{
+ param->is_ptp_enabled =
+ (hdd_ctx->cfg_ini->tsf_ptp_options != 0);
+}
+#else
+static void vos_set_ptp_enable(tMacOpenParameters *param,
+ hdd_context_t *pHddCtx)
+{
+}
+#endif
+
#ifdef WLAN_FEATURE_NAN
/**
* vos_set_nan_enable() - set nan enable flag in mac open param
@@ -646,6 +667,7 @@ VOS_STATUS vos_open( v_CONTEXT_t *pVosContext, v_SIZE_t hddContextSize )
vos_set_nan_enable(&macOpenParms, pHddCtx);
vos_set_bundle_params(&macOpenParms, pHddCtx);
vos_set_ac_specs_params(&macOpenParms, pHddCtx);
+ vos_set_ptp_enable(&macOpenParms, pHddCtx);
vStatus = WDA_open( gpVosContext, gpVosContext->pHDDContext,
hdd_update_tgt_cfg,