RS9116 n-Link Linux and Android Technical Reference Manual
Version : 2.0
July 2020
57
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.
Get Country Info
Description
This command is used to get the country for the n-Link®
Module.
Default Value
-
Input Parameters
Base Interface (string like rpine0)
Output Parameters
Country code (string like US, JP ... )
Reset Required
No
Usage
#./onebox_util <base_interface> get_info country
Example
#./onebox_util rpine0 get_info country
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
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
Output Parameters
None
Reset Required
No
Usage
# ./onebox_util <base_interface> set_ext_ant_gain <gain_2g>
<RESERVED>