Reference Manual
Redpine Signals, Inc. Proprietary and Confidential Page 28
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
Make sure in hostapd_open.conf file, the AP netdevice name is set to wifi0 or wifi1 according to the interface obtained by
following the above steps.
For eg:
• Interface = wifi0
Note: Refer section Appendix G: Considerations need to be made during hostapd usage for description of other
configurable parameters of hostapd.conf file(s).
7. Run hostapd with following command
$ ./hostapd hostapd_open.conf –ddddt> log &
In the same way, we can also configure required SSID and Passphrase and key management settings in
hostapd_ccmp.conf, hostapd_wep.conf, hostapd_tkip.conf files accordingly.
If you want to use Auto Channel Selection using hostapd refer ACS with Hostapd section.
4.4.5 Installation in Wi-Fi Direct Mode (With BSD Interface Support)
The steps for installing OneBox-Mobile software in Wi-Fi Direct Mode are as follows:
The "start_p2p.sh" script present in the "release" folder needs to be run in order to start the supplicant and also for
installing the Wi-Fi Direct mode. The configurable parameters in the p2p.conf file are outlined below:
• listen channel
• operating channel
• GO Intent
After starting the supplicant, the p2p_commands mentioned below should be executed.
• To find other P2P networks
• #. /wpa_cli –i wifi0 p2p_find
• To find other P2P devices in range
• #. /wpa_cli –i wifi0 p2p_peers
• To connect to a P2P network
• #. /wpa_cli –i wifi0 p2p_connect <BSS ID> pbc go_intent=<intent value>
Here the intent value range is between 0 and 15 (Putting intent value to 0 makes p2p device as client and 15 makes p2p
device as group owner).
4.4.5.1 Autonomous GO Mode
The given below command is used to start the device in Autonomous GO mode:
# ./wpa_cli –i wifi0 p2p_group_add freq=<channel_freq>
The "channel_freq" input mentioned in the above command is the center frequency of the Wi-Fi channel in which the GO
needs to be started The OneBox-Mobile software supports DFS slave mode. However, DFS Channels need to be avoided
till the module is certified for DFS.. If this parameter is not provided, then the GO will start in the channel specified in the
p2p.conf file.
Legacy Wi-Fi clients (non P2P clients) need a passphrase to connect to the p2p group. The command given below
generates the passphrase for legacy Wi-Fi clients.
#. /wpa_cli –i wifi0 p2p_get_passphrase