mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-06 04:04:01 -05:00
Fix build without CONFIG_FULL_DYNAMIC_VLAN
This commit is contained in:
parent
5008cb5e55
commit
2de5a860a3
@ -764,7 +764,9 @@ static int vlan_dynamic_add(struct hostapd_data *hapd,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef CONFIG_FULL_DYNAMIC_VLAN
|
||||||
ifconfig_up(vlan->ifname);
|
ifconfig_up(vlan->ifname);
|
||||||
|
#endif /* CONFIG_FULL_DYNAMIC_VLAN */
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan = vlan->next;
|
vlan = vlan->next;
|
||||||
@ -865,7 +867,9 @@ struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
|
|||||||
n->next = hapd->conf->vlan;
|
n->next = hapd->conf->vlan;
|
||||||
hapd->conf->vlan = n;
|
hapd->conf->vlan = n;
|
||||||
|
|
||||||
|
#ifdef CONFIG_FULL_DYNAMIC_VLAN
|
||||||
ifconfig_up(n->ifname);
|
ifconfig_up(n->ifname);
|
||||||
|
#endif /* CONFIG_FULL_DYNAMIC_VLAN */
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user