qcacmn: Fix the limitations in enabling memory debug on WIN
Copy the file name to a QDF local array, rather than using
the pointer to file name, to avoid access to the invalid pointer.
Also, separate out SKB debug from memory debug.
SKB debug will be enabled once the SKB related false positives are fixed.
CRs-Fixed: 2216661
Change-Id: I0ada1acb84c24c961cf614c9c47261f272959874
diff --git a/wmi_unified_api.h b/wmi_unified_api.h
index fd0003a..9ff087a 100644
--- a/wmi_unified_api.h
+++ b/wmi_unified_api.h
@@ -196,7 +196,7 @@
* @param len : length of the buffer
* @return wmi_buf_t.
*/
-#ifdef MEMORY_DEBUG
+#ifdef NBUF_MEMORY_DEBUG
#define wmi_buf_alloc(h, l) wmi_buf_alloc_debug(h, l, __FILE__, __LINE__)
wmi_buf_t
wmi_buf_alloc_debug(wmi_unified_t wmi_handle, uint16_t len,