qcacmn: Add hif_needs_bmi api

Since the logic requires device knowledge and could become more
complicated, provice a hif api tho check.

Change-Id: I6fbb8234a6c0a639afdd9a9a409688889e492bd7
CRs-Fixed: 986480
diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c
index a24d7bb..cc8931c 100644
--- a/hif/src/hif_main.c
+++ b/hif/src/hif_main.c
@@ -792,6 +792,18 @@
 }
 
 /**
+ * hif_needs_bmi() - return true if the soc needs bmi through the driver
+ * @hif_ctx: hif context
+ *
+ * Return: true if the soc needs driver bmi otherwise false
+ */
+bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx)
+{
+	struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
+	return hif_sc->bus_type != QDF_BUS_TYPE_SNOC;
+}
+
+/**
  * Target info and ini parameters are global to the driver
  * Hence these structures are exposed to all the modules in
  * the driver and they don't need to maintains multiple copies