RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
27
Note:
wpa_supplicant
version used should be latest one (2.6 or higher) and need to compile with
CONFIG_P2P
and
CONFIG_WPS
flag enble.
Use below command to start the device in Autonomous GO mode:
#./wpa_cli -i wifi0 p2p_group_add freq=<channel_freq>
Run DHCP Server on GO Interface before connecting P2P or Legacy devices using below cmd.
#sh dhcp_server.sh wifi0
P2P Devices can scan this Group Owner and can connect directly. Run following command to start receiving
connect calls from P2P devices.
#./wpa_cli -i wifi0
To receive each connection request from P2P-Client's every time we need to run below cmd in wpa_cli cmd promt.
-> wps_pbc
If p2p-client is RSI p2p-client then we need to run below cmd on RSI P2P-Client side.
#./wpa_cli -i wifi0 p2p_connect <RSI P2P_GO Mac Addr> pbc join
2. GO-negotiation Mode
Steps for installing Onebox-Mobile software in Wi-Fi Direct Mode:
Open the
common_insert.sh
file present in the "release" folder.
Ensure that the DRIVER_MODE and COEX_MODE are set as below:
•
DRIVER_MODE = 1
•
COEX_MODE = 1
Note: For multiple clients in RSI P2P-GO mode
POWER_SAVE_OPTION
value in common_insert.sh file should be set
to 0.
Go to the release folder and start the device in p2P mode.
$ cd release
$ sh wlan_enable.sh
$ ./onebox_util rpine0 create_vap wifi0 p2p
Configure parameters in the
p2p_nl80211.conf
file as required. Ex: listen channel, operating channel, GO Intent
etc.
Now run supplicant as given below.
#./wpa_supplicant -i wifi0 -D nl802ll -c p2p_nl80211.conf -ddddt > log &