qcacmn: Dummy hif_hal_attach when hal not supported

If hal_api.h is not available do not use its api's.
Avoid "implicit declaration of function" compilation error.

Change-Id: I8458bde4ce862adeeda5c8d3892ce439be068c06
CRs-Fixed: 1089874
This commit is contained in:
Houston Hoffman 2016-11-18 13:12:08 -08:00 • committed by qcabuildsw
commit 6fe6059965

View file

@ -438,6 +438,7 @@ void hif_close(struct hif_opaque_softc *hif_ctx)
qdf_mem_free(scn);
}
#ifdef QCA_WIFI_QCA8074
static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
{
if (ce_srng_based(scn)) {
@ -448,6 +449,13 @@ static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
return QDF_STATUS_SUCCESS;
}
#else
static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
{
return QDF_STATUS_SUCCESS;
}
#endif
/**
* hif_enable(): hif_enable
* @hif_ctx: hif_ctx