aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-03-25 15:21:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-25 15:24:20 (GMT)
commit84d6755108677f8ca542f49a3c0ca0c45deac40b (patch)
treec842c31ff01a0c221c17f98d32ba41940fade6b7 /hostapd/Makefile
parentcb38bc886e66d7ef20728fa6516aa28384a5febe (diff)
downloadhostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.zip
hostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.tar.gz
hostap-84d6755108677f8ca542f49a3c0ca0c45deac40b.tar.bz2
vlan: Clean up netlink vs. ioctl API implementation
Move the ioctl-based VLAN implementation to a separate file to avoid need for conditional blocks within vlan_ioctl.c. This removes the internal CONFIG_VLAN_NETLINK define, i.e., this is now used only in build configuration (.config) to select whether to include the vlan_util.c (netlink) or vlan_ioctl.c (ioctl) implementation of the functions. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index e0d25a5..d7af274 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -195,11 +195,15 @@ CFLAGS += -DCONFIG_NO_VLAN
else
OBJS += ../src/ap/vlan_init.o
OBJS += ../src/ap/vlan.o
-ifdef CONFIG_VLAN_NETLINK
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
+ifdef CONFIG_VLAN_NETLINK
OBJS += ../src/ap/vlan_util.o
+else
+OBJS += ../src/ap/vlan_ioctl.o
endif
-CFLAGS += -DCONFIG_VLAN_NETLINK
endif
endif
@@ -907,12 +911,6 @@ ifdef CONFIG_DRIVER_RADIUS_ACL
CFLAGS += -DCONFIG_DRIVER_RADIUS_ACL
endif
-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
-endif
-
ifdef NEED_BASE64
OBJS += ../src/utils/base64.o
endif