[qca-nss-clients] Netlink support for capwap
Provides netlink framework to test capwap module.
Change-Id: I8d1934bfe91d0c54f1efce57207907cbb519c6b3
Signed-off-by: Himanshu Joshi <himajosh@codeaurora.org>
diff --git a/netlink/Makefile b/netlink/Makefile
index 3072316..b8db527 100644
--- a/netlink/Makefile
+++ b/netlink/Makefile
@@ -20,8 +20,15 @@
qca-nss-netlink-objs += nss_nlipv6.o
qca-nss-netlink-objs += nss_nlipsec.o
qca-nss-netlink-objs += nss_nloam.o
-obj-m += qca-nss-netlink.o
+CAPWAP_ENABLED:=CONFIG_PACKAGE_kmod-qca-nss-drv-capwapmgr=y
+CAPWAP_CONFIG:=$(shell grep $(CAPWAP_ENABLED) $(TOPDIR)/.config)
+ifeq ($(CAPWAP_CONFIG),$(CAPWAP_ENABLED))
+ccflags-y += -DCONFIG_NSS_NLCAPWAP=1
+qca-nss-netlink-objs += nss_nlcapwap.o
+else
+ccflags-y += -DCONFIG_NSS_NLCAPWAP=0
+endif
ifeq ($(SoC),$(filter $(SoC),ipq807x ipq807x_64 ipq60xx ipq60xx_64))
ccflags-y += -DCONFIG_NSS_NLCRYPTOV2=1
qca-nss-netlink-objs += nss_nlcryptov2.o
@@ -29,3 +36,4 @@
ccflags-y += -DCONFIG_NSS_NLCRYPTO=1
qca-nss-netlink-objs += nss_nlcrypto.o
endif
+obj-m += qca-nss-netlink.o