Browse Source

qcacmn: Disable fastpath for srng rings

Reject fastpath enable for srng based chips.

Change-Id: If1f3be9cb92a7620b27e040aa6da4b18ed4d19f7
CRs-Fixed: 1104685
Houston Hoffman 8 years ago
parent
commit
d63cd7430c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      hif/src/ce/ce_main.c

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

@@ -962,6 +962,10 @@ void hif_enable_fastpath(struct hif_opaque_softc *hif_ctx)
 {
 	struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
 
+	if (ce_srng_based(scn)) {
+		HIF_INFO("%s, srng rings do not support fastpath", __func__);
+		return;
+	}
 	HIF_INFO("%s, Enabling fastpath mode", __func__);
 	scn->fastpath_mode_on = true;
 }