Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1431 - hostapd: VLAN: br_delif: Failure determining interface index with dynamic vlans #7962

Closed
openwrt-bot opened this issue Mar 14, 2018 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

imac:

We see some error messages related to bridge port add/remove activities when using dynamic vlans, though the dynamic vlans themselves function correctly.

The platforms include (Archer C7, Archer C2600, WD N600, BT HH5A) with standard 17.01.4 images, with the following package changes:

opkg remove wpad-mini hostapd
opkg install hostapd-common wpad

In our case, our captive portal system sends CoA requests to initiate VLAN changes, and passes the VLAN via radius-accept messages, which all works fine. Since radius and vlans are not normally used on open SSIDs, we have manually added the dae_ auth_ and acct_ variables to the encryption 'none' section of /lib/netifd/hostapd.sh

Everything works wrt to the dynamic vlans and radius, but we see the following messages when the first client connects to a dynamic VLAN and when the last client disconnects from a vlan. Two examples are described below:

  1. When last client disconnects from dynamic vlan 71, connected via wlan0.71 on br-vlan71:

    Wed Mar 14 15:31:54 2018 daemon.err hostapd: VLAN: br_delif: Failure determining interface index for 'wlan0.71'

  2. When the first client connects to dynamic vlan 71, connected via wlan0.71 on br-vlan71:

    Wed Mar 14 15:33:19 2018 daemon.err hostapd: VLAN: vlan_add: ADD_VLAN_CMD failed for eth0: File exists

This only occurs when it is the first client on the vlan, or the last client to disconnect from the vlan, otherwise the dynamic vlan changes produce no errors related to the station-to-interface binding/unbinding.

Despite the errors, the interfaces appear to be added and removed as expected. i.e. after the first client connects we see

root@AP:~# brctl show
bridge name bridge id STP enabled interfaces
...
br-vlan71 7fff.c025e940533c no eth0.71
wlan0.71

And after the last client disconnects we see

root@AP:~# brctl show
bridge name bridge id STP enabled interfaces
...
br-vlan71 7fff.c025e940533c no eth0.71

In the case used for the example we have the following vlan related interface settings in /etc/config/wireless and /etc/config/network, noting that eth0 is the trunk over which the VLANs are connected to the OpenWRT/LEDE device in this instance:

config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option encryption 'none'
option vlan_file '/etc/config/hostapd.vlan'
option vlan_tagged_interface 'eth0'
option vlan_bridge 'br-vlan'
option vlan_naming '0'
...

config interface 'vlan71'
option type 'bridge'
option ifname 'eth0.71'

@openwrt-bot
Copy link
Author

HeavyMetal:

This seems to be related to https://bugs.openwrt.org/index.php?do=details&task_id=488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant