When I tried to create a virtual interface using
sudo iw phy `ls /sys/class/ieee80211/` interface add p2p0 type managed
it is showing command failed: Device or resource busy (-16)
. And I tried this too
sudo iw phy phy0 interface add p2p0 type managed addr 12:34:56:78:90:12
it is giving the same output.
This command is tried on Raspberry Pi running on Raspbian stretch. How can I create a Virtual interface?
If you execute this command:
You will get an output like the following, if on a Raspberry Pi3:
This means that the maximum allowed managed interfaces is 1. Hence the resource will report busy if trying to set another one as managed.