From b348ba478a2e463cade6afcfd575b1b4c1b69537 Mon Sep 17 00:00:00 2001 From: Anurag Chouhan Date: Wed, 25 May 2016 14:23:17 +0530 Subject: [PATCH] qcacmn: Add WIN Driver Compilation fix Initially, the QCA Wi-Fi driver was ported to support kernel 4.4. However, after the code changes due to converged code, few issues were re-created when compiled on kernel 4.4.X. This change resolves the newly introduced issues by the converged code changes. Change-Id: Iae76cdfee97675ff4bf2508ce5a42f08515bb168 CRs-Fixed: 1012511 --- qdf/linux/src/i_qdf_mem.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qdf/linux/src/i_qdf_mem.h b/qdf/linux/src/i_qdf_mem.h index 8744f44ea0a5..bbae957d87cc 100644 --- a/qdf/linux/src/i_qdf_mem.h +++ b/qdf/linux/src/i_qdf_mem.h @@ -62,7 +62,15 @@ #define kfree(buf) #define vfree(buf) #define pci_alloc_consistent(dev, size, paddr) NULL +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) +/* + * typedef to dummy type to overcome implicit declaration error in + * spectraltool.c + */ +#define __qdf_mempool_t int +#else #define __qdf_mempool_t +#endif /* LINUX_VERSION_CODE */ #endif /* __KERNEL__ */ #include