Browse Source

qcacmn: Attach CE SRNG SERVICES selectively

Selectively attach to ce_services_srng only when
Lithium family chipsets are enabled/disabled during
CE configuration by HIF i.e. if QCA_WIFI_QCA8074 or
QCA_WIFI_QCA6290 is defined.

Change-Id: I3c25e17160d78a3f359e5cdfe48ad05b295d0bfd
CRs-Fixed: 1103135
Venkata Sharath Chandra Manchala 8 years ago
parent
commit
837d323bfb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      hif/src/ce/ce_main.c

+ 7 - 0
hif/src/ce/ce_main.c

@@ -635,6 +635,7 @@ bool ce_srng_based(struct hif_softc *scn)
 	return false;
 }
 
+#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6290)
 static struct ce_ops *ce_services_attach(struct hif_softc *scn)
 {
 	if (ce_srng_based(scn))
@@ -642,6 +643,12 @@ static struct ce_ops *ce_services_attach(struct hif_softc *scn)
 
 	return ce_services_legacy();
 }
+#else	/* QCA_LITHIUM */
+static struct ce_ops *ce_services_attach(struct hif_softc *scn)
+{
+	return ce_services_legacy();
+}
+#endif /* QCA_LITHIUM */
 
 static inline uint32_t ce_get_desc_size(struct hif_softc *scn,
 						uint8_t ring_type)