qcacmn: Refactor Unit-Test Suspend
Unit-Test suspend needs to be decoupled from the copy engine
implementation in HIF. Split the HIF portion of Unit-Test suspend into
their own files, and clean up naming, etc.
Change-Id: Ic36c5b98c505f6b62ddf94336838a9e53fe8aa78
CRs-Fixed: 2055328
diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c
index f700572..b19ff15 100644
--- a/hif/src/hif_main.c
+++ b/hif/src/hif_main.c
@@ -50,6 +50,7 @@
#include "hal_api.h"
#endif
#include "hif_napi.h"
+#include "hif_unit_test_suspend_i.h"
void hif_dump(struct hif_opaque_softc *hif_ctx, uint8_t cmd_id, bool start)
{
@@ -534,6 +535,8 @@
return status;
}
+ hif_ut_suspend_init(scn);
+
/*
* Flag to avoid potential unallocated memory access from MSI
* interrupt handler which could get scheduled as soon as MSI