aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-25 15:43:27 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-25 15:55:40 (GMT)
commit59d6390440121780629442cf383e0dd139bb0673 (patch)
tree1a35ad2e3740532df8d909c75d7bc38215f32576 /hostapd
parent0fe28ddf17253ae58ee2f9338eae89607ad7539c (diff)
downloadhostap-59d6390440121780629442cf383e0dd139bb0673.zip
hostap-59d6390440121780629442cf383e0dd139bb0673.tar.gz
hostap-59d6390440121780629442cf383e0dd139bb0673.tar.bz2
vlan: Move CONFIG_FULL_DYNAMIC_VLAN functionality into a separate file
This cleans up vlan_init.c by removing number of C pre-processor dependencies. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/Android.mk1
-rw-r--r--hostapd/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 3d5602a..f251475 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -180,6 +180,7 @@ ifdef CONFIG_FULL_DYNAMIC_VLAN
# Define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges
# and VLAN interfaces for the VLAN feature.
L_CFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN
+OBJS += src/ap/vlan_full.c
ifdef CONFIG_VLAN_NETLINK
OBJS += src/ap/vlan_util.c
else
diff --git a/hostapd/Makefile b/hostapd/Makefile
index d7af274..c4fa4c0 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -199,6 +199,7 @@ ifdef CONFIG_FULL_DYNAMIC_VLAN
# Define CONFIG_FULL_DYNAMIC_VLAN to have hostapd manipulate bridges
# and VLAN interfaces for the VLAN feature.
CFLAGS += -DCONFIG_FULL_DYNAMIC_VLAN
+OBJS += ../src/ap/vlan_full.o
ifdef CONFIG_VLAN_NETLINK
OBJS += ../src/ap/vlan_util.o
else