VLAN: Set statically configured VLAN interfaces up
This is needed to be able to bind stations to them with mac80211.
This commit is contained in:
parent
74e259ec7c
commit
0249c988bb
1 changed files with 10 additions and 7 deletions
|
@ -754,14 +754,17 @@ static int vlan_dynamic_add(struct hostapd_data *hapd,
|
||||||
struct hostapd_vlan *vlan)
|
struct hostapd_vlan *vlan)
|
||||||
{
|
{
|
||||||
while (vlan) {
|
while (vlan) {
|
||||||
if (vlan->vlan_id != VLAN_ID_WILDCARD &&
|
if (vlan->vlan_id != VLAN_ID_WILDCARD) {
|
||||||
hapd->drv.vlan_if_add(hapd, vlan->ifname)) {
|
if (hapd->drv.vlan_if_add(hapd, vlan->ifname)) {
|
||||||
if (errno != EEXIST) {
|
if (errno != EEXIST) {
|
||||||
wpa_printf(MSG_ERROR, "VLAN: Could not add "
|
wpa_printf(MSG_ERROR, "VLAN: Could "
|
||||||
"VLAN iface: %s: %s",
|
"not add VLAN %s: %s",
|
||||||
vlan->ifname, strerror(errno));
|
vlan->ifname,
|
||||||
return -1;
|
strerror(errno));
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
ifconfig_up(vlan->ifname);
|
||||||
}
|
}
|
||||||
|
|
||||||
vlan = vlan->next;
|
vlan = vlan->next;
|
||||||
|
|
Loading…
Reference in a new issue