Browse Source

qcacld-3.0: Send connect request for WMI DIAG SVC

Send connect request for WMI DIAG events over CE7.
Enable WMI DIAG over CE7 feature for QCA6750 target.

Change-Id: Iaa9e030383a3f8fea07ddccde3d260e60742b862
CRs-Fixed: 2787003
Karthik Kantamneni 4 years ago
parent
commit
a1952c8ae6
3 changed files with 16 additions and 0 deletions
  1. 3 0
      Kbuild
  2. 1 0
      configs/default_defconfig
  3. 12 0
      core/wma/src/wma_main.c

+ 3 - 0
Kbuild

@@ -3001,6 +3001,9 @@ cppflags-$(CONFIG_IPA_OFFLOAD) += -DIPA_OFFLOAD
 cppflags-$(CONFIG_WDI3_IPA_OVER_GSI) += -DIPA_WDI3_GSI
 cppflags-$(CONFIG_WDI2_IPA_OVER_GSI) += -DIPA_WDI2_GSI
 
+#Enable WMI DIAG log over CE7
+cppflags-$(CONFIG_WLAN_FEATURE_WMI_DIAG_OVER_CE7) += -DWLAN_FEATURE_WMI_DIAG_OVER_CE7
+
 ifeq ($(CONFIG_ARCH_SDX20), y)
 cppflags-y += -DSYNC_IPA_READY
 endif

+ 1 - 0
configs/default_defconfig

@@ -65,6 +65,7 @@ ifeq ($(CONFIG_CNSS_QCA6750), y)
 	CONFIG_HASTINGS_BT_WAR := y
 	CONFIG_WDI3_IPA_OVER_GSI :=y
 	CONFIG_HOST_WAKEUP_OVER_QMI := y
+	CONFIG_WLAN_FEATURE_WMI_DIAG_OVER_CE7 := y
 endif
 
 ifeq ($(CONFIG_CLD_HL_SDIO_CORE), y)

+ 12 - 0
core/wma/src/wma_main.c

@@ -3468,6 +3468,18 @@ QDF_STATUS wma_pre_start(void)
 		goto end;
 	}
 
+	/* Open endpoint for wmi diag path */
+	qdf_status = wmi_diag_connect_pdev_htc_service(wma_handle->wmi_handle,
+						       htc_handle);
+	if (qdf_status != QDF_STATUS_SUCCESS) {
+		wma_err("wmi_diag_connect_pdev_htc_service");
+		if (!cds_is_fw_down())
+			QDF_BUG(0);
+
+		qdf_status = QDF_STATUS_E_FAULT;
+		goto end;
+	}
+
 	wma_debug("WMA --> wmi_unified_connect_htc_service - success");
 
 end: