Read this article it has examples for wifi. http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1