Use DEVICE+VLAN naming scheme in hostapd

Jouni Malinen j
Sat Jun 30 03:29:55 PDT 2012

On Mon, Jun 25, 2012 at 04:52:23PM +0200, michael-dev wrote:
> OpenWRT switched to the Interface+VlanID naming scheme for vlan
> devices recently and hostapd only supports the "vlan"+VID scheme.
> This sometimes leads to race conditions, when either system expects
> the other mode of operation. Although the best solution were to get
> the kernel return the name of the created interface (or let the user
> configure it), that would require more work. Further I prefer the
> dev+vid scheme over the "vlan"+VID scheme, as this avoids conflicts
> were the same vlan-id is added to more than one device, so I propose
> to change hostapd instead of openwrt.

I would need better justification for overriding the current hostapd
behavior than just one use case with OpenWRT. I would have no problems
making this a configurable option in hostapd that would allow the
OpenWRT case to be used, though. Better yet, if this can be figured out
automatically without any user configuration, it would be even better.

> Hostap-Signed-Off: M. Braun <michael-dev at>

Please note that the correct tag to use for patches to hostap.git is

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list