projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5008cb5
)
Fix build without CONFIG_FULL_DYNAMIC_VLAN
author
Jouni Malinen
<j@w1.fi>
Sat, 17 Apr 2010 18:01:35 +0000
(21:01 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sat, 17 Apr 2010 18:01:35 +0000
(21:01 +0300)
src/ap/vlan_init.c
patch
|
blob
|
history
diff --git
a/src/ap/vlan_init.c
b/src/ap/vlan_init.c
index
aa07975
..
c9d166a
100644
(file)
--- a/
src/ap/vlan_init.c
+++ b/
src/ap/vlan_init.c
@@
-764,7
+764,9
@@
static int vlan_dynamic_add(struct hostapd_data *hapd,
return -1;
}
}
+#ifdef CONFIG_FULL_DYNAMIC_VLAN
ifconfig_up(vlan->ifname);
+#endif /* CONFIG_FULL_DYNAMIC_VLAN */
}
vlan = vlan->next;
@@
-865,7
+867,9
@@
struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
n->next = hapd->conf->vlan;
hapd->conf->vlan = n;
+#ifdef CONFIG_FULL_DYNAMIC_VLAN
ifconfig_up(n->ifname);
+#endif /* CONFIG_FULL_DYNAMIC_VLAN */
return n;
}