iw dev

Show and manipulate wireless devices. For a list of channels, frequencies and reg information: https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html. More information: https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html.

sudo iw dev {{wlp}} set type monitor

sudo iw dev {{wlp}} set type managed

sudo iw dev {{wlp}} set channel {{channel_number}}

sudo iw dev {{wlp}} set freq {{freq_in_mhz}}

iw dev {{wlp}} station dump

sudo iw dev {{wlp}} interface add "{{vif_name}}" type monitor addr {{12:34:56:aa:bb:cc}}

sudo iw dev "{{vif_name}}" del