Reference Manual
Redpine Signals, Inc. Proprietary and Confidential Page 47
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
Create a VAP The
OneBox-Mobile
software allows
creation of 4 VAPs
Reset Required
No
Usage
# ./onebox_util <vap_name> print_vap_stats [-v] [-f filename]
Example
The command given below prints the statistics of the transmitted and received packets of the
interface wifi0 into the file “stats”.
# ./onebox_util wifi0 print_vap_stats -v -f stats
Print Station
Statistics (only in
Access Point mode)
Description
This command is used to print the statistics of the packets exchanged between the Access Point and
a Station.
Default Value
-
Input Parameters
VAP Name (string like wifi0, wifi1, etc.)
48-bit MAC Address in hexadecimal format with colon separation. e.g., 00:23:A7:01:02:03
[-v] – Get description of the fields in the statistics
Filename (string) to which the statistics will be written
Output Parameter
Statistics like:
1) Number of Beacons received
2) Number of Management packets transmitted/received
3) Number of Unicast/Multicast packets transmitted/received
4) Number of data packets transmitted/received
5) Number of Probe Request/Response packets transmitted/received etc.
Usage
# ./onebox_util <vap_name> print_station_stats <mac_addr> [-v] [-f filename]
Example
The command below logs the statistics of the packets exchanged between the Access Point (wifi0)
and a Station with MAC address 00:1C:2b:10:19:1a into the file named “stats”.
#./onebox_util wifi0 print_station_stats 00:1C:2b:10:19:1a -v -f stats
Select Antenna
Description
This command is used to select one of the two RF ports connecting to antennas. For the modules
without integrated antenna, it is used to select between pins RF_OUT_1 and RF_OUT_2. For the
modules with integrated antenna and U.FL connector, it is used to select between the two. In case
Antenna Diversity feature is enabled, this ioctl will not have any effect. The Antenna selection will
happen automatically at the firmware level.
Note:
This ioctl is redundant. Refer to Section 16 for futher details. The functionality of the ioclt is intact.
However it might be removed in the future to reduce redundancy.
Default Value
2
Input Parameters
Base Interface (string like rpine0)
The integer value mapping has been shown below:
2 – Select RF_OUT_2/Integrated Antenna
3 – Select RF_OUT_1/U.FL Connector
Output Parameter
None
Reset Required
No
Usage
# ./onebox_util <base_interface> ant_sel <value>
Example
The command given below selects the U.FL connector in case of modules with integrated antenna