iw-dev
Show and manipulate wireless devices. tldr-pages
On Linux
Linux
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>.
Set device to monitor mode (interface must be down first. See also: ip link)
sudo iw dev wlanX set type monitorIdentifySet device to managed mode (interface must be down first)
sudo iw dev wlanX set type managedIdentifySet device Wi-Fi channel (device must first be in monitor mode with the interface up)
sudo iw dev wlanX set channel channel_numberIdentifySet device Wi-Fi frequency in Mhz (device must first be in monitor mode with the interface up)
sudo iw dev wlanX set freq freq_in_mhzIdentifyShow all known station info
iw dev wlanX station dumpIdentifyCreate a virtual interface in monitor mode with a specific MAC address
sudo iw dev wlanX interface add "vif_name" type monitor addr 12:34:56:aa:bb:ccIdentifyDelete virtual interface
sudo iw dev "vif_name" delIdentify