# _____ __
# |_ _\ \ / /
# | | \ \ /\ / /
# | | \ V V /
# |___| \_/\_/
#
The iw command is the new CLI interface to Linux kernel wireless drivers. It was written with the intent to
eventually replace iwconfig
, and as so should be adopted soon. There are only two documents describing it’s
features, the man page, the kernel wiki page,
and the cheatsheet for moving from iwconfig to it.
Just as the linux kernel will perpetually be in a process of development, so will the iw command. Features for
this command will be created on a as needed basis. Documentation for these features will arise much
afterwards.
Below is a cheatsheet providing commonly used commands for iw.
iw dev $DEVICE interface add $MON_DEVICE type monitor flags $FLAGS
iw dev $DEVICE reg set XX
iw dev wlan0mon del
iw dev $DEVICE set power_save on
iw dev $DEVICE set txpower <auto|fixed|limit> [<tx power in mBm>]
iw dev $DEVICE station dump
iw dev $DEVICE station get $PEER
iw dev $DEVICE link
iw dev $DEVICE switch $CHANNEL
iw dev $DEVICE scan
iw dev $DEVICE set type monitor
iw dev $DEVICE set monitor $FLAG
iw phy $PHYNAME set distance <auto|$DISTANCE>
iw phy $PHYNAME antenna $BITMAP
The following are flags you can specify:
none
fcsfail
plcpfail
control
otherbss
cook
active