aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/700-make-make-work.patch
blob: 643061ab5bae737c94cc8cc82a3c27f88469e324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -196,7 +196,8 @@ endif
 
 ifdef CONFIG_NO_VLAN
 CFLAGS += -DCONFIG_NO_VLAN
-else
+endif
+ifneq ($(findstring CONFIG_NO_VLAN,$(CFLAGS)), CONFIG_NO_VLAN)
 OBJS += ../src/ap/vlan_init.o
 OBJS += ../src/ap/vlan_ifconfig.o
 OBJS += ../src/ap/vlan.o