diff options
-rw-r--r-- | src/ap/vlan_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ap/vlan_init.c b/src/ap/vlan_init.c index dcfb1ff..aa07975 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; } |