Se a sua placa wireless executar um driver netlink
compatibile (por exemplo, com base na pilha padrão mac80211
), você poderá usar o seguinte comando para excluir a interface:
iw dev wlan0mon del
Veja iw help
output para mais informações sobre como criar / excluir VIFs:
(...)
dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
Add a new virtual interface with the given configuration.
Valid interface types are: managed, ibss, monitor, mesh, wds.
The flags are only used for monitor interfaces, valid flags are:
none: no special flags
fcsfail: show frames with FCS errors
control: show control frames
otherbss: show frames from other BSSes
cook: use cooked mode
The mesh_id is used only for mesh mode.
dev <devname> del
Remove this virtual interface
(...)