Virtual Access Points (VAP) (Broadcom)
/etc/network/interfaces =
auto wl0
iface wl0 inet manual
pre-up /usr/sbin/pciunbind
pre-up /usr/sbin/wlc ifname wl0 mssid 1
pre-up /usr/sbin/wlc ifname wl0 vif 0
pre-up /usr/sbin/wlc ifname wl0 enabled 1
pre-up /usr/sbin/wlc ifname wl0 ap 1
pre-up /usr/sbin/wlc ifname wl0 channel 11
pre-up /usr/sbin/wlc ifname wl0 ssid DebWrt
pre-up /usr/sbin/wlc ifname wl0 up
pre-up /sbin/ip link set wl0 up
post-up touch /etc/network/run/wl0
post-down /sbin/ip link set wl0 down
post-down /usr/sbin/wlc ifname wl0 down
post-down rm -f /etc/network/run/wl0
auto wl0.1
iface wl0.1 inet manual
pre-up /usr/sbin/wlc ifname wl0 vif 1 ap 1 ssid FREE
pre-up /usr/sbin/wlc ifname wl0 vif 1 enabled 1
pre-up /usr/sbin/wlc ifname wl0 vif 1 up
pre-up /sbin/ip link set wl0.1 up