Reference Manual

Table Of Contents
RS9116 n-Link Linux and Android Technical Reference Manual
Version 2.0
August 2019
58
Example The commands below set the Antenna gain values for 2.4 GHz
to 3 dBm
RESERVED field should be programmed as 1
# sh remove_all.sh
# sh wlan_enable.sh or wlan_bt_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 1
# ./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.
Default Value ant_path: 1
ant_type: 1
For ant_path
If value is 1, then it is considered as RF_OUT_2/Integrated Antenna
If value is 2, then it is considered as RF_OUT_1/U.FL Connector.
For ant_type
If value is 1, then it is considered as Type 1 antenna.
If value is 2, then it is considered as Type 2 antenna.
If value is 3, then it is considered as Type 3 antenna.
Input Parameters Use the following table to configure antenna type based on 2G
gain values
2G Gain range Antenna Type
0 < Gain <= 0.99 Type 1
0.99 < Gain <= 1.8Type 2
1.8 < Gain <= 3 Type 3
Output Parameters None