diff --git a/src/ap/vlan_init.c b/src/ap/vlan_init.c index dcfb1ff3c..aa0797573 100644 --- a/src/ap/vlan_init.c +++ b/src/ap/vlan_init.c @@ -800,13 +800,13 @@ static void vlan_dynamic_remove(struct hostapd_data *hapd, int vlan_init(struct hostapd_data *hapd) { - if (vlan_dynamic_add(hapd, hapd->conf->vlan)) - return -1; - #ifdef CONFIG_FULL_DYNAMIC_VLAN hapd->full_dynamic_vlan = full_dynamic_vlan_init(hapd); #endif /* CONFIG_FULL_DYNAMIC_VLAN */ + if (vlan_dynamic_add(hapd, hapd->conf->vlan)) + return -1; + return 0; }