RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
83
11 Sniffer Mode
The Steps for operating the device in Sniffer Mode are outlined below.
Ensure that the
common_insert.sh
present in the release folder has valid driver mode and coexistence mode.
DRIVER_MODE=7 (Sniffer mode)
COEX_MODE = 1 (Wi
-Fi
station/ Wi
-Fi-Direct
/Wlan
-Per
/Sniffer)
Go to the release folder and start the driver modules by using the given below command
# sh wlan_enable.sh
Create the virtual interface in monitor mode.
# ./onebox_util <base_interface> create_vap wifi0 mon
For
NL80211
mode , Set Country code with the following command
# iw reg set <Country_code>
Ex :
# iw reg set JP
This command will
set
country to Japan
To select the channel, use the given below command.
# iwconfig <interface_name(wifi0)> freq <Frequency_in_Ghz>
To start capturing the packets, use the given below command.
# ifconfig <interface_name (wifi0)> up
Use tcpdump or wireshark tools to observe the packets being captured by the device.