Make vlan_file optional if dynamic_vlan is used
authorMichael Braun <michael-dev@fami-braun.de>
Sat, 27 Apr 2013 19:53:34 +0000 (22:53 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 27 Apr 2013 19:53:34 +0000 (22:53 +0300)
commit7ca902b53ed69d2dc047c83fc1e396de2f6e9429
tree5ee00dd41d772dc8f5db0f821c98d2f434075f3b
parentbdb112d35fda6c8668730f28855db3b0ae1ee559
Make vlan_file optional if dynamic_vlan is used

My APs generate their configuration on their own using a different
number of (vlan-enabled) bss. Currently, all my vlan_file files consist
of a single line: the wildcard line. Configuration file generation would
be easier, if the hostapd configuration file would not depend on those
simple vlan_file files.

This patch removes the need for those one-line files by using the
<device>.<vlan> naming scheme if no vlan_file is given (or that file is
empty). This should not break any existing setup, as using dynamic_vlan
with no vlan configured does not make sense anyway.

Signed-hostap: Michael Braun <michael-dev@fami-braun.de>
hostapd/hostapd.conf
src/ap/vlan_init.c