Reference Manual

Redpine Signals, Inc. Proprietary and Confidential Page 53
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
Create a VAP The
OneBox-Mobile
software allows
creation of 4 VAPs
643
RUSSIA
702
SINGAPORE
710
SOUTH AFRICA
Output Parameter
None
Reset Required
Yes. In order to change the country code, the virtual interface has to be reset.
Usage
# ./onebox_util <base_interface> set_country <country_code>
Example
The commands below reset the VAP and set the country to Singapore in Station mode.
# sh remove_all.sh
# sh wlan_enable.sh or wlan_bt_insert.sh or wlan_zigb_insert.sh or onebox_insert.sh script present
in the “release” folder as per the instructions in Section 4.1
# ./onebox_util rpine0 set_country 702
# ./onebox_util rpine0 create_vap wifi0 sta sw_bmiss
Note:
Issue this command before creating any interfaces.
Set External Antenna
Gain
Description
This command is used to program the gain of the external antenna for the module without antenna.
The gain values are used by the module to attenuate the output transmit power so that regulatory
requirements like FCC, ETSI, etc., are not violated. This command needs to be given before creating
the VAP in the normal mode and before the “./transmit” command in the Wi-Fi Performance Test
mode. In the Wi-Fi Performance Test mode, the transmission has to be stopped each time before
the antenna gain values are programmed.
Default Value
0
Input Parameters
Base Interface (string like rpine0)
Integer value for Antenna gain for 2.4 GHz band in dBm
Integer value for Antenna gain for 5 GHz band in dBm
Output Parameters
None
Reset Required
No
Usage
# ./onebox_util <base_interface> set_ext_ant_gain <gain_2g> <gain_5g>
Example
The commands below set the Antenna gain values for 2.4 GHz and 5 GHz bands to 3 dBm and 5
dBm, respectively.
# sh remove_all.sh
# sh wlan_enable.sh or wlan_bt_insert.sh or wlan_zigb_insert.sh or onebox_insert.sh script present
in the “release” folder as per the instructions mentioned in the section Installation of Modules.
# ./onebox_util rpine0 set_ext_ant_gain 3 5
# ./onebox_util rpine0 create_vap wifi0 sta
Set Antenna Type
Description
This command is used to configure the antenna, based on its type and its mounted path. The
configuration values are used by the module to attenuate the output transmit power based on the
selected antenna type for the corresponding path so that the regulatory requirements like FCC, ETSI,
etc., are not violated. This command needs to be given before creating the VAP in the normal mode
and before the "./transmit" command in the "Wi-Fi Performance Test ioctl usage" as mentioned in
the section Wi-Fi Performance Test ioctl usage.