qcacmn: Export the bus type

Currently only ol_target_failure needs to query the bus type,
but when usb and sdio busses are added there will be more
external checks based on the bus type.

Change-Id: I48172a918e75ff3a6e56fae5c311ae999efa607e
CRs-Fixed: 986480
diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c
index cc8931c..d167013 100644
--- a/hif/src/hif_main.c
+++ b/hif/src/hif_main.c
@@ -804,6 +804,17 @@
 }
 
 /**
+ * hif_get_bus_type() - return the bus type
+ *
+ * Return: enum qdf_bus_type
+ */
+enum qdf_bus_type hif_get_bus_type(struct hif_opaque_softc *hif_hdl)
+{
+	struct hif_softc *scn = HIF_GET_SOFTC(hif_hdl);
+	return scn->bus_type;
+}
+
+/**
  * 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