qcacld: Build driver with backports

Some of the platforms where QCA6174 is attached, only older Linux
kernel would be supported and requirement would be to get all the
latest WLAN features working with the older kernel. Upstream
community has a way of getting the latest driver working with
older kernel and the project is called backports. Since QCACLD is
not part of the kernel, to compile QCACLD, there is specific
changes required to conditionally compile some part of the driver
as without which wrong Linux version would be considered (because
of the older kernel version which conflicts with some of the new
CFG80211 data structures and APIs) and build would fail. This
change supports backports 3.14.1 version.

Change-Id: I7ebc5921edb0979b26538038b5de10cbc13c240f
CRs-fixed: 784992
diff --git a/Kbuild b/Kbuild
index c61cc30..544f92a 100755
--- a/Kbuild
+++ b/Kbuild
@@ -99,6 +99,11 @@
         endif
 endif
 
+ifdef CPTCFG_QCA_CLD_WLAN
+	WLAN_ROOT := $(BACKPORT_PWD)/drivers/staging/qcacld-2.0
+	CONFIG_QCA_CLD_WLAN=$(CPTCFG_QCA_CLD_WLAN)
+endif
+
 ifeq ($(CONFIG_X86), y)
 CONFIG_NON_QC_PLATFORM := y
 endif
@@ -1336,6 +1341,10 @@
 CDEFINES += -DFEATURE_AP_MCC_CH_AVOIDANCE
 endif
 
+ifdef CPTCFG_QCA_CLD_WLAN
+CDEFINES += -DWITH_BACKPORTS
+endif
+
 KBUILD_CPPFLAGS += $(CDEFINES)
 
 # Currently, for versions of gcc which support it, the kernel Makefile