How do I detect if an interface is a VirtualAP?

Ok I cant find out where to detect if a wlan interface is a virtual ap or not. The docs say that interface-type will say “virtualap” if this is the case but from what I found interface-type only shows up if its a physical device such as atheros xxx. I did see that master-interface shows up if its a virtual ap so the only way I can detect it right now is to see if master-interface has a value or not as well as check the interface-type. This is kind of dirty. Is interface-type broken?

Note: I am working in the API or command line. Either way works since they are similar.

I’m seeing the same thing, however this may be a solution for you:

:if ([:len [/interface wireless get <interface>  master-interface]] > 0) do={
   :put "Virtual AP"
}

This will allow you to detect if an wireless interface belongs to a master interface, aka “Virtual AP”.

That was my exact idea. Just seems like a hack but eh whatever works!

We added interface type on VirtualAP in v4.7 (version after next one)

Is this true? I don’t see it mentioned on the changelog?

I just tested v4.7. VirtualAP wireless interfaces are listed as interface-type=virtual-AP