8.12 Monitor Mode
The Monitor mode can be enabled on Linux using the following commands:
# modeprobe wilc-sdio.ko
# ifconfig wlan0 up
# iw dev wlan0 set type monitor
# iw dev wlan0 set freq <freq> // eg. 2437 for channel 6
A capturing tool can then be used with the interface to dump the received
packets. In the following example,
tcpdump
is used as follows:# tcpdump -i wlan0 -n -w packets_dump.cap
Note: To use
tcpdump
, it
must be enabled in buildroot's menuconfig under Target Packages>
Network.